-
AuthorPosts
-
fbernardello Friend
fbernardello
- Join date:
- February 2015
- Posts:
- 287
- Downloads:
- 16
- Uploads:
- 35
- Thanks:
- 51
- Thanked:
- 2 times in 2 posts
May 5, 2016 at 11:43 am #927145Dear Support, as suggested by the documentation, I’m managing many different copies of the template: one for the main content, one for the events, one for the blog, ecc… in order to solve a problem I’m facing, I generated a new copy of the template (ja_teline_v – Contatti), and I would like to apply this new copy to some particular pages. I need to set to this copy of the template a different header, so I generated a new file named "header-contact.php" with some small corrections in "/templates/ja_teline_v/tpls/blocks".
Where can I set this new "header-contact.php" instead of the standard "header.php" ONLY for this copy of the template (ja_teline_v – Contatti)?
Thanks in advance, Federico
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
May 5, 2016 at 2:38 pm #927196Hi
You can create a new layout file in this folder /templates/ja_teline_v/tpls/ and call it for example
contact.php then based on your needs you can add the various blocks to it
so for example copying the default.php block it can be
<body> <div class="t3-wrapper"> <!-- Need this wrapper for off-canvas menu. Remove if you don't use of-canvas --> <?php $this->loadBlock('topnav') ?> <?php $this->loadBlock('header-contact') ?> <?php $this->loadBlock('mainnav') ?> <?php $this->loadBlock('spotlight-1') ?> <?php $this->loadBlock('navhelper') ?> <?php $this->loadBlock('mainbody') ?> <?php $this->loadBlock('spotlight-2') ?> <?php $this->loadBlock('footer') ?> </div> </body>
then apply this new layout to your new template style
fbernardello Friendfbernardello
- Join date:
- February 2015
- Posts:
- 287
- Downloads:
- 16
- Uploads:
- 35
- Thanks:
- 51
- Thanked:
- 2 times in 2 posts
May 5, 2016 at 3:20 pm #927232Dear @pavit,
thank you very much for your help.
I did it, and it’s working. Unfortunately it’s not solving my problem 🙁I try to explain my problem:
The new version of the component I’m using for mail-forms gives a problem with the Date box used in the header. Ex. http://www.epadova.com/contatti.htmTo solve this, I created a new template, following your instructions, and this is working as expected, for example in this page: http://www.epadova.com/riferimenti.htm
On contacts page (http://www.epadova.com/contatti.htm) even if I set the new template on his menu, the date is displayed again, giving a problem with the mail form.
Could you help me understanding why the date is still appearing?
Thanks in advance,
Federicopavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
May 5, 2016 at 3:58 pm #927260Hi there
I think that your problems are coming from sh404 component that is storing cached urls so all new changes are not taken by the website
I tried to remove the blocks from your header-contact file and changes are reflected correctly on the page riferimenti.htm but not in contatti.htm so problem is not in to the template settings but in a wrong configuration of your cache that is combining jchoptimize and sh404 so i think your website is making a bit of confusion managing cached versions.
P.S
I Created a new menu item named contatti-new and as you can see now is taking my old configuration ( the one without date block i used to test new layout )
fbernardello Friendfbernardello
- Join date:
- February 2015
- Posts:
- 287
- Downloads:
- 16
- Uploads:
- 35
- Thanks:
- 51
- Thanked:
- 2 times in 2 posts
fbernardello Friendfbernardello
- Join date:
- February 2015
- Posts:
- 287
- Downloads:
- 16
- Uploads:
- 35
- Thanks:
- 51
- Thanked:
- 2 times in 2 posts
May 6, 2016 at 10:59 am #927567Dear @pavit,
with the new copy of the template, I’m having on sidebar position the same background problem I’m having on banner-1 position.
I’m trying to investigate, but I can’t understand "where" the missing attribute has to be set.
See as example:1: http://www.epadova.com/storia-di-epadova.htm (contacts template)
2: http://www.epadova.com/riferimenti/contatti.htm (tefault template)In the first case, the grey background reachs the bottom of the page, in the second one it doesn’t.
In the first case I find the rowclass="col t3-sidebar t3-sidebar-right col-md-3 " "style="min-height: 6726px;"
In the second case the attribute is not set.
This can’t be a fixed value, since if you check a different page (ex. http://www.epadova.com/federico.htm) it is different, so it is automatically set.Where could it be????
Regards,
Federicofbernardello Friendfbernardello
- Join date:
- February 2015
- Posts:
- 287
- Downloads:
- 16
- Uploads:
- 35
- Thanks:
- 51
- Thanked:
- 2 times in 2 posts
May 6, 2016 at 12:10 pm #927583I found it. 🙂
AuthorPostsViewing 7 posts - 1 through 7 (of 7 total)This topic contains 6 replies, has 2 voices, and was last updated by fbernardello 8 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
New copy of the template and blocks
Viewing 7 posts - 1 through 7 (of 7 total)