Results 1 to 9 of 9

Thread: Different Layout for Listings

  1. #1
    Join Date
    Mar 2008
    Posts
    12

    Default Different Layout for Listings

    Hi,
    Can I use different layouts? For example,

    sponsored listing -> layout 1
    basic listing -> layout 2

  2. #2
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Yes

    Edit the appropriate files. For sponsored listings edit sponsored_rows.html, for premium listings edit premium_rows.html

  3. #3
    Join Date
    Mar 2008
    Posts
    12

    Default

    for detail page?

  4. #4
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    What about the detail page?

    Edit the two files mentioned above and also browse.html where indicated for sponsored and premium.

  5. #5
    Join Date
    Mar 2008
    Posts
    12

    Default

    I want to use different layouts for detail page.
    Example; http://dizin.acenteonline.com/detay/...danismani.html

    Layout and content can be different for listing type?

  6. #6
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Modify the files above as I stated.

  7. #7
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    Quote Originally Posted by Bruceper View Post
    Modify the files above as I stated.
    editing those files wont do anything for the detail page...

    load up detail_link.html

    use <% if $sponsored %>
    sponsored layout element
    <%else%>
    normal layout
    <%/if%>

    you can that multiple times to display different bits, or jsut put hte whole layout code in the first bit, and duplicate it in the second... thats the basics, make it up as you want to use it.
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  8. #8
    Join Date
    Mar 2008
    Posts
    12

    Default

    thanks inspireme That's ok. So premium listing?

    <% if $sponsored %>
    sponsored layout element
    <% if $premium %>
    premium layout element
    <%else%>
    normal layout
    <%/if%>

    I think it's not correct?

    Edit: It's ok now.

    <% if $sponsored %>
    sponsored layout element
    <% elseif $premium %>
    premium layout element
    <%else%>
    normal layout
    <%/if%>

  9. #9
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    If sponsored and premium have the same element you can use

    <%if $sponsored==1 | $premium==1%>
    do this
    <%/if%>
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

Similar Threads

  1. Layout issue : Help and advice please
    By mainman in forum v5.x
    Replies: 7
    Last Post: 03-10-2008, 12:44 AM
  2. layout problems
    By zupi in forum v5.x
    Replies: 13
    Last Post: 12-14-2007, 12:48 AM
  3. Changing Category Layout
    By xealinc in forum Blocks and Modification
    Replies: 4
    Last Post: 04-24-2007, 12:49 AM
  4. Changing basic layout,
    By shogun in forum Website development, hosting and promotion
    Replies: 3
    Last Post: 05-28-2004, 02:32 PM
  5. need to change layout of indexu
    By janewest in forum Tutorials, Hints & Tips
    Replies: 3
    Last Post: 05-13-2003, 10:03 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
  •