wycinanie <span> przez cmsms

Pomoc po polsku dla CMS Made Simple
Locked
kreatiq
New Member
New Member
Posts: 2
Joined: Tue Dec 06, 2016 1:46 pm

wycinanie <span> przez cmsms

Post 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
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3483
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: wycinanie <span> przez cmsms

Post 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}
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: wycinanie <span> przez cmsms

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
kreatiq
New Member
New Member
Posts: 2
Joined: Tue Dec 06, 2016 1:46 pm

Re: wycinanie <span> przez cmsms

Post 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 :)
User avatar
Rolf
Dev Team Member
Dev Team Member
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: wycinanie <span> przez cmsms

Post 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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Locked

Return to “Polish - Polski”