-
|
Hello, everybody! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
I would like to have some discussion about this too. I've always wanted a way to override this in JCB. But i have not found a good way to do it yet. I've done layout overrides in the template. I've built my own edit site views but if i could just edit the edit view that is generated that would be easiest. What i miss most about editing those pages is being able to hide the other tabs. So let the end user only edit the details or other tabs but hide publishing and rights tab. |
Beta Was this translation helpful? Give feedback.
-
|
@TLWebdesign Tabs in both the Administrator and Site Edit views are conditionally displayed based on user permissions, allowing precise control over which interface elements are visible to each user group. A working example of this setup can be found here in a admin view template. ConceptTabs are conditionally displayed based on whether the current user has specific permissions.
<?php if ($this->canDo->get('city.edit.created_by')|| $this->canDo->get('city.edit.created')|| $this->canDo->get('city.edit.state')|| ($this->canDo->get('city.delete') && $this->canDo->get('city.edit.state'))
) : ?>If the user has any of these permissions, the Publishing tab will be shown.
<?php if ($this->canDo->get('core.admin')) : ?>If the user has the RecommendationControl which tabs are visible to users by configuring the appropriate permissions for each user group. This gives you fine-grained control over the interface without needing additional overrides or custom logic. |
Beta Was this translation helpful? Give feedback.

@SAP74 There is quite a few ways to accomplish this in JCB for different areas.
We would recommend using the File Includes functionality provided by Joomla Component Builder (JCB) for this use case.
JCB allows you to include external files and folders directly into your component package without modifying or overriding core-generated files. This approach keeps your custom logic clean, maintainable, and fully under your control.
How it works
You maintain your custom files separately within your own codebase.
These files are written and updated manually, independent of JCB's generated structure.
Within JCB, you simply reference the file or folder path, and it will: