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

Reply
 
Thread Tools Search this Thread Display Modes
  #1 Snippets  
Old 08-26-2008, 12:18 PM
Jane Paulus Edina Jane Paulus Edina is offline
New real estate webmaster
 
Join Date: Aug 2008
Posts: 25
Jane Paulus Edina is on a distinguished road
Default Snippets

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
Reply With Quote
Old 08-26-2008, 02:51 PM
REW Matt H's Avatar
REW Matt H REW Matt H is offline
Real Estate Webmasters Staff
 
Join Date: Jun 2007
Location: Nanaimo, BC
Posts: 323
REW Matt H is on a distinguished road
Default Re: Snippets

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
Reply With Quote
Old 08-27-2008, 06:04 PM
REW Steven's Avatar
REW Steven REW Steven is offline
Real Estate Webmasters Staff
 
Join Date: Aug 2006
Location: Nanaimo, BC
Posts: 739
REW Steven is on a distinguished road
Default Re: Snippets

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"; 

?>
And here is the second one

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"; 

?>
Notice that the second one uses search.php in the last line instead of snippet.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.
__________________
Systems and Support Manager
Email FAQ
Site Live Form
Ordering new work
Reply With Quote
Old 09-04-2008, 12:12 PM
Jane Paulus Edina Jane Paulus Edina is offline
New real estate webmaster
 
Join Date: Aug 2008
Posts: 25
Jane Paulus Edina is on a distinguished road
Default Re: Snippets

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
Reply With Quote
Old 09-04-2008, 02:40 PM
REW Steven's Avatar
REW Steven REW Steven is offline
Real Estate Webmasters Staff
 
Join Date: Aug 2006
Location: Nanaimo, BC
Posts: 739
REW Steven is on a distinguished road
Default Re: Snippets

Hello

Sorry, I totally spaced on one important step :P

To create and edit snippets you will need to go to the snippet manager. In the bottom left hand corner of your CMS is a © that is a link. Click that.

Here you can add and edit your snippets.

To include a snippet onto a page simply add its name to the content with a # on each side.

#sample-snippet#

Snippet names must be letters, numbers and hyphens (-) only. No spaces.

Let me know if you need any more help. Sorry for the confusion.
__________________
Systems and Support Manager
Email FAQ
Site Live Form
Ordering new work
Reply With Quote
Old 09-11-2008, 01:54 PM
Jane Paulus Edina Jane Paulus Edina is offline
New real estate webmaster
 
Join Date: Aug 2008
Posts: 25
Jane Paulus Edina is on a distinguished road
Default Re: Snippets

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.
Reply With Quote
Old 09-15-2008, 01:16 PM
REW Vera REW Vera is offline
Real Estate Webmasters Staff
 
Join Date: May 2008
Posts: 378
REW Vera is on a distinguished road
Default Re: Snippets

Jane,
We'll check this out for you.
Vera
Reply With Quote
Old 09-16-2008, 02:22 PM
REW Vera REW Vera is offline
Real Estate Webmasters Staff
 
Join Date: May 2008
Posts: 378
REW Vera is on a distinguished road
Default Re: Snippets

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
Reply With Quote
Old 09-16-2008, 03:05 PM
REW Vera REW Vera is offline
Real Estate Webmasters Staff
 
Join Date: May 2008
Posts: 378
REW Vera is on a distinguished road
Default Re: Snippets

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
Reply With Quote
Old 09-16-2008, 03:05 PM
REW Vera REW Vera is offline
Real Estate Webmasters Staff
 
Join Date: May 2008
Posts: 378
REW Vera is on a distinguished road
Default Re: Snippets

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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

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



For our members

Main Sections

IDX Coverage Areas

Spiders Welcome

All times are GMT -7. The time now is 12:34 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.