Arc meta - Textpattern plugin for meta tags to improve site SEO and social marketing.

Overview

arc_meta

A Textpattern plugin for meta tags to improve site SEO and social marketing. arc_meta adds meta fields to your article, section and category forms.

Please note that this is a beta release for Textpattern 4.6!

Requirements

  • Textpattern 4.6
  • PHP 5.3+

For earlier versions of Textpattern please use the 1.x versions of the plugin.

Installation

To install go to the ‘plugins’ tab under ‘admin’ and paste the plugin code (found in the dist directory of this repository) into the ‘Install plugin’ box, ‘upload’ and then ‘install’.

Upgrading from v1.x to v2.x

If you are upgrading from an older 1.x version of the plugin I strongly recommend you backup your database beforehand. The latest version makes use of Textpattern’s default meta description columns and the plugin will migrate descriptions from the arc_meta table before dropping the column from the plugin’s table used by previous versions on installation.

When migrating data over to the core Textpattern tables it will first check that there is no existing data in the Textpattern description columns so as to not overwrite this data. It will only migrate descriptions where no meta description has been set in the core tables.

While this has been fully tested during the plugin’s development you should still backup first. It is also recommended that you test the upgrade on a staging version of your site before applying to a live production version. If you encounter problems please log an issue.

Usage

All of the following tags should be used within your templates’ <head> tag.

arc_meta_title

Outputs an SEO friendly <title> tag.

<txp:arc_meta_title />

Attributes

The arc_meta_title tag attributes override the defaults. To set the default patterns used for the <title> tag goto the plugin’s options page.

  • title — use this to override the title tag’s content
  • article_title — sets the pattern for article page titles
  • comment_title — sets the pattern for comment page titles
  • search_title — sets the pattern for search results page titles
  • category_title — sets the pattern for category page titles
  • section_title — sets the pattern for section page titles
  • homepage_title — sets the pattern for the homepage title
  • type — override the content type for the title

Title Tokens

To set a pattern for a page title you can use the following tokens:-

  • %a — article title, can only be used on article and comment pages
  • %s — section name, can be used on article and section pages
  • %c — category name, can be used on category pages
  • %n — site’s name, can be used on all pages
  • %t — site’s slogan, can be used on all pages
  • %q — search query, can be used on search results page

For example, you could define the pattern for an article page as:-

%a | %n (%t)

This would output something like:-

<title>Welcome to Your Site! | My site (My pithy slogan)</title>

Examples

Example Using the section_title Attribute
<txp:arc_meta_title section_title='%n / %s' />

Outputs on an ‘Articles’ section page:-

<title>My site / Articles</title>
Example Using the title Attribute
<txp:arc_meta_title title='Hello World' />

Outputs:-

<title>Hello World</title>

arc_meta_description

Outputs a meta description tag when a description has been set.

<txp:arc_meta_description />

Attributes

  • description — overrides the description set using arc_meta’s description field on the article Write page or section/category edit page
  • type — override the content type for the meta description

arc_meta_robots

Outputs a meta robots tag when robots have been set. When a site is in testing or debugging mode it will automatically output a ‘noindex, nofollow’ tag with your actual setting as a comment immediately after the tag for reference.

<txp:arc_meta_robots />

Attributes

  • robots — overrides the robots instructions set using the meta robots field on the article Write page or section/category edit page
  • type — override the content type for the robots meta data

arc_meta_keywords

Outputs a meta keywords tag when keywords have been set (only works for articles).

<txp:arc_meta_keywords />

Attributes

  • keywords — overrides the keywords set using the meta keywords field on the article Write page

arc_meta_canonical

Specify the page’s canonical URL. See Google’s Specify Your Canonical for an explanation.

<txp:arc_meta_canonical />

Attributes

  • url — overrides the default URL

arc_meta_open_graph

Outputs meta tags for using Facebook Open Graph.

<txp:arc_meta_open_graph />

Just including the above tag in your templates’ <head> tag will output tags for the following:-

  • og:site_name — your site name from your preferences
  • og:title — the article’s title, section name or category name
  • og:description — your page’s meta description
  • og:url — your page’s canonical URL
  • og:image — the article’s image

You can override the default values of any of these by passing a value to one of the tag’s attributes defined below. To disable one of the tags just pass an empty attribute value (e.g. title='').

Attributes

  • site_name
  • title
  • description
  • url
  • image

arc_meta_twitter_card

Outputs meta tags for using Twitter Cards.

<txp:arc_meta_twitter_card />

