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

Custom field group tabs ordering / positioning #44940

Open
jjnxpct opened this issue Feb 19, 2025 · 3 comments
Open

Custom field group tabs ordering / positioning #44940

jjnxpct opened this issue Feb 19, 2025 · 3 comments

Comments

@jjnxpct
Copy link

jjnxpct commented Feb 19, 2025

I would like the tabs that are added to items based on custom field groups (Articles, Users, and other components that use custom fields) to appear after the first tab, or possibly even before all other tabs. Currently, I believe we have no control over where these tabs are placed. I'm not sure where this setting would need to be configured, though...

@jjnxpct
Copy link
Author

jjnxpct commented Feb 21, 2025

I managed to create my own plugin (with some or rather a lot help of chatGTP) that can do this for my sites now. When workin on this there was a bit of a struggle to get the 'active' state of a tab correctly. Joomla seems to remember the tab state on an individual item. But it default to the first Joomla tab. Moving tabs in front of the default first tab still has the default Joomla tab active when there is no 'remembered' tab state. So moving the Custom Files Group tabs to the front, before the first default tab does not activate the first tab by default.

Moving the Custom Group Fields tabs just after the first default Joomla tab does work now for me. So I happy with thsa for now.

But still, maybe an option Joomla to do this would be nice / better. The plugin I created uses javascript to swap around tabs. It works but it's not the best solution.

@brianteeman
Copy link
Contributor

i did this myself with a simple layout override the other day. This blog post explains how https://www.dr-menzel-it.de/blog/override-challenge-beitrag-einreichen-im-frontend

@jjnxpct
Copy link
Author

jjnxpct commented Feb 21, 2025

That looks like a lot less work then creating a plugin ;-) I will give it a try.
But still, it would be a nice feature to have natively in Joomla I think.

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

No branches or pull requests

4 participants