Conditional looper comparing DC string vs Shortcode string

So got a nice setup for displaying a Noticebar on pages that they select.

Only issue is when I compare the {{dc}} vs the [shortcode] it doesn’t work even though the values are as far as I can tell are identical. I can only assume that shortcodes aren’t supported here.

I can’t use {{dc:post:permalink}} as this won’t work for archive pages as it spits out the first post url instead.

Would it be possible to have something like {{dc:global:current_url}} without the ? query string although I can see that being useful as an option.

Thanks

Example does not work
{{dc:looper:item}} =
https://mywebsite.com/blog
[geturl] =
https://mywebsite.com/blog
image

{{dc:url:path}} Looks like the closest we get to what you are looking for. It’s not the full URL with domain, but we can add another type like full_path or current_url

1 Like

Thanks for the heads up on the Path!

If you can see that their is room for a full_path or current_url it could be useful so nothing needs to be hardcoded.

1 Like

Definitely, we’ll add that after release it’s a quick one. You won’t have to hardcode in the meantime if you do the below.

{{dc:global:home_url}}/{{dc:url:path}}

This will be {{dc:url:full_path}} in 6.0.1 thanks!

1 Like