Real Estate Forums
| REW CMS 1 Questions For users of the REW CMS 1 or classic backend - please post your 'how do I' questions here. If you have upgraded to CMS 2, please use the CMS 2 Forum |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|||
|
I can go to the lower left had and get them but I don't know what to do after that. I don't know how to use the snippet editor. I want to add price range groupings for searching properities.
Thank you. Joni Johnston, web manager for Jane Paulus Edina Realty jonijohnston@edinarealty.com |
|
||||
|
Hi Joni,
Is this for bestminneapolisrealestateteam.com? Are you wanting to create a snippet that displays the search results of certain price ranges? Let us know and we can help you out. Thanks
__________________
Matt Hutchings Programmer - Real Estate Webmasters MattH@RealEstateWebmasters.com |
|
||||
|
Hello Joni
To use the snippet editor simply type in a name for a snippet and the snippet code into the boxes provided and click add. You can click the Edit buttons next to the snippets you already have to see the code in them or to change their code. To add a snippet to a page simply type the snippet name with # signs around it on the page. I have created 2 sample snippets for you and two pages with the snippets on them. http://www.bestminneapolisrealestate...le-snippet.php http://www.bestminneapolisrealestate...e-snippet2.php You can copy either of these snippets and change the city name to get a different city. And in the second snippet you can set the price ranges. Here is what the first sample snippet looks like Code:
<?php $_REQUEST['snippet'] = true; $_REQUEST['page_limit'] = 10; $_REQUEST['snippet_city'] = 'Apple Valley'; $_REQUEST['idx'] = 'Listings'; include_once $_SERVER["DOCUMENT_ROOT"]."/idx/common.inc.php"; include_once $_SERVER["DOCUMENT_ROOT"]."/idx/inc/php/pages/snippet.php"; ?> Code:
<?php $_REQUEST['snippet'] = true; $_REQUEST['page_limit'] = 10; $_REQUEST['minimum_price'] = '200000'; $_REQUEST['maximum_price'] = '300000'; $_REQUEST['snippet_city'] = 'Apple Valley'; $_REQUEST['idx'] = 'Listings'; include_once $_SERVER["DOCUMENT_ROOT"]."/idx/common.inc.php"; include_once $_SERVER["DOCUMENT_ROOT"]."/idx/inc/php/pages/search.php"; ?> This is how you control if you get the price range links at the top or not. If you don't use the price range links you can set a price range yourself. Let me know if you need any more help with this. |
|
|||
|
If I paste the first snippet on the bloomington subpage below is what appears on the site. It's not like either example.
Also if I click on Apple Valley on the home page I get an error notice the page cannot be found. Subpage: Bloomington Bloomington, Minnesota's third largest city, is located south of 494, and alng the Minnesota River. It was named for flowering fields welcoming the first settlers. Bloomington has a variety or homes including new homes and classic homes on tree-lined streets, condos and townhomes. Blooming is close to secenic lakes and parks, is home to Mall of America and St Paul Airport. <?php INSERT:CONTENT:END REQUEST['snippet'] = true; INSERT:CONTENT:END REQUEST['page_limit'] = 10; INSERT:CONTENT:END REQUEST['snippet_city'] = 'Bloomington'; INSERT:CONTENT:END REQUEST['idx'] = 'Listings'; include_once INSERT:CONTENT:END SERVER["DOCUMENT_ROOT"]."/idx/common.inc.php"; include_once INSERT:CONTENT:END SERVER["DOCUMENT_ROOT"]."/idx/inc/php/pages/snippet.php"; ?> TOP |
|
|||
|
1. I have added snippets to most community subpage. However there are a few where clicking on the community subpage does not bring you to a search page. I went in a reviewed each snippet and found no snippet code. I entered the snippet again and an error message comes back "Duplicate entry". Obviously the snippet is there but not visible nor working. Can you look into it please? This problem exists on the following community subpages:
Eden Prairie Golden Valley Lake Minnetonka Maple Grove Minneapolis Southwest New Hope Prior Lake Shakopee St. Louis Park. 2. No page is found when you are on the home page and you click on Apple Valley and Champlin. |
|
|||
|
Jane,
We'll check this out for you. Vera |
|
|||
|
I copy/pasted your Eden Prairie snippet, named it eden-prairie and it works fine. So I guess the moral is: don't use snippet names with spaces in them.
Vera |
|
|||
|
Regarding the pages that were not found, the page names are case-sensitive. You should always use lower case for the page names. (e.g. apple-valley rather than Apple-Valley). And the Champlin page really doesn't seem to exist. I added one for you that you can edit.
Vera |
|
|||
|
For the Shakopee snippet, which obviously wasn't the same problem as the ones with spaces in the name, I changed the snippet city from "Apple Shakopee" to just "Shakopee" and that fixed it.
Vera |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Snippets no longer working | David Abernathy | REW IDX | 1 | 05-16-2008 08:19 AM |
| snippets | mikey | REW CMS 2 Questions | 3 | 03-31-2008 03:38 PM |
| Snippets with parameters? | RonnieG | REW IDX | 0 | 02-15-2008 11:30 AM |
| Snippets, snippets who's got the snippets :) | jessiesc | REW IDX | 14 | 10-17-2007 02:56 PM |
| Google link snippets | loudog | Real Estate and Google | 8 | 09-12-2007 10:33 AM |