ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

SEO: Meta Tags

January 24, 2008 11:00pm

Subscribe [14]
  • #1 / Jan 24, 2008 11:00pm

    Lisa Wess

    20502 posts

    Another part of SEO that many people place importance on is the ability to have appropriately populated meta tags.  Using ExpressionEngine, it is extremely easy to have page-relevant meta tags by making use of the ability to set up your own custom fields, categories, and even tags.

    Onwards!

  • #2 / Jan 24, 2008 10:54pm

    Leevi Graham

    1143 posts

    Thanks for the mention Lisa!

    I guess I am lucky I just released version 1.4.0 yesterday 😊

    Cheers Leevi

  • #3 / Jan 24, 2008 10:56pm

    Lisa Wess

    20502 posts

    Good timing. =)

  • #4 / Jan 25, 2008 6:08am

    Melody

    5 posts

    Especially when people either blog a lot or very seldom, the filling out of a description-field for every single entry can be (or feel) tiresome.

    To make sure every page always has meta-description and -keywords, we embed some default metas. Every time the author does not fill out the extra field, they get inserted automatically:

    <meta name="description" content="{exp:weblog:entries weblog="{my_weblog}" rdf="off"}{if meta-description}{meta-description}{/if}{if meta-description==""}{embed="{my_template_group}/default-description"}{/if}{/exp:weblog:entries}" />

    😊

  • #5 / Jan 25, 2008 7:20am

    Leevi Graham

    1143 posts

    Especially when people either blog a lot or very seldom, the filling out of a description-field for every single entry can be (or feel) tiresome.

    To make sure every page always has meta-description and -keywords, we embed some default metas. Every time the author does not fill out the extra field, they get inserted automatically:

    <meta name=“description” content=”{exp:weblog:entries weblog="{my_weblog}” rdf=“off”}{if meta-description}{meta-description}{/if}{if meta-description==""}{embed="{my_template_group}/default-description”}{/if}{/exp:weblog:entries}” />

    😊

    Lg Better Meta has site wide default values for most SEO meta tags 😊

  • #6 / Jan 25, 2008 7:28am

    Melody

    5 posts

    Lg Better Meta has site wide default values for most SEO meta tags 😊

    My hint was for those, who also prefer solutions without Add-ons 😊

  • #7 / Jan 25, 2008 7:29am

    Leevi Graham

    1143 posts

    Lg Better Meta has site wide default values for most SEO meta tags 😊

    My hint was for those, who also prefer solutions without Add-ons 😊

    Of course 😊

  • #8 / Jan 25, 2008 1:01pm

    Lisa Wess

    20502 posts

    That’s a great tip, Melody!  You could also just use the word limit plugin to show only the first x words of the entry if no meta description is entered. =)

  • #9 / Jan 27, 2008 10:58pm

    quena

    66 posts

    You could also just use the word limit plugin to show only the first x words of the entry if no meta description is entered. =)

    You may also find the “strip_p” plugin useful, if your entry fields come with surrounding paragraph tags.

    I have been using the “replace” plugin, with some code given to me on the forums, to get rid of hard returns, non-breaking spaces and other artifacts:

    {exp:replace find="/(<[^>]{1,}>| [\\r\\n]|[\\r\\n])/" regex="yes"}
  • #10 / Jan 27, 2008 11:09pm

    Lisa Wess

    20502 posts

    Great tip, Quena!  TruncHTML can also help with stripping typography for dual use custom fields. =)

  • #11 / Feb 01, 2008 6:21am

    silenz

    1651 posts

    Lg Better Meta has site wide default values for most SEO meta tags 😊

    I’m just trying to figure out if there is an option to have default keywords & description per weblog instead of site wide.
    Any idea?

  • #12 / Feb 01, 2008 10:21am

    silenz

    1651 posts

    TruncHTML can also help with stripping typography for dual use custom fields. =)

    While I appreciate the usage of my plugin, in this case it won’t help, I think 😊
    It doesn’t strip anything, it just shortens text/html without leaving any html-tags open.

    But to prevent things like this to happen:

    <meta name="description" content="He said: "Good bye" and left." />

    I’d recommend using {exp:xml_encode}{/exp:xml_encode} before shortening the text since you don’t want to have any quotation marks from the text messing up your markup.

    <meta name="description" content="He said: "Good bye" and left." />
  • #13 / Feb 01, 2008 1:01pm

    Lisa Wess

    20502 posts

    Ah, ok.  HTML Strip would be a better choice then.  Thanks, silenz. =)  And the extra tips!

  • #14 / Feb 13, 2008 8:59pm

    slobizman

    42 posts

    I just installed the plugin and there is something missing that would be very helpful.  My EE site is primarily a blog.  I’d like to see the default system work a little differently regarding Title, Description and Keywords.  For these Meta tags, I’d like the defaults to be not the site defaults as they don’t make sense on individual posts, but instead the post title for Meta Title, post summary (or first X words of the Body) for Meta Description, and post categories + post tags for Meta Tags.  Then, when I write a post I would normally not have to plug anything in the Meta fields unless I wanted to change it from what is already in the post. As it is not, I have to write up the title, description and keywords for every new posts.  This proposed setup is much better for posts than having generic site defaults for individual and unique posts.

  • #15 / Mar 27, 2008 7:10pm

    ramonekalsaw

    377 posts

    I’m just getting started with LG Better Meta and am having trouble getting the settings from the Better Meta TAB on the PUBLISH page to override the Extension Settings in ADMIN.

    As per the USAGE setup instructions, after I:

    - Created a new entry in one of the weblogs listed in the Weblog IDs extension setting;
    - Entered entry specific values;
    - Added {exp:lg_better_meta} to the <head> of my Permalink template;

    I’m not able to override the default extension settings for an individual entry: as indicated on this page.

    Any suggestions as to what I need to do to be able to override the extension settings via the Better Meta tab on the Publish page?

    Thanks.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases