-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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.1 com_templates, child templates 2/2 #35879
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 <[email protected]>
….php Co-authored-by: Brian Teeman <[email protected]>
administrator/components/com_templates/tmpl/template/default_modal_child_footer.php
Outdated
Show resolved
Hide resolved
….php Co-authored-by: Brian Teeman <[email protected]>
…odal_child_footer.php Co-authored-by: Brian Teeman <[email protected]>
…odal_child_body.php Co-authored-by: Brian Teeman <[email protected]>
…tes.php Co-authored-by: Brian Teeman <[email protected]>
…tes.php Co-authored-by: Brian Teeman <[email protected]>
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets not add a description that is identical to the label please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]> * Update build/media_source/system/images/template_thumb.svg Co-authored-by: Brian Teeman <[email protected]> * Update build/media_source/system/images/template_thumb.svg Co-authored-by: Brian Teeman <[email protected]> * 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 <[email protected]> * Update administrator/components/com_templates/tmpl/template/default_modal_child_footer.php Co-authored-by: Brian Teeman <[email protected]> * Fix the description for the child name * Update administrator/components/com_templates/tmpl/template/default_media_folders.php Co-authored-by: Brian Teeman <[email protected]> * Update administrator/components/com_templates/tmpl/template/default_tree_media.php Co-authored-by: Brian Teeman <[email protected]> * Fix copy/pasting doc blocks * Child tmpl name === parentTmplName_childName * Update administrator/components/com_templates/src/Model/TemplateModel.php Co-authored-by: Brian Teeman <[email protected]> * Update administrator/components/com_templates/src/Model/TemplateModel.php Co-authored-by: Brian Teeman <[email protected]> * Update administrator/components/com_templates/src/Model/TemplateModel.php Co-authored-by: Brian Teeman <[email protected]> * Update administrator/components/com_templates/src/View/Template/HtmlView.php Co-authored-by: Brian Teeman <[email protected]> * CS * Update administrator/components/com_templates/src/Service/HTML/Templates.php Co-authored-by: Quy <[email protected]> * Update administrator/components/com_templates/src/Controller/TemplateController.php Co-authored-by: Benjamin Trenkle <[email protected]> * 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 <[email protected]> * Update administrator/components/com_templates/src/Controller/TemplateController.php Co-authored-by: Phil E. Taylor <[email protected]> * Update administrator/components/com_templates/tmpl/template/default_modal_folder_body.php Co-authored-by: Phil E. Taylor <[email protected]> * Update administrator/components/com_templates/tmpl/template/default_media_folders.php Co-authored-by: Phil E. Taylor <[email protected]> * Update administrator/components/com_templates/tmpl/template/default.php Co-authored-by: Phil E. Taylor <[email protected]> * Update administrator/components/com_templates/src/View/Template/HtmlView.php Co-authored-by: Phil E. Taylor <[email protected]> * Update administrator/components/com_templates/src/Model/TemplateModel.php Co-authored-by: Phil E. Taylor <[email protected]> * Update administrator/components/com_templates/src/Controller/TemplateController.php Co-authored-by: Phil E. Taylor <[email protected]> * Update administrator/components/com_templates/src/Model/TemplateModel.php Co-authored-by: Phil E. Taylor <[email protected]> * Update administrator/components/com_templates/src/Model/TemplateModel.php Co-authored-by: Phil E. Taylor <[email protected]> * 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 <[email protected]> * Update administrator/components/com_templates/src/Controller/TemplateController.php Co-authored-by: Richard Fath <[email protected]> * 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 <[email protected]> * double // * b->strong * rename modatl tittle // * Update administrator/components/com_templates/tmpl/template/default_tree_media.php Co-authored-by: Quy <[email protected]> * Update plugins/editors/tinymce/tinymce.php Co-authored-by: Quy <[email protected]> * 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 <[email protected]> * Update administrator/language/en-GB/com_templates.ini Co-authored-by: Quy <[email protected]> * Update plugins/editors/tinymce/tinymce.php Co-authored-by: Quy <[email protected]> * Update administrator/language/en-GB/com_templates.ini Co-authored-by: Quy <[email protected]> * tabs * Lang failsafe * Update administrator/components/com_templates/tmpl/template/default_folders.php Co-authored-by: Quy <[email protected]> Co-authored-by: Brian Teeman <[email protected]> Co-authored-by: Quy <[email protected]> Co-authored-by: Benjamin Trenkle <[email protected]> Co-authored-by: Phil E. Taylor <[email protected]> Co-authored-by: Richard Fath <[email protected]>
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