I'm sure this is just one of those easy things, but I can't seem to see what's wrong, or find an anwser to this.
I've created a document type for the root of the site, which as a dropdown datatype. The value of the dropdown is passed to the body as the id.
This data type used to be a checkbox.
If I hardcode "option = "normal"", works. But if I try to get the value of the dropdown, as I do in the id attribute for the body tag, it throws the Macro Script Error.
I've tried to add the ".ToString()" at the end of the expression.
Can't get document type value in macro
Hi guys,
I'm sure this is just one of those easy things, but I can't seem to see what's wrong, or find an anwser to this.
I've created a document type for the root of the site, which as a dropdown datatype. The value of the dropdown is passed to the body as the id. This data type used to be a checkbox.
It's is used like this:
As you can see, this macro is between the head and finishes after the body starting tag.
I can get the value that I want to the id attribute of the body.
Now, I need something similiar to this, but inside the head, to get the path of the favicon dynamically. But I'm not having any luck.
When the document type was of type boolean, it worked. But know that I passed to a dropdown type, it gives me the macroscript error.
Here's the code:
If I hardcode "option = "normal"", works. But if I try to get the value of the dropdown, as I do in the id attribute for the body tag, it throws the Macro Script Error.
I've tried to add the ".ToString()" at the end of the expression.
Thank you all in advance
Cheers from Portugal.
is working on a reply...