joomla-cms icon indicating copy to clipboard operation
joomla-cms copied to clipboard

[6.0] Updated Joomla content form with proper tab handling, field rendering, and conditional visibility for images and metadata fields.

Open raj20889 opened this issue 8 months ago • 6 comments

Pull Request for Issue #45010

Summary of Changes

  • Made the alias field always visible in the article edit form.
  • Removed the condition that restricted alias visibility to only new articles.
  • Ensured consistency in the form structure and UI.

Testing Instructions

  1. Go to Content → Articles → Edit any article.
  2. The alias field should now be always visible, even for existing articles.
  3. Save the article and verify that the alias updates correctly.

Actual Result BEFORE Applying This Pull Request

  • The alias field was only visible for new articles and hidden for existing ones.

Expected Result AFTER Applying This Pull Request

  • The alias field is always visible, allowing users to modify it when editing an article.

Link to Documentation

Please select:

  • [ ] Documentation link for docs.joomla.org:
  • [x] No documentation changes for docs.joomla.org needed
  • [ ] Pull Request link for manual.joomla.org:
  • [x] No documentation changes for manual.joomla.org needed

raj20889 avatar Mar 01 '25 12:03 raj20889

Hey, I’ve submitted PR #45044 to always show the alias field in the article edit form.
Could someone please review it when they have time? Thanks!

raj20889 avatar Mar 01 '25 13:03 raj20889

@raj20889 Please change in the title "Fix:" to "[5.2]".

ghost avatar Apr 03 '25 03:04 ghost

This pull request has been automatically rebased to 6.0-dev.

HLeithner avatar Apr 15 '25 16:04 HLeithner

I have tested this item :red_circle: unsuccessfully on be568828d141dfaef2ba6b42d30a642e863a537c

Testing this in 6.0.0-alpha1-dev: the summary says a lot but the diff only shows one line changed in one file. Should this be a front end test - in which case the instructions make no sense.

I applied the patch and got this error in all edit pages:

0 Call to undefined method Joomla\CMS\Form\Form::renderControlFields() 

Call Stack
# 	Function 	Location
1 	() 	JROOT/components/com_content/tmpl/form/edit.php:153
2 	include() 	JROOT/libraries/src/MVC/View/HtmlView.php:416
3 	Joomla\CMS\MVC\View\HtmlView->loadTemplate() 	JROOT/libraries/src/MVC/View/HtmlView.php:204
4 	Joomla\CMS\MVC\View\HtmlView->display() 	JROOT/components/com_content/src/View/Form/HtmlView.php:197
5 	Joomla\Component\Content\Site\View\Form\HtmlView->display() 	JROOT/libraries/src/MVC/Controller/BaseController.php:697
6 	Joomla\CMS\MVC\Controller\BaseController->display() 	JROOT/components/com_content/src/Controller/DisplayController.php:123
7 	Joomla\Component\Content\Site\Controller\DisplayController->display() 	JROOT/libraries/src/MVC/Controller/BaseController.php:730
8 	Joomla\CMS\MVC\Controller\BaseController->execute() 	JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143
9 	Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() 	JROOT/components/com_content/src/Dispatcher/Dispatcher.php:56
10 	Joomla\Component\Content\Site\Dispatcher\Dispatcher->dispatch() 	JROOT/libraries/src/Component/ComponentHelper.php:361
11 	Joomla\CMS\Component\ComponentHelper::renderComponent() 	JROOT/libraries/src/Application/SiteApplication.php:218
12 	Joomla\CMS\Application\SiteApplication->dispatch() 	JROOT/libraries/src/Application/SiteApplication.php:261
13 	Joomla\CMS\Application\SiteApplication->doExecute() 	JROOT/libraries/src/Application/CMSApplication.php:306
14 	Joomla\CMS\Application\CMSApplication->execute() 	JROOT/includes/app.php:58
15 	require_once() 	JROOT/index.php:32 
```<hr /><sub>This comment was created with the <a href="https://github.com/joomla/jissues">J!Tracker Application</a> at <a href="https://issues.joomla.org/tracker/joomla-cms/45044">issues.joomla.org/tracker/joomla-cms/45044</a>.</sub>

ceford avatar Jun 02 '25 13:06 ceford

This is only for the front end com_content form. Knowing that the instructions make perfect sense.

brianteeman avatar Jun 02 '25 13:06 brianteeman

I have tested this item :white_check_mark: successfully on be568828d141dfaef2ba6b42d30a642e863a537c

Hello Raj, thanks for the work - I have tested this successfully.

I understand this is NOT in this PR, but this led me to realize that it would be great if the backend tooltip of hovering over the Check-In lock would include information on whether someone has checked out an article using Front-End or the Back-end - i.e. currently it only has:


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45044.

exlemor avatar Jun 06 '25 23:06 exlemor

I have tested this item :white_check_mark: successfully on be568828d141dfaef2ba6b42d30a642e863a537c

Tested with JBT before applying this PR

  • Checked in the frontend view, editing the article, the alias field is not existing

Applied this PR

muhme avatar Jul 11 '25 16:07 muhme

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45044.

richard67 avatar Jul 11 '25 16:07 richard67

Thank you, @raj20889, for your work, and the testers involved in getting this over the line

softforge avatar Jul 24 '25 05:07 softforge