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

[4.0] Convert bootstrap.tab to uitab #21805

Merged
merged 21 commits into from
Aug 22, 2018
Merged

Conversation

brianteeman
Copy link
Contributor

This converts the majority of the instances in the administrator of the boostrap tabset to the ui tabset. It doesnt touch the frontend and it doesnt touch com-contact which I couldnt get to work after the conversions

Before (example)

image

After (example)

image

@@ -42,9 +42,9 @@
<?php echo LayoutHelper::render('joomla.edit.title_alias', $this); ?>

<div>
<?php echo HTMLHelper::_('bootstrap.startTabSet', 'myTab', array('active' => 'details')); ?>
<?php echo HTMLHelper::_('uitab.startTabSet', 'myTab', array('active' => 'details')); ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs a $this->useCoreUI = true; (it's required for any view using the joomla.edit.params layout - as any extra tabs will use that flag for extra tabs plugins may be adding)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you check in your browser please because I tested each one and just retested this one and it doesnt have a problem without it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-read this comment. Are you saying it is needed because a plugin might require it. If so then it's not just this file that it needs to be added in.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So in the joomla.edit.params it will loop through and render all fieldsets that are not in the ignored fieldsets list. Remember what we were doing with the custom fields in the user groups view here https://github.com/joomla/joomla-cms/pull/21696/files

In order to render as a tab it needs to know whether to use bootstrap or the custom elements set. That's what the useCoreUI param is doing https://github.com/joomla/joomla-cms/blob/4.0-dev/layouts/joomla/edit/params.php#L112

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

Copy link
Contributor

@wilsonge wilsonge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost good to go!

@TobsBobs
Copy link

Before looks better.

@ghost
Copy link

ghost commented Aug 22, 2018

@TobsBobs this PR is better to read which Tab is active.

@ghost
Copy link

ghost commented Aug 22, 2018

@brianteeman you are aware it doesn't touch "Options" (from "Global Configuration" to "Users")?

@brianteeman
Copy link
Contributor Author

This PR is not about design - that can always be changed - it is about the underlying code

@ghost
Copy link

ghost commented Aug 22, 2018

@brianteeman thanks for Info.

@brianteeman
Copy link
Contributor Author

@franz-wohlkoenig the options "tabs" are not created with bootstrap.tab

@ghost
Copy link

ghost commented Aug 22, 2018

i have only looked at Design as i thought thas the Difference between "Bootstrap" and "UI" but know now its about underlying Code.

@wilsonge wilsonge merged commit 008799d into joomla:4.0-dev Aug 22, 2018
@wilsonge
Copy link
Contributor

Nice stuff! Thanks!

@wilsonge wilsonge added this to the Joomla 4.0 milestone Aug 22, 2018
@brianteeman
Copy link
Contributor Author

thanks

@brianteeman brianteeman deleted the uiitab-fields branch August 22, 2018 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants