Skip to content

[4.2] Template Preview modal#39142

Merged
roland-d merged 2 commits intojoomla:4.2-devfrom
brianteeman:element
Dec 18, 2022
Merged

[4.2] Template Preview modal#39142
roland-d merged 2 commits intojoomla:4.2-devfrom
brianteeman:element

Conversation

@brianteeman
Copy link
Copy Markdown
Contributor

@brianteeman brianteeman commented Nov 3, 2022

It is possible that the template->name does not match the template->element

When that is the case then it is not possible to open the larger preview image of the template as the id of the modal is not the same as the id referenced in the button.

This PR corrects that by using template->element in both places.

To test
The easiest way will be to create a child of cassiopeia and then edit the database.

in #__extensions find the record for the child template and change the name only.

Now in the admin template manager you will find that you get a js error when you try to open the larger preview image.

Apply this PR and you will find that the preview opens correctly

image

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

It is possible that the template->name does not match the template->element

When that is the case then it is not possible to open the larger preview image of the template as the id of the modal is not the same as the id referenced in the button.

This PR corrects that by using template->element in both places.

To test
The easiest way will be to create a child of cassiopeia and then edit the database.

in #__extensions find the record for the child template and change the name only.

Now in the admin template manager you will find that you get a js error when you try to open the larger preview image.

Apply this PR and you will find that the preview opens correctly
@viocassel
Copy link
Copy Markdown
Contributor

I have tested this item ✅ successfully on 55f6c52


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

1 similar comment
@jwaisner
Copy link
Copy Markdown
Member

jwaisner commented Dec 8, 2022

I have tested this item ✅ successfully on 55f6c52


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

@jwaisner
Copy link
Copy Markdown
Member

jwaisner commented Dec 8, 2022

RTC


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

@joomla-cms-bot joomla-cms-bot added RTC This Pull Request is Ready To Commit and removed PR-4.2-dev labels Dec 8, 2022
@roland-d roland-d merged commit 50a4f03 into joomla:4.2-dev Dec 18, 2022
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Dec 18, 2022
@roland-d
Copy link
Copy Markdown
Contributor

Thank you

@roland-d roland-d added this to the Joomla! 4.2.7 milestone Dec 18, 2022
@brianteeman brianteeman deleted the element branch May 21, 2025 16:07
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.

6 participants