-
AuthorPosts
-
Pankaj Sharma Moderator
Pankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
November 17, 2017 at 10:44 am #1074983Hi
When you update the template it will override the files, that a normal procedure for all the template.
For the module position if the name is removed from the templatedetails.xml file, still the position is present on your site.
I am afraid of this local folder in the template does not work as an override for this file.
But you can add the blocks file in the local folder and it will not be updated.Regards
toonetcreation Friendtoonetcreation
- Join date:
- November 2013
- Posts:
- 194
- Downloads:
- 71
- Uploads:
- 59
- Thanks:
- 8
- Thanked:
- 2 times in 2 posts
November 17, 2017 at 12:58 pm #1075025Thanks for your feedback.
About blocks files, yes this is what I do from the beginning…that’s nice 😉
But about position name, it means that it is not mandatory to add a new position name into templateDetails.xml file, I can just add it from the module even if it’s not into templateDetails.xml file ?
- This reply was modified 7 years ago by toonetcreation.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
November 20, 2017 at 1:58 am #1075202Hi
In Joomla, if you will not add the position name in the TemplateDetails.xml file, its name will not appear in the list of the module manager, But if you know the name of the position you can manually type in the module position name fields and enter it.
save and publish.Regards
toonetcreation Friendtoonetcreation
- Join date:
- November 2013
- Posts:
- 194
- Downloads:
- 71
- Uploads:
- 59
- Thanks:
- 8
- Thanked:
- 2 times in 2 posts
November 20, 2017 at 8:17 am #1075320Ok I understand.
And what about the file /template_name/etc/assets.xml ?
I mean, when I need to load a new font, I add a new line into assets.xml file.
But same problem, during template updates, this file iq sometimes overwritten.So is it possible to load a new font on a template, whithout lossing these changes during next template update ?
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
November 20, 2017 at 8:51 am #1075328Hi
You can put it the etc folder in the local folder of the template to create an override for it.Regards
toonetcreation Friendtoonetcreation
- Join date:
- November 2013
- Posts:
- 194
- Downloads:
- 71
- Uploads:
- 59
- Thanks:
- 8
- Thanked:
- 2 times in 2 posts
November 20, 2017 at 9:23 am #1075336you mean if I copy the file assets.xml from /template_name/etc/assets.xml to /template_name/local/etc/assets.xml it will work about override?
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
November 21, 2017 at 1:50 am #1075527Hi
Yes /template_name/local/etc/assets.xml
This will be override.Regards
toonetcreation Friendtoonetcreation
- Join date:
- November 2013
- Posts:
- 194
- Downloads:
- 71
- Uploads:
- 59
- Thanks:
- 8
- Thanked:
- 2 times in 2 posts
November 21, 2017 at 8:26 am #1075624Ok perfect.
Also other files are sometimes overwritten.
Is it possible to override them securely without lossing changes during next template update.These file are for example :
/template_name/favicon.ico
Orother example :
templates/ja_medicare/html/com_content/article/default.php
templates/ja_medicare/html/layouts/joomla/content/fulltext_image.phpHow to use custom files and avoid loosing changes?
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
toonetcreation Friendtoonetcreation
- Join date:
- November 2013
- Posts:
- 194
- Downloads:
- 71
- Uploads:
- 59
- Thanks:
- 8
- Thanked:
- 2 times in 2 posts
November 22, 2017 at 8:55 am #1075853Ok perfect I think I will be able to check this by myself
Last info, about this file /template_name/favicon.ico, I havent seen nothing.
do you think something like this can work /template_name/local/favicon.ico ?Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
November 22, 2017 at 9:00 am #1075854Hi
No local folder work only for the files as shared in the blog post.Regards
toonetcreation Friendtoonetcreation
- Join date:
- November 2013
- Posts:
- 194
- Downloads:
- 71
- Uploads:
- 59
- Thanks:
- 8
- Thanked:
- 2 times in 2 posts
November 22, 2017 at 10:39 am #1075876Ok thanks.
toonetcreation Friendtoonetcreation
- Join date:
- November 2013
- Posts:
- 194
- Downloads:
- 71
- Uploads:
- 59
- Thanks:
- 8
- Thanked:
- 2 times in 2 posts
November 22, 2017 at 12:15 pm #1075898just a last question about custom.css file.
custom.css file located by default into /template_name/css/ folder is normally not overwritten during template updates.
So is it necessary to copy/move it to /template_name/local/css/ folder ?
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
November 23, 2017 at 1:32 am #1076047Yes, Language override is Hi
No custom.css will not override on template update. So there is no need to create an override for this file.Regards
toonetcreation Friendtoonetcreation
- Join date:
- November 2013
- Posts:
- 194
- Downloads:
- 71
- Uploads:
- 59
- Thanks:
- 8
- Thanked:
- 2 times in 2 posts
November 23, 2017 at 8:01 am #1076114ok thanks you again
have a good day
-
AuthorPosts
This topic contains 15 replies, has 2 voices, and was last updated by toonetcreation 7 years ago.
The topic ‘Override templateDetails.xml ?’ is closed to new replies.