Skip to content

allows for a custom page to be rendered in English.

Notifications You must be signed in to change notification settings

michaelkpate/mkp_if_en

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

mkp_if_en

This conditional tag examines the url of the current page and determines if the url begins with ‘en.’ This allows for a custom page to be rendered in English.

Links

mkp_if_en

Attributes

None

Examples

You will want something similar to this in your error template to display the alternative formatting.

<txp:mkp_if_en>
  <txp:smd_if field="txpvar:target_article" operator="isused">
    [individual article page header design]
    <txp:article_custom form="[article form]" id='<txp:variable name="target_article" />' />
    [individual article page footer design]
  <txp:else />
    [section page header design]
    <txp:article_custom form="[article form]" section='<txp:variable name="target_section" />' />
    [section footer design]
<txp:else />
 [standard error page code]
</txp:_mkp_if_en>

Release History

Version 1.1: November 2nd, 2016 (added the variables)
Version 1.0: November 1st, 2016

About

allows for a custom page to be rendered in English.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages