Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template filter to easily hide form fields #67

Open
ercanozkaya opened this issue Feb 27, 2017 · 1 comment
Open

Template filter to easily hide form fields #67

ercanozkaya opened this issue Feb 27, 2017 · 1 comment
Labels
Milestone

Comments

@ercanozkaya
Copy link
Member

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 ercanozkaya added this to the 3.1 milestone Feb 27, 2017
@johanjanssens johanjanssens modified the milestones: 3.2, Backlog Mar 20, 2019
@johanjanssens
Copy link
Member

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants