event_externalphp and headline

Creating and modifying plugins.
Post Reply
WebReiter
Regular
Posts: 23
Joined: Sun Sep 03, 2006 2:35 pm
Location: Jülich, Germany

event_externalphp and headline

Post by WebReiter »

Hi,

how can i create a headline with the event_externalphp plugin, like with the static pages headline.

In the source code it looks like here:
<h4 class="serendipity_title"><a href="#"></a></h4>
Any idea?
Serendipity 1.1 and PHP 4.3.10-16
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: event_externalphp and headline

Post by garvinhicking »

Hi!

Your included PHP can simply echo such HTML code!

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/
WebReiter
Regular
Posts: 23
Joined: Sun Sep 03, 2006 2:35 pm
Location: Jülich, Germany

Post by WebReiter »

Mea culpa. I did it wrong. :?

I mean the headline for the meta tags variable $head_title.

How can i realize that?
Serendipity 1.1 and PHP 4.3.10-16
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Ah, okay. For that you would need to modify the plugin so that you use

$serendipity['smarty']->assign('head_title', 'your title');

within the eventhook where your PHP code is emitted.You might even beable to use that code call within your custom PHP code...

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/
WebReiter
Regular
Posts: 23
Joined: Sun Sep 03, 2006 2:35 pm
Location: Jülich, Germany

Post by WebReiter »

Thank you :D
Serendipity 1.1 and PHP 4.3.10-16
Post Reply