Anna

Members
  • Content count

    3
  • Joined

  • Last visited

Community Reputation

2 Neutral

About Anna

  • Rank
    Newbie
  1. Thank you! This is very useful because I'm not a php expert. Welcome everyone!
  2. Thank you! <?php foreach($page->kat_page as $item) { //$item = kategoria $rec = $pages->find("kat_page=$item, id!=$page"); foreach($rec as $key) {//kategoria->recept echo "<div class='col-md-6 col-sm-6 col-lg-4'><div class='rec_item'>"; foreach($key->images as $image) { echo "<div class='img'><img class='resize' src='{$image->url}' alt='{$key->title}'></div>"; } echo "<div class='desc_area'> <a class='title' href='{$key->url}'>{$key->title}</a> <div class='desc dot is-truncated'>{$key->summary}</div> </div> </div> </div>"; } }?> Are you okay? Not much for forearch, can it be better?
  3. How to FieldtypePage category as blog? Home - receptek - recept - recept - recept - kategorak - kategoria - kategoria - kategoria recept.php <?php foreach($page->kat_page as $item) { //$item = kategoria echo "<h3>$item->title</h3>"; //kategoria->recept??? }