No Code Attached Yet
avatar Didldu-Florian
Didldu-Florian
5 May 2020

Steps to reproduce the issue

administrator\components\com_content\tmpl\article\edit.php
Edit
<?php echo HTMLHelper::_('uitab.startTabSet', 'myTab', array('active' => 'gernal')); ?>
To
<?php echo HTMLHelper::_('uitab.startTabSet', 'myTab', array('active' => 'images')); ?>

Expected result

Images Tab should be activ

Actual result

First Tab is active

System information (as much as possible)

PHP Version | 7.3.14
Joomla! 4.0.0-beta1-dev Development [ MaƱana ] 17-October-2019 20:21 GMT
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0

avatar Didldu-Florian Didldu-Florian - open - 5 May 2020
avatar joomla-cms-bot joomla-cms-bot - change - 5 May 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 5 May 2020
avatar SharkyKZ
SharkyKZ - comment - 5 May 2020

Tabs use sessionStorage to remember last opened tab. This is stored for each URL. Try editing a different article and it should go straight to image tab.

avatar C-Lodder
C-Lodder - comment - 5 May 2020

@SharkyKZ Yes, but that's if a tab is clicked. This issue is regarding activating a specific tab

avatar Didldu-Florian
Didldu-Florian - comment - 6 May 2020

@SharkyKZ Yes, right. I would suggest for UX, these should not be affected when a specific Tab is dynamic activated. In my case I used these for dynamic set a Tab by input like these:

<?php echo HTMLHelper::_('uitab.startTabSet', 'myTab', array('active' => $inputTab)); ?>
avatar joomdonation joomdonation - change - 12 Nov 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-11-12 10:24:33
Closed_By joomdonation
Labels Added: No Code Attached Yet
Removed: ?
avatar joomdonation joomdonation - close - 12 Nov 2022
avatar joomdonation
joomdonation - comment - 12 Nov 2022

I just tried it again and it worked on latest Joomla 4 (I use this kind of code in my own extensions, too). So look like it was solved elsewhere. For now, I'm closing this issue. Feel free to re-open it if you can still re-procedure it with latest Joomla 4.2.

Add a Comment

Login with GitHub to post a comment