Variable $child.headline

Creating and modifying plugins.
Post Reply
T
Regular
Posts: 48
Joined: Tue Feb 20, 2007 11:24 pm

Variable $child.headline

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Variable $child.headline

Post by garvinhicking »

Hi!

What do you mean, which plugin are you talking about, and which template file / line?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
T
Regular
Posts: 48
Joined: Tue Feb 20, 2007 11:24 pm

Re: Variable $child.headline

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Variable $child.headline

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
T
Regular
Posts: 48
Joined: Tue Feb 20, 2007 11:24 pm

Re: Variable $child.headline

Post by T »

Works like a charm, many thanks!
Post Reply