How to show 1) Different node title and 2) Links

dplh - November 5, 2009 - 19:37
Project:Front Page
Version:6.x-1.2
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Dublin Drupaller
Status:closed
Description

Hi,

This is a great module and suits my needs perfectly, but I am having trouble with the following. I have tried searching drupal.org and the internet and have not come up with a solution, although they seem pretty simple issues:

1) How can I change the node title from "Home" to something else?

2) How can I include Links (such as the Addtoany button, the "Print" and "Send to friend" links from the Print module, etc) in the bottom of the front page?

Thanks!

#1

Dublin Drupaller - November 6, 2009 - 15:24
Assigned to:Anonymous» Dublin Drupaller
Status:active» closed

there's no facility to do that from within t he front_page.module settings page as such apart from redirecting users to a specific node...which is the easiest way of achieving what you want.
hope that helps
dub

#2

dplh - November 7, 2009 - 00:28

Thanks Dublin Drupaller,

I do like how the module can redirect - but I ran into the issue that a user who has just logged in still sees the anonymous front page. I have noticed this issue in the issue list a few times and it is my understanding that this is unavoidable.

Then I checked "Allow embedded PHP code in this front page" and put the following in for the body of the anonymous front page:

<?php
$node
= node_load(3);
print
$node->title;
print
$node->body;
?>

and the same thing with a different node id for the authenticated front page.

This works well for 1) getting both the title and the body of a node into the front page 2) getting the correct front page for an anonymous user and an authenticated user, even right after login.

However for the life of me I have not been able to figure out how to print the $links after the body....I tried print $links but this didn't work.

Would you happen to have any ideas on this?

 
 

Drupal is a registered trademark of Dries Buytaert.