Go Back   68 Classifieds Forums > v4 Help & Support > v4 Modules / Modifications

v4 Modules / Modifications Information about modules and script modifications for v4. Questions here are beyond "typical" 68classifieds support and not supported by the 68classifieds team.

 
Thread Tools Display Modes
  #1  
Old 05-27-2008, 05:59 AM
spark spark is offline
Junior Member
 
Join Date: May 2008
Posts: 4
Rep Power: 0
Default How to display categories in the left column

Hi,

A quick newbie question (I'm loving 68classifieds so far!) - has anyone placed the categories in the left hand column? I'd like to do this so that the categories are always visible for the user. Ideally I'm wanting to change the code into a seo friendly <ul><li> setup, with a possibility or nesting the sub categories and displaying them too if required.

Has anyone of you already done such a thing? Is there an example of the code that I could look at just so I'm not reinventing the wheel?

Many thanks,

Konrad
Reply With Quote
  #2  
Old 05-27-2008, 01:27 PM
suzkaw suzkaw is offline
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 3,145
Rep Power: 72
Default

Hi,

You should be able to use this:
Code:
{categories_parent}
<ul>
{foreach from=$pcat item=entry}
<li>{$entry.link}</li>
{/foreach}
</ul>
Please note that this will only pull the parent categories.
__________________
Eric Barnes
68 Classifieds Developer
"If a wood chuck could chug beer how much beer could a wood chuck chug?"
Customer Area | Issue Tracker | Knowledge Base | User Manuals | Twittering
Reply With Quote
  #3  
Old 05-28-2008, 08:26 AM
spark spark is offline
Junior Member
 
Join Date: May 2008
Posts: 4
Rep Power: 0
Thumbs up

Thanks, that did the trick! I have now been trying based on this code to place the subcategories in there as well but have been getting error messages (I'm not a php coder!).

I would like the sub categories only to appear nested in the main categories menu when on the actual parent page - is this possible?

Thanks!

Konrad
Reply With Quote
  #4  
Old 05-28-2008, 08:39 AM
suzkaw suzkaw is offline
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 3,145
Rep Power: 72
Default

I am really not sure how difficult it would be. However the file this pulls from is includes/classes/smarty/plugins/function.categories_parent.php

You may want to look in that to see how it is generated.
__________________
Eric Barnes
68 Classifieds Developer
"If a wood chuck could chug beer how much beer could a wood chuck chug?"
Customer Area | Issue Tracker | Knowledge Base | User Manuals | Twittering
Reply With Quote
  #5  
Old 05-28-2008, 09:18 AM
spark spark is offline
Junior Member
 
Join Date: May 2008
Posts: 4
Rep Power: 0
Default

Thanks for your help - however, this si way beyond my php capabilities - I think I'll leave it for now but of course if anyone else wants to look at it then that would be really appreciated!

Thanks again,

Konrad
Reply With Quote

Bookmarks

Tags
list, menu, navigation

Thread Tools
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
Alphebetical category display teg v4 Questions & Support 6 03-12-2008 08:41 AM
Making a Left Hand Column goose HTML, CSS, and Design Help 1 09-26-2007 05:49 PM
Right column dphibb v3.1 Questions & Support 1 07-17-2007 08:35 AM
Categories displayed in left column...??? Netpower v3.1 Modifications 4 07-06-2007 02:03 PM
Prevent Browse Categories Table for hidden categories free2take v3.0 Questions & Support 3 05-12-2006 10:14 AM


All times are GMT -4. The time now is 04:06 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.