2 edited body
source | link

I'm currently working on a tridionTridion website and a cookie law must be set up. Right now, in the content componentsComponents, 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">&nbsp;</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"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'mI'm clear enough and you understand my question. Thank you in advance.

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">&nbsp;</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.

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">&nbsp;</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.

1
source | link

DWT and cookie laws

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">&nbsp;</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.