Menterprise news
Menterprise news
get.menterprise.io

Page Configuration Variables

 

Feature

 

 

G'day all! Today we've released the beginnings of a new set of features, "Page Configuration Variables"!

Purpose

The general idea is to let users customize more areas of the page on a per-page basis. This especially benefits users who use non-English languages and want to further configure the pages to support those languages.

And of course it supports Spintax, MPSS and MPub variables!

Note, this is only the beginning, there are more coming. Also, this is currently limited to the pages themselves and not the homepages/category pages.


How to Use

[property=value]


Example 1 - Change the HTML language of the page to German:

Default:

<html lang="en">

On-page (the actual configuration variable):

[lang=de]

Result:

<html lang="de">

Example 2 - Change the meta description and meta og:description:

Default:

<meta data-hid="description" name="description" content="Page Title | Subdomain Title">
<meta data-hid="og:description" name="og:description" property="og:description" content="Page Title | Subdomain Title">

On-page (the actual configuration variable):

[meta.description=Hello!]
[meta.og:description=Hello!]

Result:

<meta data-hid="description" name="description" content="Hello!">
<meta data-hid="og:description" name="og:description" property="og:description" content="Hello!">


All Currently Available Properties

Overall
  • lang¹
  • title
Nav Buttons
  • button.home
  • button.categories
Page Text
  • page.latest-posts
  • page.published
  • page.more-from
  • page.table-of-contents
  • page.all-categories
Meta
  • meta.mobile-web-app-capable
  • meta.theme-color
  • meta.og:type
  • meta.description
  • meta.apple-mobile-web-app-title
  • meta.author
  • meta.og:title
  • meta.og:site_name
  • meta.og:description


¹The dates on the page will be automatically translated when lang is set.


FAQ

Q: Can I use it in the Campaign Prepend/Append?
A: Absolutely!

Q: Do replacements work on the text? For example, can I change "lang=es" to "lang=en" later?
A: They do!

Q: Can I use variables to easily change different parts later?
A: You can! Do it like this: [lang=[[variable]]] and set variable to something later

Q: Where do I put it?
A: Anywhere! Like MPSS, it's just on-page text at the end of the day. Personally, I put things like this in the RAW Module when working with Menterprise Content.

Q: Does this work retroactively?
A: Yes! It is dynamic, therefore you can easily update past campaigns with the prepend/append as mentioned above :)


This update is just the start, there are more properties we want to make available, if you have any ideas let us know!