? Success

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
21 Sep 2015

No idea why, but the automatic title used in 2.5 for the CPanel modules (Logged users, Popular articles and Latest articles) was taken off from version 3.x on. See #7917

The strings have remained in core. The code exists in each module helper. Just remained to add the field in the xmls and the code in JModuleHelper.

This is what we now get after patch IF the Automatic Title parameter is set to Yes for these modules in their Advanced tab.
screen shot 2015-09-21 at 11 45 17

avatar infograf768 infograf768 - open - 21 Sep 2015
avatar infograf768 infograf768 - change - 21 Sep 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 Sep 2015
Labels Added: ?
avatar infograf768 infograf768 - change - 21 Sep 2015
Category Administration Libraries Modules
avatar Bakual
Bakual - comment - 21 Sep 2015

This feature was removed with e11117d.
It was previously done in the cpanel layout (https://github.com/joomla/joomla-cms/blob/544add4880417c586c2ca1b60b60c2fae7b63513/administrator/components/com_cpanel/views/cpanel/tmpl/default.php) itself and wasn't a globally available feature.

avatar MAT978
MAT978 - comment - 21 Sep 2015

Able to reproduce then #7925 works as described
(mod_logged, mod_latest, mod_popular) - also tested with fr-FR pack
Thanks

avatar MAT978 MAT978 - test_item - 21 Sep 2015 - Tested successfully
avatar infograf768
infograf768 - comment - 21 Sep 2015

@Bakual
I know when it was removed.
Any opposition about reimplementing it?

avatar infograf768 infograf768 - alter_testresult - 21 Sep 2015 - joaobsantos: Tested successfully
avatar Bakual
Bakual - comment - 21 Sep 2015

I just put it there for reference. I don't mind it being in our not. Never missed it myself but obviously it was missed by some :smile:

avatar infograf768 infograf768 - change - 21 Sep 2015
Status Pending Ready to Commit
Easy No Yes
avatar infograf768
infograf768 - comment - 22 Sep 2015

2 good tests. RTC.


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

avatar joomla-cms-bot joomla-cms-bot - change - 22 Sep 2015
Labels Added: ?
avatar Bakual
Bakual - comment - 22 Sep 2015

Can we document this feature somewhere? Because it's quite unintuitive at the moment.
Modules need to implement a parameter "automatic_title" if they want to use it. And then optionally create a getTitle method in the properly named helper or add a language string.
Currently, it's an additional one of the many undocumented features our CMS has. We should really either make the features more obvious to developers and/or document them better.

avatar infograf768
infograf768 - comment - 22 Sep 2015

Currently, it's an additional one of the many undocumented features our CMS has. We should really either make the features more obvious to developers and/or document them better.

Agree, no idea though how to do that.

avatar Bakual
Bakual - comment - 22 Sep 2015

One idea would be to change the code so it always looks for a getTitle method in the helper. If it exists, fire it and if it returns any string, use that as $module->title.
Then that method can check a param itself and can decide if it wants to use a language string or whatever. Then all we need to document is that the helper can have an optional getTitle method.
That would actually be easy understandable by any dev looking at a module that implements it and it can be added to the docs wiki (eg https://docs.joomla.org/J3.x:Creating_a_simple_module).

avatar dgt41 dgt41 - test_item - 22 Sep 2015 - Tested successfully
avatar infograf768
infograf768 - comment - 23 Sep 2015

@Bakual
I sent you a diff via glip with an alternative patch.

avatar zero-24 zero-24 - change - 23 Sep 2015
Milestone Added:
avatar infograf768
infograf768 - comment - 24 Sep 2015

@Bakual

merged your PR limiting the use of automatic title to the module itself.
As we never use the getTitle method in mod_quickicon (this was much changed in 3.x), what do you think if we just deleted that method in this patch

avatar Bakual
Bakual - comment - 24 Sep 2015

I wouldn't remove it, just deprecate the method, and maybe if you want add a JLog message.
In theory that method could be used by a layout override. Not very likely but there is no reason to remove the method when we can properly deprecate it. It can be removed with 4.0.

avatar infograf768
infograf768 - comment - 24 Sep 2015

I will let a specialist do that :)

avatar Bakual
Bakual - comment - 24 Sep 2015
avatar infograf768
infograf768 - comment - 25 Sep 2015

done

avatar rdeutz rdeutz - reference | b5ab410 - 1 Oct 15
avatar rdeutz rdeutz - merge - 1 Oct 2015
avatar rdeutz rdeutz - close - 1 Oct 2015
avatar rdeutz rdeutz - change - 1 Oct 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-10-01 18:43:52
Closed_By rdeutz
avatar rdeutz rdeutz - close - 1 Oct 2015
avatar joomla-cms-bot joomla-cms-bot - close - 1 Oct 2015
avatar joomla-cms-bot joomla-cms-bot - change - 1 Oct 2015
Labels Removed: ?
avatar zero-24 zero-24 - change - 28 Oct 2015
Milestone
avatar zero-24 zero-24 - change - 28 Oct 2015
Milestone Added:
avatar zero-24 zero-24 - change - 28 Oct 2015
Milestone Added:
avatar zero-24 zero-24 - change - 28 Oct 2015
Milestone

Add a Comment

Login with GitHub to post a comment