|
|
#1 |
|
Member
Join Date: Dec 2006
Posts: 96
Rep Power: 13 ![]() |
Hi guys
This thread is refering to my previous posted thread as you can find here: http://www.68classifieds.com/forums/...5594#post15594 The thing is that the solution in the previous thread is at sub category level. I would like to be able to determine which layout template to use at the top category level, and this should apply to all sub categories of that top level category. As you can see from this uri, category.php?type=16&sec=41, the solution in the previous thread is to use the "sec=41" part to determine the layout template in viewlisting.php, but what I would really like is to use the "type=16" part for this job. Does anyone know if this is possible in any way? Thank's a lot for your feedback, it is really a great help. Kind regards Oyvind |
|
|
|
|
|
#2 |
|
68 Evangelist & Developer
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,693
Rep Power: 48 ![]() ![]() |
objelland,
Unfortunately there hasn't been a discovered way to do that to date. In the thread I started a while back (which you've obviously already read to be where you are now), that is exactly what I was trying to achieve. Unfortunately, no one was able to come up with anything that would work in that fashion. What I did to at least make it somewhat easier in the viewlisting.php code was to add all of the subcategory id's to one layout.tpl.php file like this (based on suzkaw's suggestion): PHP Code:
-Mike
__________________
Mike-N-Tosh IndianaPC.org - A community website (v3.1.10 Developer - heavily modified) Sandbox (v3.1.10, v4.0.9, 4.1.5) Visit My blog for tips, tricks, tutorials, reviews for 68 Classifieds as well as my store with Templates, Mods & Docs Web Hosting | Web Design & Development | 68 Classifieds Customizations I am not a 68C employee, just a user and try to help out |
|
|
|
|
|
#3 |
|
Moderator
|
You are confusing me. The link from category.php shouldn't be doing anything to the listing. The listing url is viewlisting.php?view=. In viewlisting you would have to use the section for which it is placed unless you do a lookup to find that category's parent.
Now in category.php it shows the showlisting.tpl.php template. It is the file that would utilize the url with sec & type. Which template are your trying to change, and coming from what page. I just want to be on the same page.
__________________
John Snyder PHP Developer |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Viewlisting.tpl.php | objelland | v3.1 Modules & Modifications | 7 | 08-07-2007 05:14 PM |
| I need a little help please | darek | v3.1 Modules & Modifications | 6 | 04-06-2007 09:28 AM |
| How do I add something to the universal <head? (I want a new javascript declaration) | mike41 | v3.1 Questions & Support | 6 | 11-18-2006 09:26 AM |