Forum Support

Shape 5
November 28, 2020, 04:33:04 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: High Requests caused by calling on 2 templates  (Read 839 times)
Brewer
Jr. Member
**
Offline Offline

Posts: 35



« on: November 12, 2016, 09:44:36 PM »

Hi,

My site I'm working on is www.swordofthedragon.org. So for a lot of my pages I am using copies of the template so I can easily change the wrapper/custom.css for each page.  I notice though on every page I am getting high requests because it is calling on the same files from 2 different templates:

(I'm getting this info from https://gtmetrix.com)

Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #1 on: November 14, 2016, 02:08:22 PM »

Hello,

If you make a copy do it in the admin area of Joomla instead of physically making a copy. You can create "style" copies in admin area of Joomla, this should maintain same files then and not create duplicates like this.
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Brewer
Jr. Member
**
Offline Offline

Posts: 35



« Reply #2 on: November 15, 2016, 11:06:17 AM »

I did do it through the admin, I followed the instructions given to me on this site on another thread :/
Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #3 on: November 17, 2016, 12:13:08 PM »

We might have told you to copy the template and rename the info in the templatedetails.xml file, is this the process? I see your template names are "gamer-application" and "profile" so I believe you did this method which would cause this issue. If do via the admin and do a new style of the template it should work better.
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Brewer
Jr. Member
**
Offline Offline

Posts: 35



« Reply #4 on: November 17, 2016, 01:19:34 PM »

This is the process given to me:

http://www.shape5.com/documentation/Joomla/Advanced/How-To-Duplicate-Templates-and-Files-in-Joomla

If there is another way to do it from this please let me know.
« Last Edit: November 17, 2016, 04:27:06 PM by Brewer » Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #5 on: November 18, 2016, 01:24:30 PM »

Yes I believe the following should work. Just go to:

extensions > templates >styles

Then select the template you want to copy and hit the "duplicate" button. Then you should immediately have a copy that you can use for another page and it will still pull from the same CSS files, etc as the initial.
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Brewer
Jr. Member
**
Offline Offline

Posts: 35



« Reply #6 on: November 18, 2016, 02:07:32 PM »

Wait....if it pulls from the same CSS files, then what's the point of duplicating them? Smiley  I want them each template to have its own CSS file (particularly its own custom.css file).
Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #7 on: November 21, 2016, 02:09:53 PM »

Ah ok well if thats the case then yes this method wouldn't work for you. I guess the only way to get around it would be to custom edit the framework so they pull from the same URL yet with different template names. Of course this would also prohibit framework upgrades then too.

My only other thought would be to do the new method I suggested and then just put the CSS in custom HTML modules. So you'd have a custom HTML module with your custom CSS published to the pages with the one template and then the duplicate would have a different custom HTML module with different custom CSS published to its pages. Hope that made sense.
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Brewer
Jr. Member
**
Offline Offline

Posts: 35



« Reply #8 on: November 22, 2016, 09:24:49 AM »

That just seems....silly, to me.  I don't at all understand why it would be calling the exact same files from a template I am not using on that page, and it's not just CSS it is also doing javascript.  It is also doing this on the home page, and the home page is still set to the default "gamers" template, but it is also calling from the "profile" template, and there is nothing even on the homepage.
Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #9 on: November 22, 2016, 02:14:19 PM »

Ah ok I didn't realize it was called twice on one single page. I thought the gtmetrix was showing it site wide saying there were 2 identical files. Can you give a URL to a page where its calling the files twice?
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Brewer
Jr. Member
**
Offline Offline

Posts: 35



« Reply #10 on: November 22, 2016, 03:01:41 PM »

http://swordofthedragon.org

Uses "gamers" and "profile" templates.

http://swordofthedragon.org/guild-forums

Uses "theforums" and "profile" templates.

http://swordofthedragon.org/apply-to-join

Uses "gamer-application" and "profile" templates.
----
So basically it seems like from those 3, each page is using the template it should use AND the profile template, which it should not use.  I can't test what the profile pages are actually doing because I have it set where you have to be registered, ill check that one when I get home if I can.
Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #11 on: November 23, 2016, 02:07:51 PM »

http://swordofthedragon.org

Is only using the "gamers" template when I view the site source code.

http://swordofthedragon.org/guild-forums

I'm only seeing the "forums" template here when I view the site source code.

http://swordofthedragon.org/apply-to-join

I only see "gamer-application" template here when I view the site source code.

I don't know of anyway that Joomla can actually use 2 templates on one page either. You can right click and view the site source like I did and check the above 3 pages.
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.