Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2012-10-02 09:26:57

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Meta description - better implementation

philwareham wrote:

So I’d rather there was a core description field.

Would that include a meta description for categories, sections and authors pages?

I think that if a meta description field is implemented it should be all encompassing.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#14 2012-10-02 09:30:04

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

Re: Meta description - better implementation

@colak

I guess that would have to be done with a sticky article – how does the <txp:keywords /> tag currently work?

Offline

#15 2012-10-02 09:39:02

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: Meta description - better implementation

philwareham wrote:

So I’d rather there was a core description field.

I wouldn’t mind to add another ‘description’ column for articles but I suspect that this would not satisfy SEO-aware site builders. We’d soon need a field to store the meta “robots” content or OpenGraph tags and what-not. All of these fields fluctuate a lot over time as search engines evolve their requirements and SEOs expand their toolset accordingly; see “news_keywords” for a very recent addition.

Depending on a site’s information architecture, a SEO-aware site builder would need any of these fields for articles, sections, categories, images in a gallery’s details view, as “X-Robots” http header for files, search results, monthly archives, and maybe more.

Which part of these requirements shall we weave into the core, and what would we delegate to implementers?

Offline

#16 2012-10-02 09:53:34

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

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

#17 2012-10-02 09:56:05

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

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

#18 2012-10-02 10:21:35

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

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

#19 2012-10-02 11:58:31

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

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:

  1. 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.
  2. 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…
  3. 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?
  4. 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.
  5. 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.
  6. 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

#20 2012-10-02 12:09:54

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

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

#21 2012-10-02 12:14:49

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

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

#22 2012-10-02 12:15:21

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Meta description - better implementation

philwareham wrote:

It’s still trying to fit a square peg into a round hole though I feel

I agree


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#23 2012-10-02 14:37:46

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

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: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&uuml;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

#24 2012-10-04 13:04:07

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

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

Board footer

Powered by FluxBB