PDA

View Full Version : How to exclude one section from showing up on the main CMS front page?


30022
05-18-2012, 08:31 AM
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:

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.