I want to do something that's perhaps connected to the id so that if the title/slug updates, then I don't have to hunt anything down in entries across the CMS.
Something like this maybe?
[Link to an entry](/section#entry:10725)
I just figured out how to do this. It was vexing me!
Anyway, Craft is awesome and has provided support for Reference Tags.
Write your Markdown like this:
[link text]({entry:20})
Here's the Twig:
{{ entry.markdown|parseRefs|markdown }}
Reference Tags support more than just entries, but this was the bit that I needed.
http://mysite.com/#entry:2
You can change the#entry:2
title, slug - whatever and everything will still work since Craft is linking to the entry. It doesn't care what you call it.|markdown
filter. I know how to make a link in markdown[text](url)
but I'm wondering how to fill in the url dynamically based on id.http://mysite.com/#entry:2
doesn't work because it prints exactly that string out as the url. I want#entry:2
to convert into the uri for that entry on output.