Using multiple templates on a site - Forum | JoomShaper
Awaiting an answer Helix Framework

Using multiple templates on a site

Asked by Matt Hunt 2 years ago Last activity 2 years ago

Good morning,
I've got two sites that have more than one template, essentially to diferentiate between classification of pages.
The problem I'm finding even though I assign the proper templates to the pages, they don't change with the page. Is there someway to force the pages to use the correct template? I believe it is a cache issue. As reloading the page once or twice and/or deleting the history will get the proper template to show.

5 replies

Rashida Rahman Staff

Hi there!

Thanks for reaching out.

If clearing caches solves the view, then it's not an issue I think. Did you try to clear your Joomla cache from System?

Best Regards

Matt Hunt Asked this

Cache isn't active on the site as it is still in development, one is anyway. And it happens everytime if you go to one page, then the other and back. So yes, there is an issue.

Rashida Rahman Staff

Kindly share your admin access to check. Please keep a full site backup before giving the access.

Matt Hunt Asked this

Here is the login information

Matt Hunt Asked this

I think I found the answer on how to turn off browser caching completely. Placed the following in the .htaccess file

# DISABLE CACHING
<IfModule mod_headers.c>
    Header set Cache-Control "no-cache, no-store, must-revalidate"
    Header set Pragma "no-cache"
    Header set Expires 0
</IfModule>

<FilesMatch "\.(css|flv|gif|htm|html|ico|jpe|jpeg|jpg|js|mp3|mp4|png|pdf|swf|txt)$">
    <IfModule mod_expires.c>
        ExpiresActive Off
    </IfModule>
    <IfModule mod_headers.c>
        FileETag None
        Header unset ETag
        Header unset Pragma
        Header unset Cache-Control
        Header unset Last-Modified
        Header set Pragma "no-cache"
        Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
        Header set Expires "Thu, 1 Jan 1970 00:00:00 GMT"
    </IfModule>
</FilesMatch>
Log in to reply.