Unless it’s already there or undocumented, {post_slug} would be great. I’m trying to set up a dynamic category page and I have some anchor links directing people to various parts of the page.
It would also be even better if we could use {post_slug} on section IDs.
3 Likes
+1 for this.
What I’m doing now is I create a function that produces the slug and then call that function with a dynamic data tag {echo:my_custom_function}.
But the lack of the post slug is a glaring omission. =)
2 Likes
This feature request is already on the idea board: https://bricksbuilder.io/ideas/#7613
4 Likes
Sandro
October 2, 2023, 11:12am
4
This is working for me:
{echo:get_post_field(‘post_name’,}
3 Likes
james
February 13, 2024, 8:12am
5
Perfect, just what I was looking for, thanks
Does this work inside a query loop?
timmse
April 24, 2024, 7:24am
7
Hi guys,
We’ve added the new {post_slug} tag in Bricks 1.9.8 beta, now available as a manual download in your account (see changelog ).
Please let us know if you are still experiencing issues.
As with any beta release, please do not use it on a production or live website. It is only meant for testing in a local or staging environment.