Page 1 of 1

wycinanie <span> przez cmsms

Posted: Tue Dec 06, 2016 1:59 pm
by kreatiq
Cześć;

mam problem z automatycznym wycinaniem znaczników <span> przez cmsms.
Template oparty jest o bootstrap, chcę skorzystać z glyphicon class np.
<span class="glyphicon glyphicon-envelope"></span>
jednak po wstawieniu czy to w content, czy szablon czy globalne fragmenty kodu - wycina mi wszystkie znaczniki span i to co w nich

Znalazlam cos takiego: http://dev.cmsmadesimple.org/projects/dropcaps

ale zupełnie nie wiem jak z tego skorzystać :-[
i czy rozwiąże to mój problem HELP

Re: wycinanie <span> przez cmsms

Posted: Tue Dec 06, 2016 3:09 pm
by velden
Perhaps a short UDT (User Defined Tag) could be helpful to you:

(not tested):

Create a new UDT and name it e.g. 'glyphicon'

Code: Select all

echo '<span class="glyphicon glyphicon-' . $params['icon'] . '"> </span>';
Then in your content / template use:

Code: Select all

{glyphicon icon=envelope}

Re: wycinanie <span> przez cmsms

Posted: Tue Dec 06, 2016 3:47 pm
by calguy1000
glyphicons and other stylings are design elements, and design decisions... not part of content. Your problem is the WYWISYG editor.

WYSiWYG editors are for content editors, not designers.
Disable the wysiwyg editor on blocks/pages that have design stuff in there that content editors should not be editing.

Re: wycinanie <span> przez cmsms

Posted: Tue Dec 06, 2016 6:34 pm
by kreatiq
calguy1000
I have in WYSiWYG option to switch in HTML and then I put
<span></span>

velden
Thank You - it's working with User Defined Tag :)

Re: wycinanie <span> przez cmsms

Posted: Tue Dec 06, 2016 9:28 pm
by Rolf
Easy way to use Font Awesome in CMS Made Simple
http://www.cmscanbesimple.org/blog/easy ... ade-simple

Use a UDT for content styling
http://www.cmscanbesimple.org/blog/use- ... nt-styling