How can I disable the table border, table class and table caption fields from displaying?
These features are built-in to eZ OE by default and must be disabled via custom settings overrides and custom template overrides within your user siteaccess.
To hide the table caption field in your user siteaccess only then edit or create the file in settings/siteaccess/user-siteaccess-directory/content.ini.append.php and It should look like this:
[table] CustomAttributes[] CustomAttributes[]=summary #CustomAttributes[]=caption
Save the settings override file changes and clear ini caches!
To hide the table border and class fields:
{include uri="design:ezoe/generalattributes.tpl" tag_name = $tag_name attributes = hash('width', 'htmlsize', 'border', 'htmlsize', 'class', $class_list ) }
{include uri="design:ezoe/generalattributes.tpl" tag_name = $tag_name attributes = hash('width', 'htmlsize')}
Save the template override file changes and clear all template caches!
And your done! These changes have been tested and work well with eZ Publish Community Project 2014.07+. You should have no problems with the example instructions provided above.
It is worth noting that if you make a template override of the above template in the user siteaccess design only then the admin siteaccess can still use these fields and retain full control and flexibility.
This also applies to the setting file change. That can be made in the user siteaccess only as well and retain admin full control.
Article provided by eZpedia
All text is available under the terms of the GNU Free Documentation License
Powered by eZ Publish Community Project 2014.7
Hosted by Swiss eZ Publish partner YMC