-
Posts
1,065 -
Joined
-
Last visited
-
Days Won
11
Posts posted by Zeka
-
-
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"); }
-
2
-
-
-
2
-
-
Hi @Alxndre'
Not sure, but looks like you should use sub-selectors in this case
-
1
-
-
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(); }
-
3
-
-
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.
-
1
-
-
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
-
1
-
-
Hi @kongondo
Is there any news about your module?
-
You could try to use grayscale() method of PageImage Manipulator module
-
3
-
-
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;
-
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.
-
2
-
-
So create tab fields and add them to user template.
-
Hi @ridgedale
It looks like namespace issue. Try to add
namespace Processwire;
to the top of your blog-post.php file
-
1
-
-
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/
-
2
-
-
Go to templates -> yourtemplate -> cache tab
-
You can do it in template settings -> cache tab
-
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.
-
3
-
-
Hi @theo
There is ProDraft module in the store which may suit your needs.
-
Also, there is more API-styled way to get flat array of id => name
$pages->find('id=' . join('|', $userids))->explode("name", ["key" => "id"]);
-
2
-
-
Could you please share your tree view for these pages.
-
Are you sure about namespaces? Do you declare them in _header.inc.php?
-
3
-
-
Do you have _init.php or similar that set in ?
$config->prependTemplateFile = '_init.php';
Could you try to include your _func.php there?
WireMailSmtp
in Modules/Plugins
Posted
@Marc I think you can do the same with hosts.