Just including the above tag in your templates’ <head> tag will output tags for the following:-

  • twitter:card — ‘summary’ by default, can also be set to ‘photo’ for image content or ‘player’ for videos
  • twitter:title — the article’s title, section name or category name
  • twitter:description — your page’s meta description
  • twitter:url — your page’s canonical URL
  • twitter:image — the article’s image

You can override the default values of any of these by passing a value to one of the tag’s attributes defined below.

To start using Twitter cards you will need to authorise them for your domain by validating and applying on the Twitter website. You will need to supply Twitter with a few details including the URL of a page with a complete Twitter card. It can take several days for Twitter to authorise your site.

Attributes

  • card
  • title
  • description
  • url
  • image

arc_meta_organization

Outputs Knowledge Graph social profiles script tag for an organisation.

<txp:arc_meta_organization />

Attributes

  • name — Organisation’s name
  • logo — URL to organisation’s logo (required, will throw an error if not set)
  • facebook — URL to Facebook page
  • gplus — URL to Google+ page
  • twitter — URL to Twitter account

arc_meta_person

Outputs Knowledge Graph social profiles script tag for a person.

<txp:arc_meta_person />

Attributes

  • name — Person’s name
  • logo — URL to person’s picture
  • facebook — URL to Facebook page
  • gplus — URL to Google+ page
  • twitter — URL to Twitter account

Admin

Article Write Page

The plugin will add title and description fields to the Meta options. Use these to set your article’s meta data.

If you set a title here it will be used in place of the article’s title when replacing the %a token for the arc_meta_title tag.

The description will be used for the arc_meta_description tag and for the descriptions used by the arc_meta_open_graph and arc_meta_twitter_card tags.

Section and Category Pages

The plugin will add meta title and meta description fields to the section and category edit forms.

If you set a title here it will be used in place of the section’s/category’s name when replacing the %s/%c token for the arc_meta_title tag. When editing the homepage section the meta title will replace any pattern defined for the page title.

The description will be used for the arc_meta_description tag and for the descriptions used by the arc_meta_open_graph and arc_meta_twitter_card tags.

Plugin Options

From the plugin’s options page you can set the default patterns used for the arc_meta_title tag. These can all be overridden when the tag is included in your page templates, but it may be easier to set the default patterns if you want to change the ones that come with the plugin when installed.

Translations

The admin interface of this plugin has been translated into French thanks to Nicolas Morand.

You might also like...
Talkino allows you to integrate multi social messengers and contact into your website and enable your users to contact you using multi social messengers' accounts.

Talkino Welcome to our GitHub Repository Talkino is a click to chat plugin to show your agents’ multiple social messengers, phone and emails on the ch

Textpattern-for-Panic-Coda - A Textpattern CMS mode for Panic Coda

Textpattern elements for Panic Coda 2 Handy elements for use with Panic Coda 2 on a Mac when authoring files for the Textpattern CMS. This repository

Plugin allowing to integrate marketing automation made by ActiveCampaign in Sylius.
Plugin allowing to integrate marketing automation made by ActiveCampaign in Sylius.

The SyliusActiveCampaignPlugin takes care of creating and updating contacts, connections, orders, and abandoned carts on ActiveCampaign.

MailChimp for Magento 2. Syncs all data (subscriber, customers, orders, products) and enables marketing automation with email campaigns, automations, ads, postcards and more.

MailChimp for Magento 2. Syncs all data (subscriber, customers, orders, products) and enables marketing automation with email campaigns, automations, ads, postcards and more.

FULL, FREE and SUPPORTED integration with MailChimp Email Marketing for Magento 2.

MageMonkey has been deprecated, please use MailChimp for Magento instead MailChimp official Magento extension Support MageMonkey, Subscribe for a free

WordPress plugin renames image filenames to be more SEO friendly, based on the post's data and image metadata.

=== Automatic image Rename === Contributors: wpsunshine Tags: image, images, SEO, rename, optimization Requires at least: 5.0 Tested up to: 6.2.2 Stab

Ied plugin composer - Inspired Plugin Composer: Create, publish and edit plugins from within Textpattern CMS.

ied_plugin_composer Create, publish and edit plugins from within Textpattern CMS. Creates a new page under the Extensions tab where you can edit and e

This website for web pentesters and beginner bug bounty hunters,You can improve your hacking skills by practicing xss in this lab.

