I have a site with a custom front page using front_page module. As a result, I do not have the main RSS feed autodiscoverable on the home page. I'm wondering if there is a way I can make it so using either page.tpl.php or in the front_page code itself. I'm a bit in the dark on RSS autodiscovery standards, so any tips any of you may have would be greatly appreciated!
Thanks in advance!
Laura
Hi Laura,
All you need to do is generate
<link rel="alternate" type="application/rss+xml" title="RSS" href="http://www.example.com/node/feed" />
in the <head> element of your front page.
Cheers, Djun
On 1-Feb-2006, at 4:56 PM, Laura Scott wrote:
I have a site with a custom front page using front_page module. As a result, I do not have the main RSS feed autodiscoverable on the home page. I'm wondering if there is a way I can make it so using either page.tpl.php or in the front_page code itself. I'm a bit in the dark on RSS autodiscovery standards, so any tips any of you may have would be greatly appreciated!
Thanks in advance!
Laura
-- Djun M. Kim, President djun.kim [at] cielosystems [dot] com Cielo Systems Inc. Strategic Software Research http:// www.cielosystems.com 164 - 4438 18th Avenue West Tel: (778) 895-1379 Vancouver, BC Skype: djun.kim Canada, V6R 4R8
Thanks!!!!!
puregin wrote:
Hi Laura,
All you need to do is generate<link rel="alternate" type="application/rss+xml" title="RSS" href="http://www.example.com/node/feed" />
in the <head> element of your front page.
Cheers, Djun
On 1-Feb-2006, at 4:56 PM, Laura Scott wrote:
I have a site with a custom front page using front_page module. As a result, I do not have the main RSS feed autodiscoverable on the home page. I'm wondering if there is a way I can make it so using either page.tpl.php or in the front_page code itself. I'm a bit in the dark on RSS autodiscovery standards, so any tips any of you may have would be greatly appreciated!
Thanks in advance!
Laura
-- Djun M. Kim, President djun.kim [at] cielosystems [dot] com Cielo Systems Inc. Strategic Software Research http://www.cielosystems.com 164 - 4438 18th Avenue West Tel: (778) 895-1379 Vancouver, BC Skype: djun.kim Canada, V6R 4R8
themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes
Hi,
I call up a blog entry from a snippet and it doesn't get formatted with <p> tags. When I visit it the regular way it doesget formatted. Both methods seem to go through the same node.tpl.php file - it seems that the $content var that is passed to that should already have the formatting.
this is the snippet code I am using:
-----------------------------------------------------8<--------------------------------------- function _myfunctions_latest_blog_entries($listlength, $userid) { $sql = "SELECT * FROM {node} n, users WHERE n.type = 'blog' AND n.uid = $userid AND n.status = 1 AND n.uid = users.uid ORDER BY n.created DESC LIMIT $listlength"; $result = db_query($sql); while ($anode = db_fetch_object($result)) { $output .= theme('node', $anode, $teaser = FALSE, $page = FALSE); } return $output; } -----------------------------------------------------8<---------------------------------------
I guess the problem is in this line?:
$output .= theme('node', $anode, $teaser = FALSE, $page = FALSE);
What should I call instead?
Thanks for any help in understanding this.
Josh