4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: DennisRR on August 30, 2007, 11:41:37 AM

Title: [solved] Every category loads with the header
Post by: DennisRR on August 30, 2007, 11:41:37 AM
on my category pages every category loads the entire header page including all the scripts. I spent weeks to find the cause but nothing. I have 1.7.4. It slows down the pages very much and when I look at the source file of the page, I see that the header is repeated with every category. Can anyone tell me where I might find the cause of this problem. The web site goes live in 2 weeks.
Title: Re: Every category loads with the header
Post by: n3w on August 30, 2007, 12:48:40 PM
in-

4images/templates/default/categories.html

search and remove:
Quote
{header}
to remove the overall header

and / or

search and remove:
Quote
{footer}

to remove site overall footer
Title: Re: Every category loads with the header
Post by: Nicky on August 30, 2007, 01:39:06 PM
footer is not good.

there is © ;)
Title: Re: Every category loads with the header
Post by: DennisRR on August 30, 2007, 03:05:13 PM
Thanks for the fast reply! But it made no difference. Every time a category is loaded, the header loads as well. So on one page where 15 categories show, the source file shows 15 times the header code. There must be a loop somewhere. Any thoughts?
Title: Re: Every category loads with the header
Post by: n3w on August 30, 2007, 03:15:48 PM
@Nickey, i am very sorry.. copyright note just skipped out of my mind.. sorry again  :(

@DennisRR, which template are you using? default?

any screenshot of template and source?
Title: Re: Every category loads with the header
Post by: DennisRR on August 30, 2007, 04:23:19 PM
It's a default template but I've changed it anyway because originally an alternative template caused too many problems. I'll send you a pm with the link because the site is not public yet. I really appreciate it if you could take a look. I'm building a website voluntarily for a non-profit organization. I realized that the repetitive header loop is only on the first subcatagory pages.
Title: Re: Every category loads with the header
Post by: DennisRR on August 30, 2007, 05:20:43 PM
I finally solved it. It was the {header} in category_bit.html
After removing that, speed increased with several hundred percent.
Title: Re: [solved] Every category loads with the header
Post by: n3w on August 30, 2007, 08:42:55 PM
Nice, good to see you solved the problem yourself :)

Best of luck for your project  :)