Jump to content

LedZepmann

Members
  • Posts

    25
  • Joined

  • Last visited

Community Answers

  1. LedZepmann's post in Dynamic Content Based on Location URL was marked as the answer   
    Thanks Joss,
    So I placed this in my _init.php file, which makes it global and available throughout the site:
    if($input->urlSegment1) {     $localpath = str_replace("","","$input->urlSegment1"); }else{     $localpath = ""; } Now, in my top nav and footer menu, I place "$localpath" first after href=' :
    $homepage = $pages->get('/'); $children = $homepage->children();      foreach($children as $child) {       if($child->id == $page->rootParent->id) {             echo "<li class='current'><a href='$child->url$localpath'>$child->title</a></li>";             echo "<li class='divider'></li>";      } else {             echo "<li><a href='$child->url$localpath'>$child->title</a></li>";             echo "<li class='divider'></li>";       } } For my top and footer logo links to home:
    <a href="/<?php echo $localpath; ?>" All works perfect. Now I can use Hanna Code to serve up local content for area specific AdWords campaigns.
  2. LedZepmann's post in 500 Internal Server Error After Successful PW Install on GoDaddy Server was marked as the answer   
    Uncommenting '# RewriteBase /' did the trick.
  3. LedZepmann's post in Get images from multiple pages by tag, then display one image randomly was marked as the answer   
    Hello Horst,
    Adding the "images.tags=coupon" selector to Kongondo's code DID THE TRICK!  You guys ROCK!  Thank you
×
×
  • Create New...