Search the Community
Showing results for tags 'processwire templates'.
-
I'm fetching some results on the basis of categories check boxes (which are checked only). until here works fine, issue is if multiple check boxes are selected so given result is also duplicating <?php $getCities = $page->find("template=t3Cities_list"); foreach ($getCities as $city) { foreach ($city->tags as $get) { $getTags = $page->get("template=tags_template, include=hidden")->children("sort=title, tag_code={$get->title}"); echo "<div class='grid-masonry'><div class='grid-sizer'></div>"; foreach ($getTags as $tag) { echo "<div class='grid-item'> <a href='{$tag->url}' class='img-hovered'> <div class='overlay'> <span>{$tag->title}</span> <!--<div class='cat-subtitle'>{$tag->categorymeta}</div> --> </div> <img class='img-responsive' src='{$tag->categorythumb->url}{$tag->categorythumb}' /> </a> </div>"; } echo "</div>"; } } ?> $getTags = $page->get("template=tags_template, include=hidden")->children("sort=title, tag_code={$get->title}"); this {$get->title} is the value of checkbox
-
I'm fetching results from a template which works fine but when i change the language (in my case changed language is ARABIC), its showing me nothing $getResult = $pages->find("template=t3Cities_list, tags={$page->title}"); where "tags" are checkboxes with multi selection, How i can match the values?
- 2 replies
-
- processwire
- processwire templates
-
(and 1 more)
Tagged with: