Closed (won't fix)
Project:
Front Page
Version:
5.x-1.8
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
15 Jun 2007 at 20:28 UTC
Updated:
16 Jun 2007 at 13:24 UTC
Hi, I am just getting started with drupal and I can seem to get the "Promote to front page" option to only promote to the front page. To see what is happening go to rebekah.vip.warped.com - you'll see the page titled "What's Going On" is promoted to the first page but also appears on "About" and "News".
Comments
Comment #1
dublin drupaller commentedHi Rebekah,
That's the way node listings work normally on most sites. i.e. usually the front page will have the most recent news teasers (or teasers of nodes that have been 'promoted to front page')...but on the news page, it will list all the news...including those that appear on the front page.
There are a number of ways of achieving what you want..i.e. a node list of nodes that have *not* been promoted to the front page, such as the views module for example.
Alternatively, here's a quick snippet you could use in a standard Drupal page..go to CREATE CONTENT -> PAGE..and remember to enable the PHP INPUT FILTER.
The node flags I'm using in the snippet to filter out nodes that are *not* promoted to the front page are STATUS (1 = published, 0=unpublished) and PROMOTE (1=promoted to front page, 0= not promoted to front page)...in MYSQL it looks like this...
WHERE n.status = 1 AND n.promote = 0. So the snippet checks to see if the node is published first and then checks to see if it is NOT tagged as promoted to the front page.I hope that helps.
Dub