When does a Joomla form have to have the id admin form?

Be informed that this forum is not an official support forum for Joomla! 4.0. Any issues regarding Joomla! 4.0 must be reported at https://issues.joomla.org/.

Joomla 4.0 is still in Beta stage. This forum should be used for sharing information about Joomla! 4.0.

Moderator: ooffick

Forum rules
Locked
User avatar
astridx
Joomla! Intern
Joomla! Intern
Posts: 91
Joined: Wed Mar 25, 2015 8:56 am
Location: Germany
Contact:

When does a Joomla form have to have the id admin form?

Post by astridx » Fri Jul 13, 2018 10:18 am

I'm just wondering when a form in joomla needs to be an adminform.

For example this form in com_template:

https://github.com/joomla/joomla-cms/bl ... t.php#L434


This is the modal for copying a template.
Why is that an adminform and the other modals, for example the modal for copy files, have no id?
---
https://blog.astrid-guenther.de/
---
Don't push the river ... it flows by itself ...

SharkyKZ
Joomla! Hero
Joomla! Hero
Posts: 2901
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: When does a Joomla form have to have the id admin form?

Post by SharkyKZ » Sat Jul 14, 2018 12:22 pm

It's used as selector for JS. See these lines in the same file https://github.com/joomla/joomla-cms/bl ... #L137-L141.

Search tools is using #adminForm as default selector https://github.com/joomla/joomla-cms/bl ... lt.php#L70

ID could be anything as long as it's updated in JS too.


Locked

Return to “Joomla! 4 Related”