Page 1 of 1

[SOLVED] Loss of CSS in 2ndary pages for Company Directory

Posted: Fri Nov 08, 2013 1:41 pm
by CapereSpiritum
Hi

I've installed and styled Company Directory for the nth time.

I've set pagelimit='9' in the smarty call. When the next page is selected (<< < Page 1 of 2 > >>), the results are without many of the CSS styles applied.

Every template in the site uses the same Layout style sheet, so it's as if the 2nd page is served from an unstyled template.

Here's the page...

Using:
CMS Version 1.11.9

CMSMailer 5.2.2
CMSPrinting 1.0.5
FileManager 1.4.3
MenuManager 1.8.6
MicroTiny 1.2.5
ModuleManager 1.5.5
News 2.13
Search 1.7.11
ThemeManager 1.1.8
CGSimpleSmarty 1.7
CGExtensions 1.37.3
JQueryTools 1.2.5
CompanyDirectory 1.19.7
CGSmartImage 1.13
FormBuilder 0.7.4

Re: Loss of CSS in 2ndary pages for Company Directory

Posted: Fri Nov 08, 2013 2:05 pm
by Rolf
First step would be check the page source in W3c validator, there are several (related) issues.

Re: Loss of CSS in 2ndary pages for Company Directory

Posted: Tue Dec 10, 2013 10:57 am
by CapereSpiritum
Hi Rolf

Sorted all the validation errors and warnings.

Still cannot see what's wrong.

I have a Company Directory setup on another site with identical settings. Styling is different but all the calls are the same.

The only difference I can see that might make a difference is the CD versions.

The one that works is 1.17.3 with CGExtensions 1.36

Heres the site that works
The smarty call {CompanyDirectory category='JIB_Sessions' summarytemplate='JIB_ACTIVITIES' pagelimit='9'}

And the one that doesn't
The smarty call {CompanyDirectory category='Video' summarytemplate='Showreel' pagelimit='9'}

I'm very tempted to un-install the new version and install the old one.

Re: Loss of CSS in 2ndary pages for Company Directory

Posted: Tue Dec 10, 2013 11:08 am
by velden
CapereSpiritum wrote:Hi Rolf
Sorted all the validation errors and warnings.
Did you?

Re: Loss of CSS in 2ndary pages for Company Directory

Posted: Tue Dec 10, 2013 1:44 pm
by CapereSpiritum
Oops. Only did the CSS. HTML now ALL done.

But still the same problem.

Granted, my markup validation left lots of room for improvement. I'll keep on top of that.

What the hell is causing the loss of CSS when the module set up is the same as the other (working) one?

Re: Loss of CSS in 2ndary pages for Company Directory

Posted: Tue Dec 10, 2013 1:51 pm
by velden
Come on. You still have a lot of div's that are not ok.

Make it valid code and it will probably work.

You seem to forget to open a div inside a loop. But you do (try to) close it. Causing your pagewrapper and contentN being closed much to early.
Etc.

Re: Loss of CSS in 2ndary pages for Company Directory

Posted: Tue Dec 10, 2013 2:40 pm
by CapereSpiritum
Hey Velden

Thanks for your help.

I fixed it by accident... Sort of.

Created a stripped down template and then added each element on at a time.

Whilst doing the same with the summary template, I corrected the error without knowing where...

Lesson learned.... CHECK during build using W3C Validation.

Re: [SOLVED] Loss of CSS in 2ndary pages for Company Directo

Posted: Tue Dec 10, 2013 2:55 pm
by velden
Better thank Rolf. I just repeated his answer over and over again :D

Re: [SOLVED] Loss of CSS in 2ndary pages for Company Directo

Posted: Tue Dec 10, 2013 5:06 pm
by CapereSpiritum
Yep, you're quite right.

Cheers Lots Rolf.

The experience will make me tighter on my markup...