Nodes promoted to front page not showing up

mkoskenk - May 16, 2008 - 07:32

Hi!

Am I missing something here? If I create some content and select the option "Promote to front page" it never shows up... Should I have some extra blocks enabled or modules installed?

Mikko

Try...

gareth_w - May 16, 2008 - 07:36

Is the "Published" box ticked?
Are there any access control issues - is teh content type visible to the user?
Cache?
Choosing Preview rather than Submit?

All of that should be

mkoskenk - May 16, 2008 - 10:32

All of that should be ok...

I have disabled the option to publish to front page by default but for certain posts it'd be handy to have themo promoted.

My front page is Video type (from video.module), could the issue be related to this? EDIT: Tried to change the type of front page to Page - no luck

FURTHER EDIT

I might have been a bit unclear in the initial post...

The newly created content is viewable and accessible, but it's just not promoted to the front page.

Promote to front page

styro - May 16, 2008 - 11:05

doesn't actually do anything by itself - it is just a flag attached to the node in the database. It can't magically force its way into some other code used on the front page and make that code do something that the code wasn't designed to do.

If whatever you use for your front page doesn't use the "promote to front page" flag to decide whether to show it or not (like the default front page does), setting the flag won't make any difference.

It is up to whatever you use for your front page to respect that setting. I'm not sure what you mean by using a nodetype for a front page anyway - are you using a view from the Views module? If so, that view can be made to also check for the "promote to front page" flag.

--
Anton
New to Drupal? | Troubleshooting FAQ
Example knowledge base built with Drupal

To break the question into

mkoskenk - May 16, 2008 - 11:47

To break the question into pieces:

1) I've created a new node, type being a Video and the node id is 8. From site information settings I've set the default front page to be node/8.

2) Now if I create a new node, say a news page, I'd like the teaser of that to appear in the front page, the same way like in Drupal's front page there are some news items, like Drupal 6.2 released, fixing security issues, New Drupal Book - Selling online with Drupal e-Commerce etc.

3) From news page's settings I've enabled the published and promote to the front page settings.

The question being; do I need to add some extra code to the body of my front page in order to get the teaser of my news page to appear? Or do I need to install and/or enable some module or block in order to get this?

Front page

styro - May 16, 2008 - 12:12

1) I've created a new node, type being a Video and the node id is 8. From site information settings I've set the default front page to be node/8.

If you've decided that node 8 is your front page then node 8 is your front page. You are just statically displaying node 8 and nothing but node 8. To display a list of nodes, you need something that displays a list of nodes (eg the node module, the views module, or some custom code).

2) Now if I create a new node, say a news page, I'd like the teaser of that to appear in the front page, the same way like in Drupal's front page there are some news items, like Drupal 6.2 released, fixing security issues, New Drupal Book - Selling online with Drupal e-Commerce etc.

That isn't quite the same thing. The drupal.org front page is just /node (ie the default setting) - there is no actual node used for the front page.

You should probably reverse your approach - eg use the default node listing (or a view) and look for a way to put some static content (eg the content of node 8) somewhere on the page (eg in a custom block).

--
Anton
New to Drupal? | Troubleshooting FAQ
Example knowledge base built with Drupal

Ahh.. Ok. I'll try and

mkoskenk - May 16, 2008 - 12:19

Ahh.. Ok. I'll try and fiddle around with that. Thanks mate :)

The problem you have is that

Alan D. - May 16, 2008 - 12:24

The problem you have is that you have overridden the normal dynamic front page, (step 1).

1) Remove this association unless you want to show "Promoted to front page" items in blocks.

2) Then can you simply promote the video node to the front page and set the sticky bit so that it sticks to the top of the list.

3) Tidy up the page by turned off unwanted blocks using the Blocks administration. (From memory, the dynamic front page or assigned front page is referred to as "front".)

4) If more complex theming is required, try creating a front page template, "page-front.tpl.php".

5) For special front page teaser/block formatting in drupal 6, you should have the $is_front variable available. Otherwise use drupal_is_front_page().

Without knowing more about the wire-frame, this may or may not help.

Alan Davison
www.caignwebs.com.au

Halfway there

mkoskenk - May 16, 2008 - 14:52

Thanks, I think I got on the track. I removed the node value from site information and there my dynamic front page was, with all those items I wanted to be promoted there.

Then I went to create a new block to contain my node with a small videp clip included. However, it printed the node contents without the video. Here's the code I used inside the block:

<?php
$nid
= 36;
$node = node_load($nid);

print
$node->body;
?>

When I checked the contents of $node->body with ConTemplate (http://drupal.org/project/contemplate) it included also the bit with the video player. Any ideas how to show also the video inside the block?

 
 

Drupal is a registered trademark of Dries Buytaert.