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

Template Override Actions #38447

Merged
merged 7 commits into from
Aug 31, 2022
Merged

Template Override Actions #38447

merged 7 commits into from
Aug 31, 2022

Conversation

brianteeman
Copy link
Contributor

@brianteeman brianteeman commented Aug 12, 2022

There was a button to remove a record but not to mark it as checked or unchecked. You had to do each one individually by clicking on the icon.

This PR lets you select as many records as you want and then use the button to change all the selected records. This is based on user feedback who complained that there was no way to bulk mark records.

Before

chrome_cPbU2OavOI.mp4

After

chrome_MlHkWUo6dg.mp4

There was a button to remove a record but not to mark it as checked or unchecked. You had to do each one individually by clicking on the icon. This PR lets you select as many records as you want and then use the button to change all the selected records. This is based on user feedback who complained that there was no way to bulk mark records.
@joomla-cms-bot joomla-cms-bot added Language Change This is for Translators PR-4.2-dev labels Aug 12, 2022
@Kostelano
Copy link
Contributor

Kostelano commented Aug 12, 2022

I have tested this item ✅ successfully on 0af4b65


Screenshot_1

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

@brianteeman
Copy link
Contributor Author

If someone could help with the drone error I would aappreciate it as I dont understand it.

@richard67
Copy link
Member

richard67 commented Aug 12, 2022

If someone could help with the drone error I would aappreciate it as I dont understand it.

@brianteeman The file contains a class definition and also execute code outside the class here:

HTMLHelper::_('bootstrap.dropdown', '.dropdown-toggle');
. Could you move that code to somewhere inside the class?

@Kostelano
Copy link
Contributor

I have tested this item ✅ successfully on 2b6b9f0

Probably needs a retest.


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

@viocassel
Copy link
Contributor

I have tested this item ✅ successfully on 2b6b9f0


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

@richard67
Copy link
Member

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Aug 14, 2022
brianteeman and others added 2 commits August 31, 2022 23:18
…iew.php

Co-authored-by: heelc29 <66922325+heelc29@users.noreply.github.com>
@roland-d roland-d merged commit bca50b3 into joomla:4.2-dev Aug 31, 2022
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Aug 31, 2022
@roland-d
Copy link
Contributor

Thank you

@brianteeman
Copy link
Contributor Author

thanks

@brianteeman brianteeman deleted the 4-override branch September 1, 2022 07:28
brianteeman added a commit to brianteeman/joomla-cms that referenced this pull request Dec 1, 2022
This fixes a bug exposed in my own pr joomla#38447

That PR added an action dropdown button When you have overrides. See the original PR for details

However it also added the dropdown when the file was open for editing but at that point it can be selected because it is never active.

This PR removes the button when the file is open for editing.

A better PR would be to make it (or a similar button) work in the edit mode but I don't have the time (and probably the skill) to do that. So at this time I consider this PR a bug fix and the functionality can be added at a later date in another pr

Testing requires overrides that need checking. You can simulate this by

1. Create template overrides for com_content/article and com_newsfeed/feed
2. Run this sql query replacing #_ with your db prefix
INSERT INTO `#__template_overrides` (`id`, `template`, `hash_id`, `extension_id`, `state`, `action`, `client_id`, `created_date`, `modified_date`) VALUES
(1, 'cassiopeia', 'L2h0bWwvY29tX25ld3NmZWVkcy9uZXdzZmVlZC9kZWZhdWx0LnBocA==', 223, 0, 'Joomla Update', 0, '2022-09-01 13:51:54', '2022-09-01 13:51:54'),
(2, 'cassiopeia', 'L2h0bWwvY29tX2NvbnRlbnQvYXJ0aWNsZS9kZWZhdWx0X2xpbmtzLnBocA==', 223, 0, 'Joomla Update', 0, '2022-09-01 13:51:54', '2022-09-01 13:51:54');

You will now have two override files to update and can test this PR
roland-d pushed a commit that referenced this pull request Dec 18, 2022
This fixes a bug exposed in my own pr #38447

That PR added an action dropdown button When you have overrides. See the original PR for details

However it also added the dropdown when the file was open for editing but at that point it can be selected because it is never active.

This PR removes the button when the file is open for editing.

A better PR would be to make it (or a similar button) work in the edit mode but I don't have the time (and probably the skill) to do that. So at this time I consider this PR a bug fix and the functionality can be added at a later date in another pr

Testing requires overrides that need checking. You can simulate this by

1. Create template overrides for com_content/article and com_newsfeed/feed
2. Run this sql query replacing #_ with your db prefix
INSERT INTO `#__template_overrides` (`id`, `template`, `hash_id`, `extension_id`, `state`, `action`, `client_id`, `created_date`, `modified_date`) VALUES
(1, 'cassiopeia', 'L2h0bWwvY29tX25ld3NmZWVkcy9uZXdzZmVlZC9kZWZhdWx0LnBocA==', 223, 0, 'Joomla Update', 0, '2022-09-01 13:51:54', '2022-09-01 13:51:54'),
(2, 'cassiopeia', 'L2h0bWwvY29tX2NvbnRlbnQvYXJ0aWNsZS9kZWZhdWx0X2xpbmtzLnBocA==', 223, 0, 'Joomla Update', 0, '2022-09-01 13:51:54', '2022-09-01 13:51:54');

You will now have two override files to update and can test this PR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Language Change This is for Translators
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants