4.1 com_templates, child templates 2/2 #35879
4.1 com_templates, child templates 2/2 #35879dgrammatiko wants to merge 45 commits intojoomla:4.1-devfrom
Conversation
…tes-mod-1 [CMS PR 35874] Update deleted files and folders
…tes-mod-2 [CMS PR 35874] Move custom files in core templates to media folder on update
…tes-mod-3 [CMS PR 35874] Add stuff from system templates to deleted files and folders and files for preview images to the move to media folder
…tes-mod-4 [CMS PR 35874] Revert special handling for core template preview images
|
@dgrammatiko Is it by purpose that this PR includes also the changes from the other PR #35874 ? Am just asking to be sure. |
As this one atm is a draft is easier for me to have the changes from the other PR also here. Once all the required changes are in place I will either clean this with only the com_templates changes or as Brian suggested merge the 2 PRs in one (current approach). It's up to the maintainers/testers to decide if it's easier to go with one or couple PRs |
|
@dgrammatiko As I can see the other PR is ready for testing, except that it maybe needs a bit more testing instructions. So one way to go would be we test the other PR so it gets merged soon, and then when this one is updated (with solving conflicts) to the latest 4.1-dev it will be sorted out. |
administrator/components/com_templates/src/Model/TemplateModel.php
Outdated
Show resolved
Hide resolved
administrator/components/com_templates/src/Model/TemplateModel.php
Outdated
Show resolved
Hide resolved
administrator/components/com_templates/src/Model/TemplateModel.php
Outdated
Show resolved
Hide resolved
administrator/components/com_templates/src/Service/HTML/Templates.php
Outdated
Show resolved
Hide resolved
administrator/components/com_templates/src/Service/HTML/Templates.php
Outdated
Show resolved
Hide resolved
administrator/components/com_templates/tmpl/template/default_modal_child_body.php
Outdated
Show resolved
Hide resolved
….php Co-authored-by: Brian Teeman <brian@teeman.net>
….php Co-authored-by: Brian Teeman <brian@teeman.net>
administrator/components/com_templates/tmpl/template/default_modal_child_footer.php
Outdated
Show resolved
Hide resolved
….php Co-authored-by: Brian Teeman <brian@teeman.net>
…odal_child_footer.php Co-authored-by: Brian Teeman <brian@teeman.net>
…odal_child_body.php Co-authored-by: Brian Teeman <brian@teeman.net>
…tes.php Co-authored-by: Brian Teeman <brian@teeman.net>
…tes.php Co-authored-by: Brian Teeman <brian@teeman.net>
| COM_TEMPLATES_BUTTON_CHILD_TEMPLATE="Child Template" | ||
| COM_TEMPLATES_TEMPLATE_CHILD="Child Template" | ||
| COM_TEMPLATES_TEMPLATE_CHILD_NAME_LABEL="Name of the child template" | ||
| COM_TEMPLATES_TEMPLATE_CHILD_NAME_DESC="Name of the child template" |
There was a problem hiding this comment.
lets not add a description that is identical to the label please
There was a problem hiding this comment.
That isn't my intention, I'm just adding the keys here and then sort them and probably ping you for the correct text
|
Replaced by #35998 |
* Fix the missing installer info * Fix the template thumb images * Fix missing language on style view * Update Templates.php * Update libraries/src/Installer/Installer.php Co-authored-by: Brian Teeman <brian@teeman.net> * Update build/media_source/system/images/template_thumb.svg Co-authored-by: Brian Teeman <brian@teeman.net> * Update build/media_source/system/images/template_thumb.svg Co-authored-by: Brian Teeman <brian@teeman.net> * Fix the thumb logic * editor #1 * CS * CS * CS + fix logic * Ensure the isMedia flag is correcly propageted * Ooops, forgot the child creation functionality From #35879 * CS * Update administrator/components/com_templates/tmpl/template/default_modal_child_body.php Co-authored-by: Brian Teeman <brian@teeman.net> * Update administrator/components/com_templates/tmpl/template/default_modal_child_footer.php Co-authored-by: Brian Teeman <brian@teeman.net> * Fix the description for the child name * Update administrator/components/com_templates/tmpl/template/default_media_folders.php Co-authored-by: Brian Teeman <brian@teeman.net> * Update administrator/components/com_templates/tmpl/template/default_tree_media.php Co-authored-by: Brian Teeman <brian@teeman.net> * Fix copy/pasting doc blocks * Child tmpl name === parentTmplName_childName * Update administrator/components/com_templates/src/Model/TemplateModel.php Co-authored-by: Brian Teeman <brian@teeman.net> * Update administrator/components/com_templates/src/Model/TemplateModel.php Co-authored-by: Brian Teeman <brian@teeman.net> * Update administrator/components/com_templates/src/Model/TemplateModel.php Co-authored-by: Brian Teeman <brian@teeman.net> * Update administrator/components/com_templates/src/View/Template/HtmlView.php Co-authored-by: Brian Teeman <brian@teeman.net> * CS * Update administrator/components/com_templates/src/Service/HTML/Templates.php Co-authored-by: Quy <quy@fluxbb.org> * Update administrator/components/com_templates/src/Controller/TemplateController.php Co-authored-by: Benjamin Trenkle <bembelimen@users.noreply.github.com> * Bailout Early * CS * Don't throw warnings * better conditianal * More notices * Fix the thumb paths * Fix Fat FS lookups * Fix the missing media folder for the child template * don't echo the first slash on win OS * .html is not in the allowed list. WOW * Update administrator/components/com_templates/src/Model/TemplateModel.php Co-authored-by: Phil E. Taylor <phil@phil-taylor.com> * Update administrator/components/com_templates/src/Controller/TemplateController.php Co-authored-by: Phil E. Taylor <phil@phil-taylor.com> * Update administrator/components/com_templates/tmpl/template/default_modal_folder_body.php Co-authored-by: Phil E. Taylor <phil@phil-taylor.com> * Update administrator/components/com_templates/tmpl/template/default_media_folders.php Co-authored-by: Phil E. Taylor <phil@phil-taylor.com> * Update administrator/components/com_templates/tmpl/template/default.php Co-authored-by: Phil E. Taylor <phil@phil-taylor.com> * Update administrator/components/com_templates/src/View/Template/HtmlView.php Co-authored-by: Phil E. Taylor <phil@phil-taylor.com> * Update administrator/components/com_templates/src/Model/TemplateModel.php Co-authored-by: Phil E. Taylor <phil@phil-taylor.com> * Update administrator/components/com_templates/src/Controller/TemplateController.php Co-authored-by: Phil E. Taylor <phil@phil-taylor.com> * Update administrator/components/com_templates/src/Model/TemplateModel.php Co-authored-by: Phil E. Taylor <phil@phil-taylor.com> * Update administrator/components/com_templates/src/Model/TemplateModel.php Co-authored-by: Phil E. Taylor <phil@phil-taylor.com> * CS, proper media folder logic * CS * Meh * Paths... * better tree entry names * Use current user name, current date for child * Bug, file delete * Fix upload * Add a visual cue for parent/child * Add buttons to switch between list views @bembelimen's idea * Wrong comments * Clean up the child method * PHP notice, use entry dir as the starting point * Correct icon * Undefined $isMedia Pfff * Update administrator/components/com_templates/src/Controller/TemplateController.php Co-authored-by: Richard Fath <richard67@users.noreply.github.com> * Update administrator/components/com_templates/src/Controller/TemplateController.php Co-authored-by: Richard Fath <richard67@users.noreply.github.com> * Merge #36011 * Remove a debug line * Windows use / instead of \ * Winows double // * Update administrator/language/en-GB/com_templates.ini Co-authored-by: Brian Teeman <brian@teeman.net> * double // * b->strong * rename modatl tittle // * Update administrator/components/com_templates/tmpl/template/default_tree_media.php Co-authored-by: Quy <quy@fluxbb.org> * Update plugins/editors/tinymce/tinymce.php Co-authored-by: Quy <quy@fluxbb.org> * Switch the fallback icon This has a Creative Commons Zero v1.0 Universal (CC0) license and it was copied from: https://iconduck.com/search?query=xcode * Update administrator/components/com_templates/src/View/Styles/HtmlView.php Co-authored-by: Quy <quy@fluxbb.org> * Update administrator/language/en-GB/com_templates.ini Co-authored-by: Quy <quy@fluxbb.org> * Update plugins/editors/tinymce/tinymce.php Co-authored-by: Quy <quy@fluxbb.org> * Update administrator/language/en-GB/com_templates.ini Co-authored-by: Quy <quy@fluxbb.org> * tabs * Lang failsafe * Update administrator/components/com_templates/tmpl/template/default_folders.php Co-authored-by: Quy <quy@fluxbb.org> Co-authored-by: Brian Teeman <brian@teeman.net> Co-authored-by: Quy <quy@fluxbb.org> Co-authored-by: Benjamin Trenkle <bembelimen@users.noreply.github.com> Co-authored-by: Phil E. Taylor <phil@phil-taylor.com> Co-authored-by: Richard Fath <richard67@users.noreply.github.com>
Pull Request for Issue # .
Summary of Changes
Will be updated once the code is ready for review
Testing Instructions
Actual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
Documentation Changes Required