1.5releasedMultilingual Entry URL

The multilingual version of the Entry URL field.

Clone URLhttps://github.com/vlad-ghita/multilingual_entry_url.git

Add as a submodulegit submodule add https://github.com/vlad-ghita/multilingual_entry_url.git extensions/multilingual_entry_url --recursive

Compatibility

2.x.x2.1.x2.2.x2.3.x2.4.x2.5.x2.6.x2.7.02.7.12.7.22.7.32.7.42.7.52.7.62.7.72.7.82.7.92.7.10
NoNo1.01.5NoNoNoNoNoNoNoNoNoNoNoNoNoNo. Soon?

Readme

Multilingual Entry URL

The multilingual version of the entry url field.

1 About

When adding this field to a section, the following options are available to you:

  • Anchor Label is the text used for the hyperlink in the backend
  • Anchor URL is the URL of your entry view page on the frontend. An <entry id="123">...</entry> nodeset is provided from which you can grab field values, just as you would from a datasource. For example:

    {entry/title/item[@lang='$language_code']}
    
  • For Multilingual Text, you can use $language_code (without {}) as a placeholder for language codes. It will be replaced for each language on URL generation.
    Let's say my Articles Section with a Multilingual text field called Title. Given an Articles Page with an URL param pointing to Title, an expression like this must be used:

    /articles/{entry/title/item[@lang='$language_code']/@handle}/   --> make sure you know the XML output of Multilingual Text
    
  • Open links in a new window enforces the hyperlink to spawn a new tab/window

  • Hide this field on publish page hides the hyperlink in the entry edit form

Note about compatibility

Currently the URL is generated this way:

/__LANGUAGE-CODE__/URL

2 Installation

  1. Upload the 'multilingualentryurl' folder in this archive to your Symphony 'extensions' folder.
  2. Enable it by selecting the "Field: Multilingual Entry URL", choose Enable from the with-selected menu, then click Apply.
  3. The field will be available in the list when creating a Section.

Version history

Requires Symphony 2.3.x

  • Take advantage of new all-languages mode for multilingual_ fields.

Requires Symphony 2.3.x

  • Compatibility with Entry URL 1.3.0.
  • Added personalized labels supporting xPath at entry level instead of field level.

Requires Symphony 2.3

  • Frontend Localisation 1.6 compatibility.

Requires Symphony 2.3

  • Frontend Localisation 1.5 compatibility.

Requires Symphony 2.3

  • Update for Symphony 2.3.
  • Fixed deprecated DB call.

Requires Symphony 2.2.x

  • Initial release.