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.

Segment_1 not working as expected

August 10, 2010 10:14am

Subscribe [4]
  • #16 / Aug 11, 2010 4:04am

    dombi

    130 posts

    You can see it here: http://beszeljukmac.com/

    Go to the bottom of the page and look for a section: “Korábbi cikkeink”. This is a collection of links, that we want to show only on the first page.

    Right above that section, you will see the pagination links. If you click on the 2nd, 3rd, etc. pages, you will still see these links (which we don’t want).

    What happens if you put the template group in your URLs?

    So to answer your question, basically the same thing happens. It gets shown on every page.

  • #17 / Aug 11, 2010 2:15pm

    dombi

    130 posts

    I will have to do it this way….

    <?php
    $url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
    if ($url == "http://www.website.com" || $url == "http://www.website.com") { ?>
    
    do something…
    
    <? } ?>

    Ugly… but works.

  • #18 / Aug 11, 2010 3:08pm

    Ingmar

    29245 posts

    Glad to see you have found a solution that works for you.

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

ExpressionEngine News!

#eecms, #events, #releases