• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: wycinanie <span> przez cmsms
PostPosted: Tue Dec 06, 2016 1:59 pm 
Offline
New Member
New Member

Joined: Tue Dec 06, 2016 1:46 pm
Posts: 2
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


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: wycinanie <span> przez cmsms
PostPosted: Tue Dec 06, 2016 3:09 pm 
Offline
Dev Team Member
Dev Team Member

Joined: Mon Nov 28, 2011 9:29 am
Posts: 3090
Location: The Netherlands
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:
echo '<span class="glyphicon glyphicon-' . $params['icon'] . '"> </span>';


Then in your content / template use:

Code:
{glyphicon icon=envelope}


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: wycinanie <span> przez cmsms
PostPosted: Tue Dec 06, 2016 3:47 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 8021
Location: Fernie British Columbia, Canada
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.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: wycinanie <span> przez cmsms
PostPosted: Tue Dec 06, 2016 6:34 pm 
Offline
New Member
New Member

Joined: Tue Dec 06, 2016 1:46 pm
Posts: 2
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 :)


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: wycinanie <span> przez cmsms
PostPosted: Tue Dec 06, 2016 9:28 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Apr 23, 2008 7:53 am
Posts: 7658
Location: The Netherlands
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

_________________
Image

Did my post help you solving a problem at your (customers) website and it saved you many hours of work? Great!! Consider buying me a cup of coffee in return!



Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting