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.

ExpressionEngine 2 SEO module

July 13, 2010 10:38am

Subscribe [7]
  • #1 / Jul 13, 2010 10:38am

    dstechroom

    113 posts

    Continuing from this thread: http://ellislab.com/forums/viewthread/160112/

    Hi all -

    We’ve developed a fairly simple EE2 SEO Module that we’d like to release to the wild to get feedback on (bugs, feature requests, documentation needs, anything!).


    Current Features:
    1) Add title, keywords and a description for any entry via a new SEO tab.
    2) Set a default title, description or keywords for entries
    3) Prepend / Append text to all title tags (can be overridden with template tag)
    4) Set visibility to robots via robots meta tag (noindex,nofollow vs other options)
    5) Canonical meta tag to reduce duplicate content flags in search engines

    Files can be downloaded via github: http://github.com/dsurgeons/ExpressionEngine-SEO (use the Download Source button on the top right).

    There is some basic usage in the READ ME doc found there.

    Installation:
    1) Download source files
    2) Add files to folder: system/expressionengine/third_party/seo (You may need to rename the project folder to “seo”!)
    3) Install the module via the Add-ons > Modules are in your EE admin area

    Let us know what you think!

  • #2 / Jul 13, 2010 10:46am

    dstechroom

    113 posts

    Changes:
    1) Moduleables now created using utf8, collating utf8_general_ci
    2) Removed htmlentities() filter with output


    As per discussion with rubjo, I’ve edited the plugin to no longer output content using htmlentities() function, as this stops characters from appearing such as © (if a user enters those in).

    I’m looking for feedback from users on this one though - I may add this back in so the more casual user can add in items such as ampersands and have the code take care of properly encoding them.

    Most likely to happen in the near future is making it an option of whether to have the system filter inputted content using the htmlentities() function.

    Thoughts?

  • #3 / Jul 13, 2010 3:11pm

    rubjo

    49 posts

    Aha, I’m overjoyed! Thanks for making this nifty little module - and for updating it so quickly. Will re-download and try.

    The option you mention at the end of your previous post sounds like a good idea.

  • #4 / Jul 28, 2010 3:03am

    igrandfunk

    13 posts

    I think I found a bug or something. More importantly the module has removed my title tag from one of my channels and I can’t seem to get it back. Below is what happened:

    - I moved the url title field in Channel B to the “Options” tab
    - I installed the SEO module and navigated to an Entry in Channel B, the title tag was missing from the publish tab
    - When I visit the SEO tab it displays the following errors:


    A PHP Error was encountered
    Severity: Notice
    Message: Undefined index: seo__title
    Filename: content/publish.php
    Line Number: 141
    A PHP Error was encountered
    Severity: Notice
    Message: Undefined index: seo__title
    Filename: content/publish.php
    Line Number: 141

    A PHP Error was encountered
    Severity: Notice
    Message: Undefined index: seo__title
    Filename: content/publish.php
    Line Number: 166
    A PHP Error was encountered
    Severity: Notice
    Message: Undefined index: seo__keywords
    Filename: content/publish.php
    Line Number: 141
    A PHP Error was encountered
    Severity: Notice
    Message: Undefined index: seo__keywords
    Filename: content/publish.php
    Line Number: 141

    A PHP Error was encountered
    Severity: Notice
    Message: Undefined index: seo__keywords
    Filename: content/publish.php
    Line Number: 166
    A PHP Error was encountered
    Severity: Notice
    Message: Undefined index: seo__description
    Filename: content/publish.php
    Line Number: 141
    A PHP Error was encountered
    Severity: Notice
    Message: Undefined index: seo__description
    Filename: content/publish.php
    Line Number: 141

    A PHP Error was encountered
    Severity: Notice
    Message: Undefined index: seo__description
    Filename: content/publish.php
    Line Number: 166


    The weird thing is the module shows up just fine and the title tag in all the other channels except for Channel B, which the only difference was that I moved URL title field. Please help! I gotta this working.

    - Andy

  • #5 / Jul 28, 2010 3:04am

    igrandfunk

    13 posts

    PS: I have removed the module, deleted the files, reuploaded, and then reinstalled via the CP with no luck.

  • #6 / Jul 28, 2010 10:26am

    dstechroom

    113 posts

    Hi, igrandfunk

    I’m not clear on what steps you took to get that error?

    After you installed the module,which title field was missing- the entry Title field or the SEO title field?

    Thanks!

  • #7 / Jul 28, 2010 10:29am

    dstechroom

    113 posts

    Hi again -

    I was able to reproduce this error. Checking now.

  • #8 / Jul 28, 2010 11:20am

    dstechroom

    113 posts

    OK, so there was a bug in the module.

    Coupled with how EE saves custom layouts in the publish form, this caused the title tag to disappear and a PHP error when attempting to output the SEO fields.

    I have updated the files on github with a fix: http://github.com/dsurgeons/ExpressionEngine-SEO (particularly, the “upd.seo.php” file has been updated to fix this)

    Now, igrandfunk to fix your current situation - the easiest way is to go into the publish form for your channel (Channel B in your example), click the user groups that have a layout assigned to them, and then click “remove layout”. You can then refresh the publish form and all should be back to normal. (see attached image).

    If that doesn’t seem to work, you can go into your database, find the exp_layout_publish table and remove row that relates to the messed up channel. (As always, backup before you edit your dataseb! :D )

    Let me know if you run into further issues!

    EVERYONE ELSE:
    You all should update the plugin to the latest files to prevent this issue from occurring in your builds as well :D

  • #9 / Jul 28, 2010 2:18pm

    Carlo Laitano

    99 posts

    I updated the add-on files and cleared all my saved layouts. It seems all errors are gone. Great job!

  • #10 / Jul 28, 2010 3:14pm

    dstechroom

    113 posts

    I’m glad that resolved the issue!

    Hopefully igrandfunk gets the same results.

  • #11 / Jul 28, 2010 4:25pm

    Lisa Wess

    20502 posts

    I’ve moved this to Community New for you and I’m going to hide the support posts as per the Community News Guidelines

  • #12 / Jul 28, 2010 4:47pm

    dstechroom

    113 posts

    Thanks Lisa -

    As per Community News Guidelines, all requests for support should go through github (preferred) or our blog comments

  • #13 / Jul 28, 2010 8:53pm

    Tony Geer

    253 posts

    This looks like a really nice little module, I’ll look forward to checking it out when I start using EE2. In the meantime, thanks again for taking the time to create this for the community!

  • #14 / Aug 18, 2010 9:52am

    terryoleary1981

    5 posts

    I’ve just installed this and i cant seem to get my meta data to display on thefront end.

    I have a header template that is embedded on all my pages with the following lines in

    <meta name="description" content="{embed:seo_description}" />
            <meta name="keywords" content="{embed:seo_keywords}" />

    and nothing comes through

    p.s. i’m using EE2.1 with Structure plugin

    ok so i seem to need to do

    <meta name="description" content="{embed:seo:description}" />
            <meta name="keywords" content="{embed:seo:keywords}" />

    which i did but still nothing

  • #15 / Aug 18, 2010 1:44pm

    Lisa Wess

    20502 posts

    Hi, Terry - have a look at post #11 for instructions on where to go for support.

    Thanks!

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

ExpressionEngine News!

#eecms, #events, #releases