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
[SOLVED] Loss of CSS in 2ndary pages for Company Directory
-
CapereSpiritum
- Forum Members

- Posts: 223
- Joined: Wed Dec 28, 2011 12:11 pm
[SOLVED] Loss of CSS in 2ndary pages for Company Directory
Last edited by CapereSpiritum on Tue Dec 10, 2013 2:41 pm, edited 1 time in total.
Re: Loss of CSS in 2ndary pages for Company Directory
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
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
-
CapereSpiritum
- Forum Members

- Posts: 223
- Joined: Wed Dec 28, 2011 12:11 pm
Re: Loss of CSS in 2ndary pages for Company Directory
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.
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
Did you?CapereSpiritum wrote:Hi Rolf
Sorted all the validation errors and warnings.
-
CapereSpiritum
- Forum Members

- Posts: 223
- Joined: Wed Dec 28, 2011 12:11 pm
Re: Loss of CSS in 2ndary pages for Company Directory
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?
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
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.
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

- Posts: 223
- Joined: Wed Dec 28, 2011 12:11 pm
Re: Loss of CSS in 2ndary pages for Company Directory
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.
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
Better thank Rolf. I just repeated his answer over and over again 
-
CapereSpiritum
- Forum Members

- Posts: 223
- Joined: Wed Dec 28, 2011 12:11 pm
Re: [SOLVED] Loss of CSS in 2ndary pages for Company Directo
Yep, you're quite right.
Cheers Lots Rolf.
The experience will make me tighter on my markup...
Cheers Lots Rolf.
The experience will make me tighter on my markup...


