-
Posts
1,065 -
Joined
-
Last visited
-
Days Won
11
Everything posted by Zeka
-
@Marc I think you can do the same with hosts.
-
[Solved] Preview of hidden/unpublished posts throws 404 error
Zeka replied to rash's topic in Getting Started
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"); } -
Hi @Mustafa Online Yes, you can do it. Take a look at these similar topics:
-
Hi @Alxndre' Not sure, but looks like you should use sub-selectors in this case https://processwire.com/api/selectors/#sub-selectors
-
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(); }
-
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.
-
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/
-
Hi @kongondo Is there any news about your module?
- 11 replies
-
You could try to use grayscale() method of PageImage Manipulator module
-
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;
-
User Profile Tabs, Markup-Regions & The Lack Of Tuts?!
Zeka replied to Mustafa-Online's topic in General Support
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.- 5 replies
-
- 2
-
- user profile
- tabs
-
(and 1 more)
Tagged with:
-
User Profile Tabs, Markup-Regions & The Lack Of Tuts?!
Zeka replied to Mustafa-Online's topic in General Support
So create tab fields and add them to user template.- 5 replies
-
- user profile
- tabs
-
(and 1 more)
Tagged with:
-
Hi @ridgedale It looks like namespace issue. Try to add namespace Processwire; to the top of your blog-post.php file
-
User Profile Tabs, Markup-Regions & The Lack Of Tuts?!
Zeka replied to Mustafa-Online's topic in General Support
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/- 5 replies
-
- 2
-
- user profile
- tabs
-
(and 1 more)
Tagged with:
-
Go to templates -> yourtemplate -> cache tab
-
You can do it in template settings -> cache tab
-
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.
-
For sure it would be a great addition to WireArray API.
-
Or $config->templateCompile = false https://github.com/processwire/processwire/blob/master/wire/config.php#L347
-
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.
-
Hi @theo There is ProDraft module in the store which may suit your needs.
-
How to find usernames by userid array, return as key value array
Zeka replied to modifiedcontent's topic in General Support
Also, there is more API-styled way to get flat array of id => name $pages->find('id=' . join('|', $userids))->explode("name", ["key" => "id"]); -
Could you please share your tree view for these pages.
-
ERROR Call to undefined function ..from an include file
Zeka replied to Pixrael's topic in General Support
Are you sure about namespaces? Do you declare them in _header.inc.php? -
ERROR Call to undefined function ..from an include file
Zeka replied to Pixrael's topic in General Support
@Pixrael Do you have _init.php or similar that set in ? $config->prependTemplateFile = '_init.php'; Could you try to include your _func.php there?