Go Back   Mosets Community > Mosets Tree 3.x > Discussions, Troubleshooting & Problems

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-03-2013, 02:38 AM
michaelronayne michaelronayne is offline
Mosets'd
 
Join Date: Oct 2013
Posts: 4
Default Issue with Alpha Listing when odd # of Categories

Alpha listing pages not showing and causing template to display incorrectly.

I've been able to isolate this problem to a missing </div> tag when displaying an alpha listing page showing categories at the top when there is an odd number of categories. All pages with an even number of categories display fine. If there is an odd number of categories the page doesn't display properly due to a missing </div> tag. By comparing a good page view HTML source to a bad page HTML source I can see where the missing div is. I just don't know where in the HTML generation it should be emitted?

The missing </div> is right after the final category and appears to be the ending div for the div id="subcats"?


Using Mosets V3.5.0 Joomla 3.1.5 and the JSN Dome template
Reply With Quote
  #2  
Old 11-03-2013, 02:49 AM
michaelronayne michaelronayne is offline
Mosets'd
 
Join Date: Oct 2013
Posts: 4
Default Quick fix...

I was able to add the following to line 45 in sub_subCats.tpl.php in the templates/kinabalu folder.

if ($i % 2 != 0) echo '</div>';

Basically testing to see if the number of categories is odd and emitting a closing div tag it it is.

This fixed the problem in my instance.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible Bug. Unable to move listing between categories garylee9468 Discussions, Troubleshooting & Problems 7 08-22-2012 03:15 AM


All times are GMT +8. The time now is 10:11 AM.

Copyright © 2005-2010 Mosets Consulting

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.