Jump to content

noussh

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by noussh

  1. @Jan Romero, Yes, now it works. I was trying to get url segmet to $page->get('path=urlsegment'). Thank you.
  2. Thanks Arjen, But my original question is unanswered. The code above show all properties, when I click on properties link, I should go to that specific page. How do we do that? Thanks.
  3. Hi everyone! I am very new to processwire. I have properties listed on a page. When I click on a particular property, it should take me to a single page where it show all the details. For example. : properties/ (shows all properties, i got this right.) properties/al-bateen-residences/ (shows al-bateen-residence detaisl) <?php $properties = $pages->find('template=properties'); ?> <?php foreach($properties as $property): ?> <div> <a href="<?=$property->url;?>"> <?=$property->title;?> </a> </div> <?php endforeach; ?> Thanks. noussh
×
×
  • Create New...