Scot's Scripts FAQs and Module Support

If you don't find the answers here contact us.
Documentation and support for our Miva modules is found here. If you can't find the answer you're looking for contact us and we'll add the information.

Scot's Blogger / Snippets / Use Article Title for Page Title

Use Article Title for Page Title

As of Version 1.10, this is built into the main blog page template. If you started using ScotsBlogger before v1.10 (Dec, 2015) then you could enhance the SEO experience by updating your page title logic as described below.

To use the article title for the page title, delete your current <title>...</title> line in the <head>...</head> area of your document, then under the <mvt:item name="scotsblogger" param="head" /> line put the following:

<mvt:if expr="l.settings:scotsblogger:currentpost:title">
<title>&mvt:scotsblogger:currentpost:title;</title>
<mvt:else>
<title>&mvt:store:name;: &mvt:page:name;</title>
</mvt:if>

This will use the default page title if an article is not selected, otherwise the article title will be used as the page title.

If you want to use the article category as the page title when someone clicks on a category name, use this snippet:

<mvt:if expr="l.settings:scotsblogger:currentpost:title">
<title>&mvt:scotsblogger:currentpost:title;</title>
<mvt:elseif expr="g.scotsblogger_category_code">
<title>&mvt:scotsblogger:currentcategory:name;</title>
<mvt:else>
<title>&mvt:store:name;: &mvt:page:name;</title>
</mvt:if>


updated December 08, 2015