Page 1 of 1
Variable $child.headline
Posted: Tue Feb 27, 2007 6:35 pm
by T
Hello,
I'm trying to show the headlines of childpages (instead of pagetitles) on an overview-page. Tried doing so by using $child.headline, but this won't work. What am I doing wrong?
Thanks in advance,
T
Re: Variable $child.headline
Posted: Wed Feb 28, 2007 8:59 am
by garvinhicking
Hi!
What do you mean, which plugin are you talking about, and which template file / line?
Regards,
Garvin
Re: Variable $child.headline
Posted: Wed Feb 28, 2007 8:15 pm
by T
garvinhicking wrote:What do you mean, which plugin are you talking about, and which template file / line?
I'm sorry, I mean the static page-plugin, and the plugin_staticpage_aboutpage.tpl template.
Re: Variable $child.headline
Posted: Wed Feb 28, 2007 8:19 pm
by garvinhicking
Hi!
Inside the serendipity_event_staticpage plugin, the childpage variable only holds the keys:
image
precontent
permalink
pagetitle
So 'headline' isn't a part of that. I just added this variable to the list of the plugin in version 3.42 though:
http://php-blog.cvs.sourceforge.net/php ... 95&r2=1.96
HTH,
Garvin
Re: Variable $child.headline
Posted: Wed Feb 28, 2007 8:27 pm
by T
Works like a charm, many thanks!