vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How to exclude one section from showing up on the main CMS front page? (https://vborg.vbsupport.ru/showthread.php?t=283110)

30022 05-18-2012 08:31 AM

How to exclude one section from showing up on the main CMS front page?
 
I have 5 sections, the main one is the default home page (preview page: Front Page). I would like to show 4 of the sections on the Front page but not the 5th section.

In the Front Page >editor>show content from dropdown menu there are only two options: This section only & Include Sub Sections.

I have tried Unpublish the 5th section from the main site admin panel Admin>CMS>Section Manager but this also removes the 5th section link from the subnav so I or visitors cant access it, but I would like the 5th section link to reamain the subnav but not show up on the Front Page (preview page).

Anybody know how to do this?

VB version 4.1.8

Cyburbia 06-08-2012 01:57 PM

Bump. If anyone can answer this, I'd like to know too.

Badshah93 06-08-2012 02:47 PM

if i am not wrong you guys don't want to show contents (articles) from specific section on FRONTPAGE right ?

if thats the case, then create a new plugin

Hook: vbcms_collection_section_querydata
Title: Anything You Wish
Code:

PHP Code:

if ($this->filter_node_exact == 1)  // 1 = FRONTPAGE nodeid
$hook_query_where .= " AND node.parentnode != 45";   // replace 45 with excluded section nodeid. 


brycea 07-30-2012 02:08 PM

What I would like to accomplish, actually, is have two sections. Being that I understand that this cant be done, I would like to have one of the sections not appear and/or be excluded on the main section navigation bar, create another page, and name it for the section that was excluded on the main navigation bar.
I created the above plugin and don't now how to make it work.


All times are GMT. The time now is 02:13 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01033 seconds
  • Memory Usage 1,715KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete