Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2013-02-13 22:43:48

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: Meta description - better implementation

Are you looking in an individual article when trying to view this or a section/category page?

Offline

#32 2013-02-13 23:43:48

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,565
Website GitHub Mastodon

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

#34 2013-02-15 16:08:40

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,565
Website GitHub Mastodon

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

Board footer

Powered by FluxBB