I have a top level HOME and a few subsections. I have an article posted in two of the subsections that I do not want to show on the HOME page. How do I do this? I have looked (help, search, PDF files) and could not find this information quickly.
How do I hide an article from showing on the home page
Collapse
X
-
There are a series of different options for content layout on the section page. Today the only way is to set the publish date far enough in the past so the article is older than enough other articles. In v402 we have a "hide" button on the article edit page to make sure it never appears.Please- I'm not tech support. Don't send your problem reports to me unless I've asked you to. -
Do anybody know if "Hide" button mentioned by Edwin implemented in 4.0.3?
It looks like there was an attempt to implemented this for 4.0.2; table cms_node has "onhomepage" field which is probably never used.
And what about 4.0.3? I think this is "must have" feature for CMS which can be used for creating normal static pages.
BTW, for 4.0.2 I used the following trick: I created a structure like
Home -> Fake home -> dynamic pages
Home -> Static page 1
...
Home -> Static page N
Then I made home page invisible by setting the fake home as CMS start URL. What I really don't like in such solution: dynamic pages shown under plus/minus sign which can be used for expand/collapse, and when anybody reads an article, it is always collapsed (so only fake home page and static pages links are shown).Comment
-
Cool, Publish date worked for what I want to do, Thanks Edwin!
Edit: Well it worked for everything except "Welcome to the new CMS. Read me first". Why? I want to keep it in a "documents" section, but I don't need it on the front page.
Edit 2) Nope, that did nothing. Does not change the home page display order.
Edit 3) Now this is interesting. It works for articles that I created, but not the ones that were pre-installed. And because I edited them and only recently published them they are at the top!Last edited by nakedanvil; Fri 9 Apr '10, 2:03pm.Comment
-
Installed 4.0.3. locally.
Well, still no chance to hide an article from home page - even with 4.0.3.
Personally speaking, I don't understand why vBulletin team did not implemented so simply feature.
As usual, if you want to do something really necessary, you have to do this by self. Well, I solved this for me. Unfortunately I don't have time to release this as a module or plugin (since vBulletin is only a kind of hobby for me), so I will just describe the solution "AS IS"; probably somebody else would like to create a plugin for that.
1. Mark all articles you don't want to show on the home page as "Display Full Article in Section Page" - "[X] Yes" (checked) in the article properties (just login and press a pencil sign near article title on the frontend)
2. Open packages\vbcms\collection\content\section.php file in any text editor (e.g. notepad)
3. Navigate to line 258 (4.0.2) or 257 (4.0.3); you should see the code like this:
. (($this->orderby == 5) ? " AND sectionorder.displayorder > 0 " : '')
4. Add the following like directly under the line shown above:
. " AND (rootnode.nodeid = parent.nodeid OR node.showpreviewonly = 1) "
5. Save the file and upload.
That's all. After that articles marked as "Display Full Article in Section Page - Yes" will be displayed only in their sections, but not on the home page and not in the any parent sections.
Please let me know if you have any comments/suggestions.👍 1Comment
Related Topics
Collapse
-
by bsdvnHow to add "Recent Article Post" into home page in VB 5.1.0?
-
Channel: Support Issues & Questions
Sat 15 Mar '14, 1:42am -
Comment