[support] Change home page from story to page?
Stefan Borchert
stefan at borchert.cc
Tue Aug 21 11:43:36 UTC 2007
Earnie Boyd schrieb:
> Quoting sander-martijn <sander at sander-martijn.com>:
>> Therefore to edit them you need to go to the content management part
>> of the admin and find the story and edit it. I was just wondering if
>> there was an easier way to have the editors manage the home page
>> content.
>>
> If you have access you should be able to click on the title and bring
> up the page with an edit tab.
>
And if you don't even have a title on this 'paragraphs' you could edit
your node.tpl.php to display an edit-link on this two nodes.
<?php
$front_nodes = array(34, 555); // Ids of the two nodes displayed on
your front page
print $content
if ($is_front && in_array($node->nid, $front_nodes) &&
node_access('update', $node)) {
print l(t('edit'), 'node/'. $node->nid, array('class' => 'edit'));
}
?>
hth,
Stefan
More information about the support
mailing list