URL Segment Condition Not Working

Hello,

I’ve seen that on this forum @alexander mentions that it is possible to have conditions based on URL segments. Unfortunately, I just can’t seem to get it to work. Here is what I’m looking for:

When a URL has hire in the path, I want it to show this section. If it has online-sales in the URL path then I want to show this other section.

Here are the condition expressions I’ve been trying but with no luck:
{{dc:url:segment}} is hire
{{dc:url:segment}} in hire
hire in {{dc:url:segment}}
and a few more as well…

Am i doing something wrong here? Can you give me a bit of guidance on this?

Hi @Maratopia_Digital,

It seems that you have not mentioned the key for which the value has to be compared. I would suggest you check and go through the following thread on this.


https://theme.co/forum/t/element-conditions-discussion/80638/38

Hope it helps.
Thanks

Ahh, that’s why then! Yep, it’s working now.

We really need better documentation on each of these DCs, to explain how they are meant to work and what they are for.

But thanks for the quick reply.

Hi @Maratopia_Digital,

Glad that we are able to help you.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.