1.3.1releasedEntry 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.x2.1.x2.2.x2.3.x2.4.x2.5.x2.6.x2.7.0
NoNo1.1.11.3.11.3.11.3.11.3.11.3.1

Readme

Entry URL Field

Installation

  1. Upload the 'entryurlfield' folder in this archive to your Symphony 'extensions' folder.
  2. Enable it by selecting the "Field: 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.

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

  • 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