I’m writing this article, because of the number of times that this seems to have come up in the 68 Classifieds support forums. Obviously, it is a feature that many seem to want and I believe it certainly brings up some interesting uses.
I have modified the original Smarty plugin supplied by 68 Classifieds called, “function.featured_listings_horizontal.php”
You can download my modified file for your use here.
I have submitted this to 68 Classifieds to be included in the next official release which should be V4.1.2. In the meantime, feel free to use my file now if you can’t wait.
To use this plugin, you will need to upload this to your server. In V4.1.x this would be placed here “yoursite.com/plugins” For version 4.0.x this would be “yoursite.com/includes/classes/smarty/plugins”
(*NOTE: I highly recommend that you keep a copy of your original file before over writing it with my modified file. I suggest that you either keep the original on your local computer or better yet rename the original file on the server. My suggestion would be call it something like this: “function.featured_listings_horizontal.original.php”)
To use the new functionality of getting listings by the category, you need to know the ID# of the category that you would like to retrieve. You can find out your category IDs by logging into your admin and clicking on the “Categories” link and then the “Manage Categories” sublink. You will then see your list of categories. The category ID is the number to the left of the category name.
In the template file that you wish to list your categories you need to call the smarty function like this:
Replace X with the category ID of your choosing. Also remember that this additional parameter is an addition, so all of the other parameters can still be used.
I hope that you find this useful. Enjoy
If you do find this useful and you find my blog useful, why not consider donating to help support this blog. You can donate by using the link on the right hand side menu. Thanks for your consideration! Always appreciated.