Add a hyperlink in the backend to view an entry page/URL in the frontend
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
fields
LICENCE.txt
README.markdown
extension.driver.php
extension.meta.xml

README.markdown

Entry URL Field

Installation

  1. Upload the 'entry_url_field' 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.