Page 1 of 1

Using html in the default parameter of {content} tag

Posted: Tue Oct 31, 2023 12:41 pm
by johnboyuk1
Is it possible to use strings etc in the 'default' parameter of the {content} tag? I'm wondering how I manage the quote marks... I've quote a long piece of HTML that I want to be written into the content box by default - its a table that i want editors to be able to fill in.

for example

Code: Select all

{content default=' <table class="table"></table>'}
Isn't going to work is it because of the quote marks for the class

Can anyone help? (or suggest a better way)

thanks!

Re: Using html in the default parameter of {content} tag

Posted: Tue Oct 31, 2023 2:55 pm
by DIGI3
The way you've done it should work, but will get pretty complicated if the table is quite large. You may want to capture or assign it to a variable first, then {content default=$mytable}. You can have quotation marks in the default content as long as they're not the same ones wrapped around the default= part.