I'm currently working on a Tridion website and a cookie law must be set up. Right now, in the content Components, there is a possibility to add HTML code through a text field.
If this HTML code contains a tag like this one:
<iframe src="http://www.slideshare.net/slideshow/embed_code/58264?rel=0"> </iframe>
I need to include it within some C# code in order to show/hide it , depending on what the user has chosen in term of cookies.
For example, if the user decides to disable slideshare, the src
attribute changes and display something else.
In my DWT, this is the block of code that takes care of displaying what is written in the text field:
<!-- TemplateBeginIf cond="Field.content" -->
@@RenderComponentField("Fields.Paragraph[${paragraphindex}].content",0)@@
<!-- TemplateEndIf -->
I don't know how to achieve this. Hope I'm clear enough and you understand my question. Thank you in advance.
else
statement. It's not clear what exactly you need to do with C#. With DWT unfortunately you can't do an 'else, but you can do anot if