1.3.3releasedEntry URL Field
Add a hyperlink in the backend to view an entry URL in the frontend
Clone URLhttps://github.com/symphonists/entry_url_field.git
Add as a submodulegit submodule add https://github.com/symphonists/entry_url_field.git extensions/entry_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 | 1.1.1 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 |
Readme
Entry URL Field
Installation
- Upload the 'entryurlfield' folder in this archive to your Symphony 'extensions' folder.
- Enable it by selecting the "Field: Entry URL", choose Enable from the with-selected menu, then click Apply.
- The field will be available in the list when creating a Section.
Usage
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. An
<entry id="123">...</entry>
nodeset is provided from which you can grab field values, just as you would from a datasource. For example:Link to "{entry/name}"
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:/members/profile/{entry/name/@handle}/
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
Credits
Big thanks to Rowan Lewis' Reflection Field, which comprises about 90% of this code! Thx.
Version history
Symphony 2.3.x to 2.x.x
- Fix update function's previous version argument name (#9)
Symphony 2.3.x to 2.x.x
- Compatibility with PHP 7
Symphony 2.3.x to 2.x.x
- Updated compatibility with 2.x.x
Requires Symphony 2.3.x
- Added personalized labels supporting xPath at entry level instead of field level.
Symphony 2.2.0 to 2.2.x
Requires Symphony 2.2