ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How to enter the hgtv dream home

April 20, 2011 2:31pm

Subscribe [5]
  • #1 / Apr 20, 2011 2:31pm

    Jan Paul

    74 posts

    One lucky family will win the house of a lifetime in HGTV’s annual Dream Home Giveaway.  This year, HGTV has chosen the lake Tahoe community in California as the location—a luxurious hotspot complete with adventure, intrigue and beauty.  Since it is situated right in the mountains, residents will be very close to nature.

    An hour long exclusive special will air on January 1st—and what better way to usher in the near year by unveiling the dream home and making one lucky family extremely happy. Until next year!

  • #2 / Apr 20, 2011 3:31pm

    PhireGuys

    525 posts

    You can do this two ways.

    One way is to create a “404 page” which basically loads in whatever the segment_1 is.  You can set up within your template global preferences what template to use as a 404.  Then on the 404 page, you can do a check to see if the entry exists with the url_title = to {segment_1}, if nothing is found, then display an actual 404 message.  If something is found, then display the contents of the page.

    Another way is to use the Pages module and create the URLs you want per entry.  This way works very well to and is simple, the downside is you have to setup the url for each entry you post.

  • #3 / Apr 21, 2011 7:05am

    Jan Paul

    74 posts

    Hi, thanks, yes you can still enter. The dream home is built every year by and you can enter as many times as you like.

  • #4 / Apr 22, 2011 9:59am

    Ryan Irelan

    444 posts

    Jan, you can experiment using the require_entry parameter in the Channel Entries tag pair coupled with the url_title parameter (pass in segment_1). If no entry is found just render your normal homepage. If one is, display it.

    The conditional you want to try is

    {if no_results}
    normal homepage
    {if:else}
    single entry display
    {/if}

    I haven’t tested this in a template but something along these lines might help you get started.

  • #5 / Apr 23, 2011 8:03am

    Jan Paul

    74 posts

    It’s always good to know that people are happy when they get a new house like that. Not only do they get a great new home to live it. Usually the locations are also fantastic. This year the winners also get a yacht with the house that they can use to cruise lake tahoe 😊

  • #6 / Apr 23, 2011 10:52am

    the3mus1can

    426 posts

    I am pretty sure that you cannot do:

    {if no_results}
    normal homepage
    {if:else}
    single entry display
    {/if}

    No results blocks are only simple {if no_results}{/if}.

  • #7 / May 04, 2011 12:33pm

    PhireGuys

    525 posts

    Sorry, my notification went to junk mail.

    To answer the question, require_entry works with dynamic URLs, so you can’t use that with the url_title=”{segment_2"}.  Leave require_entry out and it will work.

    Use {if no_results} to test if there is an entry or not, instead of require_entry parameter.

  • #8 / May 16, 2012 1:33am

    Toemouse

    1 posts

    I am trying to do the same thing.

    I wanted to use urls like http://mysite.com/entry_title


    The method in this thread works, although this means every page request still has a status of 404.

    Is there a way to prevent this?


    Thanks,

    Tom

  • #9 / May 16, 2012 7:03am

    Jan Paul

    74 posts

    Ok, yes well you need to enter to get a chance right? So anyway, the hgtv dream home is a great opportunity to get that home you always wanted. The house has many features and many advanced technologies, you won’t even need to leave your house to experience paradise.

    Here is a picture, this is note the house itself, but it’s another place I wouldn’t mind living in:

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases