Jump to content

Zeka

Members
  • Posts

    1,065
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Zeka

  1. @Marc I think you can do the same with hosts.
  2. Hi @rash Maybe you should include include=all to your child selector like if($user->isSuperuser()) { $post = $pages->get("/kompendium/")->child("name=$name, include=all"); } else { $post = $pages->get("/kompendium/")->child("name=$name"); }
  3. Hi @Mustafa Online Yes, you can do it. Take a look at these similar topics:
  4. Hi @Alxndre' Not sure, but looks like you should use sub-selectors in this case https://processwire.com/api/selectors/#sub-selectors
  5. Hi @joe_g Maybe you can loop over all your page and just save output of your markdown field to the newly created ckeditor field $yourpages = $pages->find("template=some"); foreach($yourpages as $p) { $p->ckeditorfiedl = $p->oldfield $p->save(); }
  6. Hi @Kass Solution mostly depends on your menu implementation. As for me, when I have some complex menu system, usually I build it with repeater field. For every menu item I have Selector field ( InputfieldSelector ) where I define selector when current menu item will be active, and then in my code I use $page->matches($selector); https://processwire.com/api/ref/page/matches/ In that way, I can set the active state for every menu item even if the current page is not under current parent.
  7. Maybe you can create separate template for participants, wich will contain all needed field for it. In your event template add page field (Autocomplete or InputfieldChosenSelect) and allow a creation of new pages through this field. So, if your participant is registered you would select it, but if not, you can just enter a name of this participant and add it to the list, but for the next event it will be already in the list of your participants ( will contain only name ). In that way, all of the partisipant will have some unique identifier and it will be quite easy to count them https://processwire.com/api/ref/wire-array/unique/
  8. You could try to use grayscale() method of PageImage Manipulator module
  9. Hi @thmsnhl Have you seen this thread? There is an example that you may find useful $events = $pages->find("template=sectionItem, parent=1025|1066|1073|1069|1013|1247|1101, sort=startTime, start=10, limit=3"); $events_array = array(); foreach ($events as $event) { $start = "".date(strtotime($event->startTime)).""; $title = $event->title; $events_array[] = array( 'title' => $title, 'date' => $start ); } $events_json = json_encode($events_array, true); echo $events_json;
  10. Yes, you are right, I have tested it, and I also get fields in tabs shown as collapsed fieldset. There is similar topic opened by @gebeer I don't know if it is feature or bug, so maybe somebody from more experienced members will clarify it.
  11. So create tab fields and add them to user template.
  12. Hi @ridgedale It looks like namespace issue. Try to add namespace Processwire; to the top of your blog-post.php file
  13. Hi @Mustafa Online 1. User is a template, so you can add your custom fields to it. You have to choose "Show system templates" in the template manager. 2. Take a look at the latest blog post from Ryan where he cover how markup regions work on the current master branch http://processwire.com/blog/posts/processwire-3.0.62-and-more-on-markup-regions/
  14. Go to templates -> yourtemplate -> cache tab
  15. You can do it in template settings -> cache tab
  16. Hi @franciccio-ITALIANO You can look for cache files in site/assets/cache/Page But there will be files only if your template cache is on. About modules: First is to manually create DB backup, but the second one is to trigger backup creation periodically. You can install and use only the first one. But if you want to use second, you have to install also the first, because it depends on it.
  17. For sure it would be a great addition to WireArray API.
  18. Or $config->templateCompile = false https://github.com/processwire/processwire/blob/master/wire/config.php#L347
  19. Hi @nabo You can use http://modules.processwire.com/modules/process-admin-actions/ By default, it includes Page Active Languages Batcher that lets you enable or disable active status of multiple languages on multiple pages at once.
  20. Hi @theo There is ProDraft module in the store which may suit your needs.
  21. Also, there is more API-styled way to get flat array of id => name $pages->find('id=' . join('|', $userids))->explode("name", ["key" => "id"]);
  22. Could you please share your tree view for these pages.
  23. Are you sure about namespaces? Do you declare them in _header.inc.php?
  24. @Pixrael Do you have _init.php or similar that set in ? $config->prependTemplateFile = '_init.php'; Could you try to include your _func.php there?
×
×
  • Create New...