Hello guys,
I don’t know if this has already been brought to the forum. I did a search and didn’t see anything.
So let me get into what I’m trying to do and maybe someone out there has an idea as to how to execute this.
What I would like to do is add an include and or a snippet that has code in it that will check for the current URL and based on the current URL will give the body tag a class.
This is what I’m thinking it should look like <body class"[Some type of Modx Include Code Goes here]">
And this is what I’m thinking the include should have within it
IF
= some/path/URL.HTML
Then
a variable or class is passed back into the body tag so that when that is done running you get something like this:
Something to those regards is what i was thinking.
I just need a jump start and or a good resource or an example of what I’m trying to accomplish.
We are currently using a CMS system that has it’s own language code to accomplish this but there are so many other things wrong with this system that I am experimenting with ModX.
I hope there is a quick and simple solution to this. Any help would do.
Thanks in advance,
Matt