Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Meta description - better implementation
Are you looking in an individual article when trying to view this or a section/category page?
Offline
Re: Meta description - better implementation
@madzzoni
That tag only works when you are viewing an individual article context, so maybe that’s the problem?
I don’t use that tag myself (because meta keyworks are redundant nowadays), but I guess this code would work:
<txp:if_individual_article>
<txp:meta_keywords />
<txp:else />
<txp:article status="sticky" limit="1">
<txp:meta_keywords />
</txp:article>
</txp:if_individual_article>
That would let you create a sticky article for your section pages and then use it’s keywords to populate the meta tag.
Offline
#33 2013-02-15 15:55:27
- madzzoni
- Member
- From: Grünberg/Hessen/DE
- Registered: 2013-01-22
- Posts: 38
Re: Meta description - better implementation
@phil:
Yes i know that Meta Keywords isn’t important nowadays, and i was actually looking for some kind of Meta Description tag and find the <txp:meta_keywords> in the Docs, – and i got some projects where the client still want the keywords for other purposes than SEO rank.
- But the Meta problem is solved for me so far, i find the nice rah_metas plugin
which seems to do the job quite easy. (Would be nice if that plugin was integrated into the next TXP Core with some config fields in the admin-settings.)
<TXP:n00b />
Offline
Re: Meta description - better implementation
@madzzoni
As you can see from the rest of this thread (and in many other threads on the same subject), this has been discussed at length but currently the decision is not to incorporate into core.
Offline