statamic / wikilinks

Autolinks content wrapped in [braces], just like a wiki.
https://statamic.com
MIT License
1 stars 3 forks source link

Feature idea: Alternative display title #6

Open steveparks opened 5 months ago

steveparks commented 5 months ago

At the moment, the addon takes text between the [ and ] braces and turns it into a link to an entry with exactly that title. The same title is shown as the link.

Sometimes it may be desired to have a different title displayed to the actual title of the entry.

For example:

It would be a useful feature if users could enter the correct page title to be referenced, but then also enter alternative text to be displayed.

This could be achieved with this format: [Original entry title|Alternative display text]


As mentioned before, suggesting some ideas for extra features. If you feel this would be worthwhile, and once we've hammered out the idea, I'd be happy to work on a pull request.