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.1 com_templates, child templates 2/2 #35879

Closed

Conversation

dgrammatiko
Copy link
Contributor

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

@joomla-cms-bot joomla-cms-bot added NPM Resource Changed This Pull Request can't be tested by Patchtester PR-4.1-dev labels Oct 23, 2021
@richard67
Copy link
Member

@dgrammatiko Is it by purpose that this PR includes also the changes from the other PR #35874 ? Am just asking to be sure.

@dgrammatiko
Copy link
Contributor Author

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

@richard67
Copy link
Member

@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.

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"
Copy link
Contributor

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

Copy link
Contributor Author

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

dgrammatiko added a commit to dgrammatiko/joomla-cms that referenced this pull request Nov 18, 2021
@dgrammatiko
Copy link
Contributor Author

Replaced by #35998

bembelimen added a commit that referenced this pull request Nov 30, 2021
* 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]>
@dgrammatiko dgrammatiko deleted the 4.1-dev-system-templates branch April 18, 2022 09:27
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 NPM Resource Changed This Pull Request can't be tested by Patchtester
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants