
Dave
Staff
/ Moderator

Jul 28, 2009, 10:26 AM
Post #7 of 7
(3251 views)
Shortcut
|
|
Re: [dwn11] search form with OR statements
[In reply to]
|
Can't Post
|
|
Hi dwn11, >I would like to format the font color, type etc of the summary and >description. I mean Bold Underline font color etc.Like this text box >here!:) I do not know if these should appear anyway, but they do not! There are two ways to do this. You can either change the summary and description to by wysiwyg fields in the field editor, which will allow the CMS users to edit the colors, etc. -OR- you can hard code those values in the HTML of the page displaying the content, and in that case you can only apply changes the all the content. Eg: making the summary all one color, etc. >I have managed to get the nunber of the search results but not the >total number of properties in the database. Try adding this code in red:
// get total records count list($listingRecords, $listingDetails) = getRecords(array( 'tableName' => 'listings', 'allowSearch' => false, 'limit' => '0', )); $totalRecords = $listingDetails['totalRecords']; // list($listingRecords, $listingDetails) = getRecords(array( 'tableName' => 'listings', 'joinTable' => 'homepages', 'perPage' => '10', )); This will make available a variable $totalRecords with the total count of listings (that aren't hidden). You can display it like this: There are <?php echo $totalRecords ?> in the database. hope that helps! Dave Edis - Senior Developer interactivetools.com
|