Using html in the default parameter of {content} tag

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
johnboyuk1
Forum Members
Forum Members
Posts: 192
Joined: Mon Nov 26, 2018 3:09 pm

Using html in the default parameter of {content} tag

Post 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!
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1629
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

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

Post 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.
Not getting the answer you need? CMSMS support options
Post Reply

Return to “CMSMS Core”