IMPLEMENTED: Dynamic data tag {post_slug}

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 :wink:

4 Likes

This is working for me:
{echo:get_post_field(‘post_name’,}

3 Likes

Perfect, just what I was looking for, thanks :+1:

Does this work inside a query loop?

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.