serendipity_event_metadesc not generating meta description

Creating and modifying plugins.
Post Reply
Piata
Regular
Posts: 7
Joined: Tue Sep 20, 2005 7:37 pm

serendipity_event_metadesc not generating meta description

Post by Piata »

I have serendipity_event_metadesc and serendipity_event_social installed on my blog.

serendipity_event_social correctly generates the description like so:

Code: Select all

<meta property="og:description" content="entry description text"/>
But serendipity_event_metadesc outputs the meta description as blank:

Code: Select all

<meta name="description" content="" />
Relevant portion of the tpl looks like this:

Code: Select all

<title>{$head_title|@default:$blogTitle} {if $head_subtitle} - {$head_subtitle}{/if}</title>
<meta http-equiv="Content-Type" content="text/html; charset={$head_charset}" />
<meta name="Powered-By" content="Serendipity v.{$head_version}" / >
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width; initial-scale=1.0" />
{serendipity_hookPlugin hook="frontend_header"}
It's a custom tpl but I'm not doing anything special with it. Any help would be appreciated.
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: serendipity_event_metadesc not generating meta description

Post by yellowled »

The custom template should be irrelevant since it includes

Code: Select all

{serendipity_hookPlugin hook="frontend_header"}
which is where plugins should emit their custom header code. Plugins can't "rewrite" templates, so they need a place to "hook into".

Are you aware that (as far as I know at least, I don't use either one of them) these are two different values that need to be explicitly set in the respective plugin's configuration? (I sort of sense that you assume that both would just re-use the one description value?)

YL
Post Reply