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.x | 2.1.x | 2.2.x | 2.3.x | 2.4.x | 2.5.x | 2.6.x | 2.7.0 | 2.7.1 | 2.7.2 | 2.7.3 | 2.7.4 | 2.7.5 | 2.7.6 | 2.7.7 | 2.7.8 | 2.7.9 | 2.7.10 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
No | No | 1.0 | 1.5 | No | No | No | No | No | No | No | No | No | No | No | No | No | No. 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 myArticles
Section with aMultilingual text
field calledTitle
. Given anArticles
Page with an URL param pointing toTitle
, 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
- Upload the 'multilingualentryurl' folder in this archive to your Symphony 'extensions' folder.
- Enable it by selecting the "Field: Multilingual Entry URL", choose Enable from the with-selected menu, then click Apply.
- 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 formultilingual_
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.