|
|
#1 |
|
Junior Member
Join Date: Mar 2009
Posts: 2
Rep Power: 0 ![]() |
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. |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Mar 2006
Posts: 3,945
Rep Power: 96 ![]() ![]() |
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 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Mar 2009
Posts: 2
Rep Power: 0 ![]() |
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! |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |