Display cities, town or any other listingsdbelements value with property counts
Hi, I have found open realty to be a remarkable product and therefore wanted to put something back into the community. I have to say that I am no php programmer and I have not created an addon before.
I wanted to display towns (displayed as a link to the search results) on my website with a count of properties, however I also wanted to display other values such as costas, bedrooms etc. For example:
Property For Sale In Almoradi (2) - Property For Sale In Avileses (1) - Property For Sale In Bullas (6) - Property For Sale In Caravaca De La Cruz (6)
Addon Name
------------
dispcounts
Description of this addon
-------------------------
This addon was designed to display a list of values from the listingsdbelements table, along with property counts. Each element will be displayed as link to the search results.
Open Realty Version
-------------------
Tested on 2.5.2 but should work with previous versions.
Example
-------
You may have a database field called 'Town' and wish to display all the towns on the page along with a count of the properties.
* You can customise the heading text, pretext, postext etc.
* You can also present your list in an unordered list, or in a table and specify the number of columns.
* Each html element has a built in class that you can set within you main css file.
Directions
----------
* Place this file and its directory into the addon folder on your website. Login in as admin to install the addon.
* Simply add the addon call to your website page where you want the data to display. For example {addon_dispcounts_town}
* Search for CHANGE HERE within the addon.inc.php file in order to cutomise your settings
* Update your css file to customise the display.
Bookmarks