Support Forums

Old 03-09-2009, 06:09 PM   #1
Junior Member
 
Join Date: Mar 2009
Posts: 2
Rep Power: 0
bedouin is on a distinguished road
Default weighted categories

Hi all,
I'm currently modifying home.tpl to fit a custom design. No problems so far with the css, xhtml...

However, one of the things I'd like to do is only show the "more important" categories on the home page.
By more important, I mean categories whose weight>0, and/or categories which have a picture assigned to them.
How should I go about accomplishing this task?

*** update ***
just realized that I can use the SRC of the default image to filter, like this:
{if $data[td]<>"" && $data[td].image<>"templates/MYSITE/images/folder.gif"}

Last edited by bedouin; 03-09-2009 at 06:22 PM.
bedouin is offline   Reply With Quote
Old 03-09-2009, 10:05 PM   #2
Moderator
 
 
Join Date: Mar 2006
Posts: 3,945
Rep Power: 96
Lhotch is just really niceLhotch is just really nice
Default

I beleive you will have to edit the underlysing script to work with the weight, do you have the developer version?
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote
Old 03-09-2009, 11:02 PM   #3
Junior Member
 
Join Date: Mar 2009
Posts: 2
Rep Power: 0
bedouin is on a distinguished road
Default

Hi Larry,

Thanks for replying!
I got the developer version but would rather not mess with the core files as they tend to be overwritten during updates. Considering that this is a one-time job for a client who is not too web savvy, I prefer to keep stuff as simple as possible..
As I already mentioned, I managed to resolve the issue by filtering the default image url.

Thanks anyways,
Cheers

PS. Respect for all the helpful posts you made throughout these forums!
bedouin is offline   Reply With Quote

Bookmarks

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Are we able to charge certain categories and keep other categories free? Success v4 Questions & Support 5 04-02-2008 04:49 PM
Static Categories and Sub-categories list Tim_A v4 Questions & Support 0 06-08-2007 08:41 AM
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 08:53 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0