zaib

Members
  • Content count

    21
  • Joined

  • Last visited

Community Reputation

0 Neutral

About zaib

  • Rank
    Jr. Member

Recent Profile Visitors

118 profile views
  1. Hi, is there any module which can perform relational drop down, for example I've one drop down which is containing all countries if i select "UAE" the next drop down value will be change on the basis of selected counties and second dropdown will show all cities belongs to "UAE" Thank you.
  2. @cstevensjr Yes same template, and there isn't any field have their own permissions, only seo tab fields are there (MarkSEO) Processwire version is 3.0.62 PHP version is 7.0.22-Obuntu0.17.04.1 MacOS Seirra 10.12.6
  3. @cstevensjr yes, you can see
  4. In PW I created a user 'tester' and gave the access to create edit and new. Issue is I'm unable to see 'edit' link in front of each page link and pages that i want to edit is already created. any help in this will be great help. Thank you.
  5. I've a simple scenario, i want to add two users "content_creator" & "content_publisher" content_creator can add new pages,edit them(only edit not publish) and view only where content_publisher can publish the unpublished pages after reviewing. Thank you.
  6. I've two templates, one is category (multi select check boxes) and one is result based on the selected category when I'm rendering result page all result is showing in every category, its not filtered each result should be belongs to the referenced category <?php $getCities = $pages->find("template=t3Cities_list, tags={$page->tag_code}, sort=title"); $getResult = $pages->find("template=attractions, tags={$page->tag_code}, sort=random"); ?> <div class="container"> <?php foreach($getCities as $city){ echo "<div class='row'>"; echo $city->title ; echo "</div>"; foreach($getResult as $result){ echo $result->title ; } } ?> </div> result should be like this Birmingham Oxford Street Louvre and Tuileries Dubai Gold Souk Dubai Mall paris Mercado de Motores Nómada Market
  7. My web app is done, and ready for production, how can i take my all data to production what are the best practices. I was exporting my "Fields" and importing into my production website but it says "Request Entity Too Large The requested resource /processwire/setup/field/import/ does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit. Apache/2.4.18 (Ubuntu) Server at 52.18.55.209 Port 80" This is my server limitations or what i don't know, or suggest me how to do that.
  8. 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
  9. 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?
  10. i added this parameter, working now JSON_UNESCAPED_SLASHES file_put_contents('posts.json', json_encode($json, JSON_UNESCAPED_SLASHES));
  11. @BitPoet Thank you for you quick reply, but see the output now after putting httpUrl { "title":"food and drink", "tag_url":"http:\/\/10.50.200.58\/en\/discover\/food-and-drink\/", "tag_img":null }, link is not formatted
  12. I've a template which basically consists of some fields (imgs,urls etc..). after loading page all data is coming and showing in "posts.json" file which is perfect, issue is title link and and image link is not in the format this is my json code for exporting the page data $getTags = $page->get("template=tags_template, include=hidden")->children("sort=title"); $json = array(); foreach($getTags as $tag){ $json[] = array( 'title' => $tag->title, 'tag_url' => $tag->url, 'tag_img' => $tag->categorythumb->url ); } file_put_contents('posts.json', json_encode($json)); and this is what i'm getting in .json file { "title":"food and drink", "tag_url":"\/en\/discover\/food-and-drink\/", "tag_img":"\/site\/assets\/files\/1471\/" }, see the output , title is fine. But links are not formatted should be like this http://10.50.200.58/en/discover/food-and-drink/ http://10.50.200.58/site/assets/files/1471/food-drink.jpg Any help would be appreciated. Thank you.
  13. I've a promotion page that i want to show on scheduler bases, Lets say i want my page "XYZ" should publish on Thu, 18 at 12:00am and unpublished on Web, 25 at 12:00am. is it possible in processwire?
  14. @BitPoet Thank you my friend, it's working. Appreciated