1.0releasedField: Multilingual URL
The multilingual version of the URL field.
Clone URLhttps://github.com/vlad-ghita/multilingual_url_field.git
Add as a submodulegit submodule add https://github.com/vlad-ghita/multilingual_url_field.git extensions/multilingual_url_field --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 | No | 1.0 | No | No | No | No | No | No | No | No | No | No | No | No | No | No. Soon? |
Readme
Field: Multilingual URL
1 About
The multilingual version of URL field.
2 Installation
Dependencies:
- Install URL field if it's not already installed.
- Install Multilingual Entry URL if it's not already installed.
This extension:
- Upload the
multilingual_url_fieldfolder in this archive to your Symphonyextensionsfolder. - On
Extensionspage in Admin, install it by selectingField: Multilingual URL, chooseEnable/Installfrom theWith Selectedmenu, then clickApply. - The field will be available in the list when creating a Section.
3 Usage
1_ Add a Multilingual Entry URL field named View on site to Section A (I assume you have a Multilingual Text box with name = Title):
Set a slick value for Anchor Label: {entry/title/item[ @lang='$language_code' ]}
Set a slick value for Anchor URL: /entries/{entry/title/item[ @lang='$language_code' ]/@handle}
2_ Create some entries in Section A.
3_ Go to Section B and add Multilingual URL field to it. In Values select choose View on site from Section A.
4_ Create an entry in Section B. You can swtich between Internal and External links. Internal select will
be populated with all entries from Section A in current language of the Author.
For External links, the value must be a valid URI.
If you don't select any sections in field settings, the field will accept only External links.
Version history
Requires Symphony 2.3.x
- Initial release.