Craft - How Tos - Relias Media

  • New CMS: Craft

     

    https://www.reliasmedia.com/admin/login

    • Reach out to Rett if you have issues logging in to your account.

    -------------------------------------------------------------------------------------------------------------------

    The Meta Cascade

     

    • Global SEO - Global SEO settings are the base settings that are used site-wide. If there are no more specific SEO settings for a given page, it will fall back on the Global SEO settings

    • Content SEO - Each Section in Craft CMS (Entries, Categories, Products, etc.) gets its own unique set of SEO settings that will be applied to that section (and Entry Types also can have unique settings). Typically you would set up your Content SEO settings to pull from existing fields in the corresponding sections.

      •  

     

    • Content SEO is where you can configure each Section, Category Group and Commerce Product Type that has public URLs. You’ll see a list of all of your Sections, Category Groups, and Commerce Product Types that have public URLs, with status indicators letting you know what has been configured for each.

    SEOmatic allows you to have different Content SEO settings on a per-site basis, and also on a per-Entry Type basis.

    Click on a Section, Category Group, or Commerce Product Type name to edit its settings.

     

    • SEO Settings fields - If you require overrides on a per-entry basis, the SEO Settings field allows you to do that as well. However, if Content SEO is set up to pull from your existing content fields, SEO Settings fields only sparringly need to be used

     

    These SEO settings layer on top of each other, so the most specific value provided is always what is used for a given page. Content SEO settings override Global SEO settings, and SEO Settings fields override them both.

    If any SEO setting value is left empty, it will fall back on existing SEO settings data. For example, if you have no SEO Image specified in your Content SEO settings for a given Section, it will fall back on the Global SEO Image.

    In this way, the SEO data that SEOmatic provides cascades together to form the final SEO metadata for a given page.

     

     

    How to Update Meta Data

     

    When you add a new entry (page) or article (blog post), adding information into SEOmatic can assist the SEO of your website. You can find SEOmatic using the 'SEO' tab within your entry or article, as per the below screenshot.

     

     

    There are a number of fields to which you can make changes:

    • SEO Title: this can differ from the actual title of your page or post - this is the title that will show in search results. You don't have to change this, however, if you wish to, under 'Source', click 'Custom Text'. Think about the keywords that your school should be ranking for when deciding whether or not to change this item.

    • SEO Description: your description should be a brief, clear indication of what users should expect if they click through. Ensure that your description matches your content and avoid stuffing the description with keywords.

    • SEO Keywords: please note that Google does not take these into consideration so you do not need to add anything here.

     

     

    You may need to turn the Override light switch on.

     

     

    With the Override light switch off, the settings will default to the Content SEO and/or Global SEO setting for that field, so you can use the Field only for the exceptional cases.

     

     

    If you turn the Override light switch on...you can override the given setting on a per-entry basis.

     

     

    Preview your edits by clicking the preview button.

    Then Save.

    QA on the live site to ensure that your changes were made.

     

Redirects

 All redirects are currently run through a plugin called Retour. Retour allows you to implement individual and bulk URL redirects on multiple domains through a simple interface.

Individual Redirects

 

Individual Redirects - How-to:

In the Craft CMS side-menu, select the following:

Retour >>> Redirects >>> New Static Redirect (red button)

The screen should look like this:

Once here, you’ll follow the following steps to successfully implement a redirect:

  • Enabled: Make sure this button is green

  • Sites: Select your particular domain, here we’ll use “Relias Media”. This redirect will only process for the selected domain.

  • Legacy URL Pattern: Here you have 2 options, you can either put in the full URL pattern or the URL path after the domain. I prefer using the URL path (in the case of internal links) in case the domain name is ever updated.

    • For this example we’ll use “/testBrokenPage”

  • Legacy URL Match Type: You can choose between Path Only or Full URL. Since we chose to use a URL path for this example, we’ll select “Path Only”.

  • Destination URL: Here you will paste in the URL you’d like the old URL to route to. Since the Legacy URL was put in as a path, this URL will also need to be a Path Only URL.

    • For this example, we’ll use “/testWorkingPage”

  • Match Type: For mostly all cases, choose Exact Match. If you are replacing bulk URLs through RegEx, you will select RegEx Match (consult with engineering or a teammate to validate your Regex before submitting this)

  • Redirect Type: For most cases, you’ll choose 301 for links that are permanently moved. For other types of redirects, see the following codes to determine whether they are applicable:

    • 302 - Found. This is an older protocol for a temporary redirect that would redirect to a new URL but search engines would not update their links to the resource. There are very few use cases for using this response code.

    • 307 - Moved Temporarily. Useful for a link that will be updated to a new destination shortly. This is the current response code for temporary redirects.

    • 308 - Moved Permanently. This method indicates that a resource has been definitively moved to a new URL indicated by the Location header. Link juice is passed on to the new link, but the request method and body are not altered.

    • 410 - Gone. A link is permanently removed. This should be used if a link is never to be used again and needs to be removed. This differs from a 404 in that the broken link tells search engines that it is permanently removed, not that it may potentially restored (404).

 

Bulk Redirects - How-to:

Navigation: Retour >>> Redirects >>> Import CSV File

Before getting to this step, you’ll want to prepare your file. Name your headings as follows:

  • Legacy URL Pattern - URL that needs to be redirected

  • Redirect To - New destination URL

  • Match Type - use “exactmatch”. This is case sensitive.

  • Site ID - “ReliasMedia” or “Free CME”. If it is for both sites, this column can be omitted or the variable “All Sites” can be used.

  • HTTP Status - your status code, for most redirects you will use “301”

Export this file to a .csv file, UTF-8 works perfectly.

 

Once in the field mapping menu, you’ll prompted to match up any fields that aren’t automatically matched up. Several file fields will be left blank, which is fine.

 

Once these are matched up select “Import” and your redirects should go through successfully. QA these changes on the live site, as these should push live instantly. If you do not see the changes, clear your cache and view the page again. Report any issues to your manager or site admin.

 

-------------------------------------------------------------------------------------------------------------------

Sitemaps

SEOmatic automatically creates a sitemap index for each of your Site Groups. This sitemap index points to individual sitemaps for each of your Sections, Category Groups, and Commerce Product Types.

Instead of one massive sitemap that must be updated any time anything changes, only the sitemap for the Section, Category Group, or Commerce Product Type will be updated when something changes in it.

SEOmatic can automatically include files such as .pdf, .xls, .doc and other indexable file types in Asset fields or Asset fields in matrix or Neo blocks.

In addition, SEOmatic can automatically create Image sitemaps and Video sitemaps from images & videos in Asset fields or Asset fields in matrix or Neo blocks

Sitemap Indexes are automatically submitted to search engines whenever a new Section, Category Group, or Commerce Product Type is added.

Section Sitemaps are automatically submitted to search engines whenever a new Element in that Section, Category Group, or Commerce Product Type is added.

-------------------------------------------------------------------------------------------------------------------

 

 

Resources: