scarex
09-06-2010, 12:28 PM
Hi everybody.
I was wondering if it was possibile, in some way, to configure CMS Front Page Primary Content in order to fetch articles ONLY from e selectable subset of sections.
I look for informations, finding several threads on vbulletin.com:
For instance: this one (http://www.vbulletin.com/forum/showthread.php?334908-Is-there-a-way-to-write-an-article-and-not-have-it-show-up-on-the-main-CMS-page&highlight=home+section+content) or this one (http://www.vbulletin.com/forum/showthread.php?325135-Please-Add-Ability-to-Hide-Articles-from-Child-Sections&highlight=home+section+content)
this one (http://www.vbulletin.com/forum/showthread.php?334827-sections-categories-and-content&highlight=home+section+content) is the most interesting...
Anyway, it seems (even after a long trial session with my vbulletin installation) that's it's not possible: you can choose to display article from ALL subsections, or to display articles only from current section.
Is it correct?
Does anybody the same issue and already tried to create a mod for this or now in which file the query is written, in order to perform such "exclusion" directly in code?
Thanks
--------------- Added 1283836783 at 1283836783 ---------------
Found it.
The query is performed in file packages/vbcms/collection/content/section.php
Adding the condition "AND node.parentnode NOT IN (SectionID_List)" to ON clause, it works.
I was wondering if it was possibile, in some way, to configure CMS Front Page Primary Content in order to fetch articles ONLY from e selectable subset of sections.
I look for informations, finding several threads on vbulletin.com:
For instance: this one (http://www.vbulletin.com/forum/showthread.php?334908-Is-there-a-way-to-write-an-article-and-not-have-it-show-up-on-the-main-CMS-page&highlight=home+section+content) or this one (http://www.vbulletin.com/forum/showthread.php?325135-Please-Add-Ability-to-Hide-Articles-from-Child-Sections&highlight=home+section+content)
this one (http://www.vbulletin.com/forum/showthread.php?334827-sections-categories-and-content&highlight=home+section+content) is the most interesting...
Anyway, it seems (even after a long trial session with my vbulletin installation) that's it's not possible: you can choose to display article from ALL subsections, or to display articles only from current section.
Is it correct?
Does anybody the same issue and already tried to create a mod for this or now in which file the query is written, in order to perform such "exclusion" directly in code?
Thanks
--------------- Added 1283836783 at 1283836783 ---------------
Found it.
The query is performed in file packages/vbcms/collection/content/section.php
Adding the condition "AND node.parentnode NOT IN (SectionID_List)" to ON clause, it works.