Loading...
 
Skip to main content

Features / Usability


Editing a wiki page and HTML tag gets butchered

I have a wiki page from a previous site and it contained some HTML (see below) to redefine the width of modules to give a more pleasing output.

spaces added to the tag for self preservation


td#centercolumn div.box{width: 96%; } td#centercolumn div.box-title{width: 100%; } td#centercolumn div.box-data{width: 100%; }



When I edit the page an < x > gets added to the < s t y l e> page:


td#centercolumn div.box{width: 96%; } td#centercolumn div.box-title{width: 100%; } td#centercolumn div.box-data{width: 100%; }


can someone tell me what setting I have to turn off so the tag is not filtered out.

You can see the page at http://www.baker-evans.com/knowledgegarden"Question class="wiki wikinew text-danger tips">http://www.baker-evans.com/knowledgegarden

Grateful for any assistance,
Peter Evans

The x interrupting the style tag is added by a measure to protect against malicious script attacks on your site. Admittedly, this may have been implemented a little overzealously in the Tikiwiki 2 releases, and there will be more admin options for it in the next major release.

But you should be able to set widths of objects in wiki pages without using HTML. You can enclose the object in a DIV plugin, which has a width parameter.

-- Gary - http://zukakakina.comQuestion


Is there anyway I can enable the < s t y l e > tag just for myself. I hvae ticked HTML in the edit screen and I am the site admin and I also have write access to the tiki .php files.

Peter Evans


What I used to have in an older tiki site was some modules (e.g. last visit and top users) on the first page that were displayed full width. You can see this at http://www.baker-evans.com/knowledgegarden/tiki-pagehistory.php?page=Welcome%20to%20our%20knowledgeGarden&preview=282Question

This was achieved with an inlide redefinition of div.box-data i.e.

td#centercolumn div.box{width: 96%; } td#centercolumn div.box-title{width: 100%; } td#centercolumn div.box-data{width: 100%; }

I am afraid i can't see how to do this with div.

Thanks in advance for any assistance you might be able to give.
Peter Evans

You can override the standard module width by adding something like this to your stylesheet:

td#centercolumn .box,
td#centercolumn .box-title,
td#centercolumn .box-data {width: 100%}

For full-width modules in wiki pages in any theme, including those that don't use tables for layouts, td#centercolumn in the above lines can be replaced by div.wikitext.

-- Gary - http://zukakakina.comQuestion