joomlatools-framework
joomlatools-framework copied to clipboard
Template filter to easily hide form fields
See: https://support.joomlatools.com/forums/topic/7163
Most template overrides are done to hide one or two fields. And since the whole file is overridden it breaks in upgrades.
Instead follow a strategy where each form field is wrapped in a tag like <ktml:block name="owner">
The overrides would just have hide directives and then include the original file, something like:
<ktml:blocks hide="owner" />
<ktml:import:original:file:somehow>
@ercanozkaya This is not a bad idea, wouldn't it make more sense to make the templates fields configurable using the new config approach we introduced? You need the path of the template, and an array of fields to hide?