CMS Made Simple Forums
https://forum.cmsmadesimple.org/

wycinanie <span> przez cmsms
https://forum.cmsmadesimple.org/viewtopic.php?f=12&t=75787
Page 1 of 1

Author:  kreatiq [ Tue Dec 06, 2016 1:59 pm ]
Post subject:  wycinanie <span> przez cmsms

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

Author:  velden [ Tue Dec 06, 2016 3:09 pm ]
Post subject:  Re: wycinanie <span> przez cmsms

Perhaps a short UDT (User Defined Tag) could be helpful to you:

(not tested):

Create a new UDT and name it e.g. 'glyphicon'
\$1:
echo '<span class="glyphicon glyphicon-' . $params['icon'] . '"> </span>';


Then in your content / template use:

\$1:
{glyphicon icon=envelope}

Author:  calguy1000 [ Tue Dec 06, 2016 3:47 pm ]
Post subject:  Re: wycinanie <span> przez cmsms

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.

Author:  kreatiq [ Tue Dec 06, 2016 6:34 pm ]
Post subject:  Re: wycinanie <span> przez cmsms

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 :)

Author:  Rolf [ Tue Dec 06, 2016 9:28 pm ]
Post subject:  Re: wycinanie <span> przez cmsms

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

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/