XSSLab [Not finished yet, it's under development] XSSLab is a vulnerable website coded By Mahdi Jaber "Mr MJT" {in digital world}.. By XSSLab you can

Comments
  • Options/Prefs changed + Textpacks added

    Options/Prefs changed + Textpacks added

    Hi Andy, Here are some changes suggestions… Changes in options/prefs allows to display all preferences in the same place under the Preferences tab and avoid to build a custom panel or form.

    There is still a little issue with the Options link but I think that it will be fixed soon (See http://forum.textpattern.com/viewtopic.php?pid=299970#p299970).

    opened by NicolasGraph 3
  • Incorrect HTML markup on Edit Section Meta Data tab

    Incorrect HTML markup on Edit Section Meta Data tab

    Posted on the Textpattern Forums by Uli:-

    Can you see the reason why, on Edit Section Meta Data, the first two <p>s in are output empty, without a class name and separated from their intended content (the spans), whereas the remaining two <p>s come out properly? I wanted to quickly hide title and robot elements but don’t even succeed in doing it now with nth-child, I assume because of the broken code.

    bug 
    opened by drmonkeyninja 0
  • Undefined index arc_meta_section_tab after installation

    Undefined index arc_meta_section_tab after installation

    Posted on the Textpattern Forums:-

    NicolasGraph wrote #290864:

    Thanks for your work! I have this error message on upgrade or on install (after removing the previous version) :

    Erreur lors du chargement du plugin : arc_meta -> Notice: Undefined index: arc_meta_section_tab on line 427...

    monkeyninja wrote #290881:

    What version of Textpattern are you installing it on? It is looking for a preference that should have been created on install/upgrade.

    I can confirm the same error message on a v4.5.7 installation (upgrading arc_meta from v1.1.2 to v1.4.0).

    bug 
    opened by drmonkeyninja 0
  • Migrate meta descriptions to Textpattern core tables

    Migrate meta descriptions to Textpattern core tables

    Now that Textpattern 4.6 will be supporting meta descriptions the plugin needs updating to make use of this.

    My aim is to ensure that users of this plugin can continue to use it and upgrade Textpattern without issues.

    enhancement 
    opened by drmonkeyninja 0
Releases(2.0.1-beta.1)
Owner
Andy Carter
Senior developer at Evoluted New Media, I work mostly with Laravel and CakePHP.
Andy Carter
LaraNx Seo enables your Laravel app to store SEO and social media meta tag data in database instead of your code

LaraNx Seo enables your Laravel app to store SEO and social media meta tag data in database instead of your code. Moving marketing data out of your code base and into your database where it is easily modified.

srg 13 Dec 29, 2022
Arc youtube - Youtube plugin for Textpattern

arc_youtube A Textpattern plugin for easily embedding Youtube videos in pages using a customisable player. This plugin works well with arc_vimeo and o

Andy Carter 5 May 17, 2018
Arc vimeo - Textpattern plugin for embedding Vimeo videos in content

arc_vimeo A Textpattern plugin for easily embedding Vimeo videos in pages using a customisable player. This plugin works well with arc_youtube and oui

Andy Carter 1 May 17, 2018
Arc admin comment preview - Simple Textpattern plugin that adds a comment preview to admin

arc_admin_comment_preview This is a Textpattern plugin for adding comment previews to the admin comment edit pages. Requirements Textpattern 4.0.8+ In

Andy Carter 1 Jan 20, 2017
TXP-Tweet - arc twitter - Twitter-Textpattern integration

TXP Tweet This is TXP Tweet, a collection of Textpattern plugins for Twitter integration. TXP Tweet consists of two plugins: arc_twitter (the core Tex

Andy Carter 11 Sep 20, 2021
Magento 2 SEO extension will do perfectly for your better SEO.

Magento 2 SEO extension will do perfectly for your better SEO. This is a bundle of outstanding features that are auto-active when you install it from Mageplaza without any code modifications. It is also friendly with your store if you need to insert meta keywords and meta descriptions for your product.

Mageplaza 121 Oct 28, 2022
Smd tags - A Textpattern CMS plugin for unlimited, structured taxonomy across content types.

smd_tags Tag articles, images, files and links with stuff, then use the public-side tags to display the lists, filter or find related content. Feature

Stef Dawson 4 Dec 26, 2022
Textpattern-installer - Textpattern plugin and theme installer for Composer

Textpattern Installer for Composer Package directory | Issues Install plugins and themes to Textpattern CMS with Composer. $ composer require rah/rah_

Jukka Svahn 7 Apr 14, 2022
Phalcon PHP Meta tags Service

About Phalcon meta tags plugin for PhalconPHP. This plugin allows you to easily and flexibly customize the meta tags of your view. If this plugin help

null 12 Oct 7, 2022