View Single Post
  #4  
Old 03-03-2016, 01:22 PM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: Static Page HTML (Img Width / Forms) Coding Issue

You can use inline CSS to style parts of your static pages. There should be no problem with that.

To make X-Cart not strip <script> tags do the following

file: /classes/XLite/Module/CDev/SimpleCMS/View/Model/Page.php
Changed this piece of code
Code:
'body' => array( self::SCHEMA_CLASS => 'XLite\View\FormField\Textarea\Advanced', self::SCHEMA_LABEL => 'Content', self::SCHEMA_REQUIRED => true, \XLite\View\FormField\Textarea\Advanced::PARAM_STYLE => 'page-body-content', ),
as follows
Code:
'body' => array( self::SCHEMA_CLASS => 'XLite\View\FormField\Textarea\Advanced', self::SCHEMA_LABEL => 'Content', self::SCHEMA_REQUIRED => true, self::SCHEMA_TRUSTED => true, \XLite\View\FormField\Textarea\Advanced::PARAM_STYLE => 'page-body-content', ),
Of course, this should be implemented as a module in order to make the change independent on upgrades.
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote