1.2.8releasedLink Preview

Offers a field that will place a link to the frontend in the publish pages

Clone URLhttps://github.com/DeuxHuitHuit/link_preview.git

Add as a submodulegit submodule add https://github.com/DeuxHuitHuit/link_preview.git extensions/link_preview --recursive

Compatibility

2.x.x2.1.x2.2.x2.3.x2.4.x2.5.x2.6.x2.7.0
NoNoNoNo1.2.81.2.81.2.81.2.8

Readme

Link Preview

Version: 1.2.x

Offers a field that will place a link to the frontend in the publish pages

SPECS

Using the brackets syntax, it permits to create frontend links related to the entry.

REQUIREMENTS

  • Symphony CMS version 2.3.4 and up (as of the day of the last release of this extension)

INSTALLATION

  • git clone / download and unpack the tarball file
  • Put into the extension directory
  • Enable/install just like any other extension

You can also install it using the extension downloader.

For more information, see http://getsymphony.com/learn/tasks/view/install-an-extension/

HOW TO USE

  • Add a Link Preview field to your section.
  • Set up the url format using values from other fields.
  • Use "Anchor Label" to give your link a custom label.
  • A simple link will be added next to the title of the entry.

HOW TO SET UP THE URL FORMAT

  • Use {$fieldname} to include the handle of a field
  • Use {$fieldname:value} to include the value instead of the handle
  • Use {$fieldname:id} to include the ID of an associated entry
  • Use qualifiers for php date_format to format date and datetime fields:
    • i.e. /article/{$date:Y}/{$date:m}/{$date:d}/{$title}/
  • Use qualifiers for php date_format to format the current system date:
    • i.e. /today/{$system:date:Y}/{$system:date:m}/{$system:date:d}/
  • Available system values:
    • system:id => Entry ID
    • system:time => 'H:i'
    • system:date => 'Y-m-d'
    • system:day => 'd'
    • system:month => 'm',
    • system:year => 'Y',
    • system:root => URL,
    • system:workspace => URL . '/workspace',
    • system:http-host => HTTP_HOST,

LICENSE

MIT http://deuxhuithuit.mit-license.org

Voila !

Come say hi! -> http://www.deuxhuithuit.com/

Version history

Symphony 2.3.4 to 2.x.x

  • Supported on PHP 7
  • Fixed method signatures

Symphony 2.3.4 to 2.x.x

  • Fixed a bug when the action toolbar is not rendered by the server

Symphony 2.3.4 to 2.x.x

  • Fixed a bug when no fields are matched when applying the url format

Symphony 2.3.4 to 2.x.x

  • Updated compatibility info
  • Fixed a bug when a related entry gets deleted

Symphony 2.3.4 to 2.6.x

  • Parse the url format to request only the needed schema. Improves performance

Symphony 2.3.4 to 2.6.x

  • Compatible with 2.6.x (up to 2.6.3)

Symphony 2.3.4 to 2.5.x

  • Added preview button to actions bar

Symphony 2.3.4 to 2.5.x

  • Added Compatibility with "Association Field"
  • Allow ID-qualifier for associated entries

Symphony 2.3.4 to 2.5.x

  • Added setting "anchor label" (displayed in the entries table and entry heading)
  • Anchor label can also use the {$param} syntax.
  • Added setting "display url" (display url in entries table instead of the anchor label)
  • Made entry id accessible for url formatting via {$system:id}
  • Added {$system:root}, {$system:workspace}, {$system:http-host} parameters

Symphony 2.3.4 to 2.3.6

  • Added the ability to qualify fields in order to use their value instead of the handle

Requires Symphony 2.3.4

  • First release