Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Meta description - better implementation
Well, the description field can be used for many tasks. I myself need it for the meta description tag and also for Open Graph og:description tag for a start. There’s a fairly good case for it being core.
Robot control meta can mostly be done within page templates for sections, but in the rare case a site needs article level control of robots I tend to use glz_custom_fields to make a <select> menu robots override.
Offline
Re: Meta description - better implementation
philwareham wrote:
I guess that would have to be done with a sticky article – how does the
<txp:keywords />tag currently work?
I am using that for individual articles
<txp:if_individual_article>
<txp:if_keywords>
<meta name="description" content="<txp:keywords />" />
</txp:if_keywords>
</txp:if_individual_article>
As I mentioned earlier, I am also using wet_babble to rename the field to meta_description
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Meta description - better implementation
@colak
Clever idea. It’s still trying to fit a square peg into a round hole though I feel – would be better if the function was there already as a core field.
Offline
Re: Meta description - better implementation
Seems related to another discussion.
For what it’s worth, I think using a custom field is the right way forward, because:
- Descriptions are not ‘required’ for seo rankings, and by not catering to them specifically with a dedicated field, we don’t contribute to the misunderstanding about that.
- Yet, descriptions are useful, as mentioned by others, for communication in SE results thus becomes closer to real content than information about content (as metadata is). Thus for those who want to use them for content reasons (maybe there’s other use for such descriptions besides expected meta-descriptions), they can treat them like a piece of chunked content. As next…
- If the aim, as assumed, was to make unlimited custom fields for other types of content chunks, and be able to define them as textarea fields, and move them into the middle column (where I would want them), then why should a description field be treated any different?
- By not having a dedicated field, it’s one less thing in the UI. I suspect more UI elements will appear over time (e.g., markdown filter functionality), so you should be very, very selective about throwing things in there.
- Twisties may work to hide things, but they’re still UI elements than can confuse people when they uncover what they don’t need to see.
- Instead of creating a Descriptions field since Keywords exists, the logic should be to deconstruct Keywords into an optional/custom field going forward that matches the handling of Description like suggested in #3.
Offline
Re: Meta description - better implementation
Good points Destry – maybe this can be covered by the 4.6 core custom fields work. My current gripe starts and stops at having to use plugins to achieve simple tasks.
Offline
Re: Meta description - better implementation
philwareham wrote:
…My current gripe starts and stops at having to use plugins to achieve simple tasks.
+1. That was my point #7. ;)
Offline
Re: Meta description - better implementation
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Meta description - better implementation
Just to give you a hint – my working if/else spaghetti framework – what I use and what I consider to be a good generic meta description solution which works great with search engines.
In header form:
<txp:output_form form="meta_description" />
form=“meta_description”
- For my german site
- still using the good old txp:chh_if_data – a txp:variable solution using
<txp:page_url type="pg" />would be the modern way to go :)- TXP 4.6:
<txp:page_url type="pg" />really could output page one optionally, couldn’t it? - TXP 4.6:
<txp:page_url type="pg" />really needs a language file entry for ‘page’ and ‘pages’ and should use it optionally (How many usage cases for different languages?)
- TXP 4.6:
<txp:site_name />and<txp:site_slogan />should be fine for a vanilla installation.
<txp:if_individual_article>
<meta name="description" content="<txp:title no_widow="0" /> - <txp:keywords /> © <txp:site_name />" />
</txp:if_individual_article>
<txp:if_article_list>
<txp:if_search>
<meta name="description" content="Suchergebnis für '<txp:page_url type="q" />' (Volltextsuche<txp:chh_if_data>, S. <txp:page_url type="pg" /></txp:chh_if_data>) © <txp:site_name />" />
<txp:else />
<txp:if_section name="tag">
<txp:output_form form="meta_tagtitel" />
<txp:else />
<txp:if_category>
<meta name="description" content="<txp:page_url type="c" /> (Kategorie<txp:chh_if_data>, S. <txp:page_url type="pg" /></txp:chh_if_data>) © <txp:site_name />" />
<txp:else />
<meta name="description" content="<txp:site_name /><txp:chh_if_data>, S. <txp:page_url type="pg" /></txp:chh_if_data> - <txp:site_slogan />" />
</txp:if_category>
</txp:if_section>
</txp:if_search>
</txp:if_article_list>
form meta_tagtitel
(using the recommended txp:tru_tags)
<txp:tru_tags_if_tag_search>
<meta name="description" content="Stichworte: <txp:tru_tags_tag_parameter striphyphens="1" /> <txp:tru_tags_related_tags_from_search wraptag="" break=" " class="" breakclass="" generatelinks="0" setclasses="0" setsizes="0" listlimit="15" cutoff="exact" sort="count" /> (Stichwort) © <txp:site_name />" />
</txp:tru_tags_if_tag_search>
Last edited by merz1 (2012-10-02 14:40:35)
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
Re: Meta description - better implementation
merz1 wrote:
<meta name=“description” content=”<txp:title no_widow=“0” /> – <txp:keywords /> © <txp:site_name />” />
Oh, I like that use of keywords (which I never use otherwise). Clever! When you have lemons, make lemonade. :)
Offline
Re: Meta description - better implementation
Destry And this is the multi vitamin juice for keyword search result pages (extract from above):
<txp:tru_tags_tag_parameter striphyphens="1" /> <txp:tru_tags_related_tags_from_search .. listlimit="15" .. sort="count" />
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
Re: Meta description - better implementation
Bah, we’re still talking about plugins here to provide things I’d want to do natively in Textpattern.
That is clever though, Markus.
Offline
Re: Meta description - better implementation
I am pretty much 100% behind having meta description in the core…. but I can’t stop thinking about the article tab and its use for all content types… so it wouldn’t be relevant for everything/one, so maybe it is plugin material?
Offline
Re: Meta description - better implementation
philwareham wrote:
Bah, we’re still talking about plugins here to provide things I’d want to do natively in Textpattern.
As long as Textpattern is still missing good keyword/tag handling tru_tags is essential for tagging articles.
That is clever though, Markus.
Thanks. The solution evolved over the years and has proven to be a solid SEO solution and to not generate to many ‘errors’ in Google webmaster tools (mainly because of using page numbers).
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
Re: Meta description - better implementation
Re.: <txp:site_name /> <txp:site_slogan />
I just put them in the code for basic SEO. Both could/should be optimized via txp:variable or/and txp:yield refinements.
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
#30 2013-02-13 22:25:19
- madzzoni
- Member
- From: Grünberg/Hessen/DE
- Registered: 2013-01-22
- Posts: 38
Re: Meta description - better implementation
Hi there.
I just tried to use the Meta Keywords tag, following this TXP Docs
Write some words in the Meta Keywords article field and saved it… But it doesn’t work! I see no Keywords when i look in the source and SEO tools!
Example 1: Use article’s keywords for meta tag content
Meta_keywords tag returns a HTML meta tag, populated with an article’s keywords. The tag should always be placed to your Page template’s <head> section, between closing and opening HTML head tags.
Placed this in my header:
<txp:meta_keywords />
I simply don’t understand why, – are the TXP Docs not up to date, – or did i miss something here?
Regards madzzoni
<TXP:n00b />
Offline