Quote:
Originally Posted by BABBSELA
This is something I would like to to, too. I'd like to have additional fields for automobile ads, so I'm guessing I need to add tables to the db, an alternate template so they can fill in those fields if they choose the auto category, and an alternate template for displaying all the fields in the ad.
|
Actually (rereading my original post), I made the mistake of saying that I hate the look of it listing all of the "catgories" one right after another.
What it should have said is, ...listing all of the "extra fields" one after another. Making the "extra fields" is easy and is already built in to 68classifieds. (Admin/extra fields and attach to categories).
What I'm trying to say is that when a user either browses or searches, they then get a list of ads (listings). If they click on the photo or the "more" link, then it shows the ad in the "viewlisting.tpl.php" template which shows it within the layout template.
I can modify the "viewlisting.tpl.php" template which I have already done, BUT the "extra fields" are simply one call to see if there are extra fields and if yes, then display those too, one right after another. Also any changes in the viewlistin.tpl.php file is universal for ALL categories.
What I'm saying is two fold. I want to have more than one viewlisting.tpl.php. In the viewlisting.php (where the link is going when the user is in browse or already searched), I want it to see if the category is one of the custom categories for which there is a separate template and if there is show the listing using that template instead of the default.
I'm sure that it would work, but my biggest issue to resolve is how to get the individual "extra fields" in the custom layouts.
-Mike