+ Reply to Thread
Results 1 to 4 of 4

Thread: Need Help Using the IDX Snippets

  1. #1

    Default Need Help Using the IDX Snippets

    I am just starting to use snippets for our IDX content and I'm need some direction. Do I copy and paste the snippet into the page content and then change the variable?

    For example, I copied the See our Office Listings snippet

    /* Only this office's listings */
    $_REQUEST['office_id'] = '';

    into a page entitled "See Our Listings" and then changed the the office id to
    ['278'] and that didn't work. The coding is showing up on live page.

    What should I be doing? I would like more step by step directions on using these IDX snippets and how we should be using them to our best advantage.

    Thanks.

  2. #2
    Join Date
    Feb 2005
    Location
    Orange County, Ca
    Posts
    2,181

    Default Re: Need Help Using the IDX Snippets

    Each snippet stands on it's own when you create a Snippet Name. Then you paste the snippet with a #before and #after the snippet name onto the page you want. So it would be #snippet-name# that you insert into the page. If you then change a varible within that snippet code, it will change it on the page where you put #snippet-name#.

    You will need to create a new snippet if you want a different variables within the snippet.
    Welcome to your guide to Orange County, Ca Real Estate and MLS Search, and the home to the world's best climate at San Clemente Real Estate where you can enjoy luxury coastal living with a beach close lifestyle.

  3. #3
    Aaron is online now Real Estate Webmasters Staff Aaron's Most Recent Blog Entry: Email etiquette Aaron is on a distinguished road
    Join Date
    Jun 2005
    Location
    Nanaimo
    Posts
    24,278

    Default Re: Need Help Using the IDX Snippets

    Correct - you place the snippet name on the CMS page like Drew said...

    The Office snippet: you would change it to:

    /* Only this office's listings */
    $_REQUEST['office_id'] = '278';

    I noticed you had a snippet called #see-our-listings# - it was missing most of the code .. so I fixed it up so that it'll work.
    Aaron
    Real Estate Webmasters ( Programming )
    Client Resources | Tutorials | Suggested Enhancements

  4. #4

    Default Re: Need Help Using the IDX Snippets

    Thanks Aaron. I saw that it started working and I thought I was a genius. Turns out, you're the genius! Appreciate the help.

+ Reply to Thread

Similar Threads

  1. Organizing pages and snippets in CMS 2.0
    By bnicolas in forum REW CMS 2 Questions
    Replies: 4
    Last Post: 04-08-2009, 05:04 PM
  2. Snippets with Sorting
    By RESteve in forum REW LEC
    Replies: 2
    Last Post: 04-02-2009, 02:52 PM
  3. Creating Snippets
    By Mark Z in forum REW LEC
    Replies: 2
    Last Post: 03-23-2009, 09:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts