Menterprise news
Menterprise news

Page Configuration Variables 1.5




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


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


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


<html lang="en">

On-page (the actual configuration variable):



<html lang="de">

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


<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 data-hid="description" name="description" content="Hello!">
<meta data-hid="og:description" name="og:description" property="og:description" content="Hello!">

All Currently Available Properties

  • lang¹
  • title
  • style²
  • configuration³
Nav Buttons
  • button.home
  • button.categories
Page Text
  • page.latest-posts
  • page.published
  • page.more-from
  • page.table-of-contents
  • page.all-categories
  • meta.theme-color
  • meta.og:type
  • meta.description
  • meta.og:title
  • meta.og:site_name
  • meta.og:description
Script Configuration
  • script.async

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

²Setting [style=disable] will disable all styling (useful for custom theming) - setting [style=nav-only] will disable all styling except the navbar (to retain categories for easy

³Setting [configuration=disable] will end the Page Configuration config. Useful when using lots of brackets in advanced JavaScript


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!