|
ORODHA 1.1.1 RELEASED! click here!
Display search_ results_classID on Page Editor page?Display search_ results_classID on Page Editor page? I seem to remember there was a "search results addon" on the OR forum that would allow you to display results on a page created in the page editor? Anyone know a) where it is and? b) does it work with Orodha?
Edited By: 4sbo
Jan-23-11 01:14:35
Administrator has disabled public posting
Re: Display search_ results_classID on Page Editor page?Yes, there must be a simple hardcoded php query for that, I'd like to know what it is...and any other useful php snippets for grabbing things from the database. In fact, if they are that "simple" (and they likely are) then we should turn them into template tags. {show_all_results}, {show_all_results_pclassX}. Great for site maps apart from anything else. Tom ("zarathustra" on OR) is proud to be a member of the Orodha development team!
Administrator has disabled public posting
Re: Display search_ results_classID on Page Editor page? try this inside your template file
Administrator has disabled public posting
Re: Display search_ results_classID on Page Editor page? Thanks alsmith for the help, but I'm not sure I fully follow you, are you suggesting I add the code you submitted in the pageX_main.php file?
Administrator has disabled public posting
Re: Display search_ results_classID on Page Editor page? the code was submitted to the SVN, it is not available until tested and if so included in the next release.
Administrator has disabled public posting
Re: Display search_ results_classID on Page Editor page? Hi Al, Great news that this is in the core now! So many possibilities. Is there a way we can grab just "specific" things from the database? I am rubbish at php>mysql interaction. For instance what would the php code to grab just a list of listing titles be (great for site maps)? How about to grab the total number of listings? Total number in each class? Things like that? Very useful for template designers.
Code:<h1>Welcome to BigShotLtd! Listing {total_listings_number} widgets right now!</h1>I also would like to know how to pull specific "simple" items from the control panel setup. So I can do:
Code:<p>Showing listings on the map within {config_listing_map_distance} of this property</p>...for example Tom ("zarathustra" on OR) is proud to be a member of the Orodha development team!
Administrator has disabled public posting
Re: Display search_ results_classID on Page Editor page? Tom you could use functions like this one in the admin to get the total listing count.
Administrator has disabled public posting
Board Info
Forum Legend:
|

