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

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
CapereSpiritum
Forum Members
Forum Members
Posts: 223
Joined: Wed Dec 28, 2011 12:11 pm

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

Post 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
Last edited by CapereSpiritum on Tue Dec 10, 2013 2:41 pm, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

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

Post by Rolf »

First step would be check the page source in W3c validator, there are several (related) issues.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
CapereSpiritum
Forum Members
Forum Members
Posts: 223
Joined: Wed Dec 28, 2011 12:11 pm

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

Post 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.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

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

Post by velden »

CapereSpiritum wrote:Hi Rolf
Sorted all the validation errors and warnings.
Did you?
CapereSpiritum
Forum Members
Forum Members
Posts: 223
Joined: Wed Dec 28, 2011 12:11 pm

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

Post 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?
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

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

Post 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.
CapereSpiritum
Forum Members
Forum Members
Posts: 223
Joined: Wed Dec 28, 2011 12:11 pm

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

Post 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.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

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

Post by velden »

Better thank Rolf. I just repeated his answer over and over again :D
CapereSpiritum
Forum Members
Forum Members
Posts: 223
Joined: Wed Dec 28, 2011 12:11 pm

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

Post by CapereSpiritum »

Yep, you're quite right.

Cheers Lots Rolf.

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

Return to “Modules/Add-Ons”