-
Posts
192 -
Joined
-
Last visited
-
Days Won
3
Everything posted by markus_blue_tomato
-
Hi @adrian thanks... something is wrong with my forum account. I can't edit my posts, I can't edit my profile (picture etc.) and on the module page I am not visible ad author of the module... do you know what could be wrong?
-
ElasticsearchFeeder This ElasticSearch module for ProcessWire will sync your page content to an ElasticSearch index, which provides you a convenient way to search it. Thanks to @jonathan-dart who created the first ES Module for PW and which influenced us a lot. Our approach was to create an a module where we can make for each template a flexible schema. You can define on you own which data ind which format should be transfered to ElasticSearch. Github Page: https://github.com/blue-tomato/ElasticsearchFeeder Module Page: https://modules.processwire.com/modules/elasticsearch-feeder/
- 9 replies
-
- 13
-
node-processwire-logger Node.js module to log directly into the ProcessWire CMS/CMF log. Why? We had an use-case where we pre-generate static html pages from ProcessWire with ProCache and some internal node.js generator script. We thought it would be helpful to log errors when something goes wrong in the generator-process directly to the ProcessWire log. For this reason we created this Node.js Package. Github Page: https://github.com/blue-tomato/node-processwire-logger NPM Page: https://www.npmjs.com/package/node-processwire-logger
-
TemplaneEngineMustache This module adds Mustache as engine to the TemplateEngineFactory. Project page in Github: https://github.com/blue-tomato/TemplateEngineMustache/ Module Page: https://modules.processwire.com/modules/template-engine-mustache/
-
okay this is not an bug in the module. this happens also with native redis php session store and also with memcached. I have filed a PW bug: https://github.com/processwire/processwire-issues/issues/798
-
Hi @netcarver I run into a very strange bug with SessionHandlerRedis which I documented as github issue: https://github.com/netcarver/PW-SessionHandlerRedis/issues/5
-
Hi, I have tried to install the module and got an error. full report: https://github.com/karltdev/SessionHandlerDBRedis/issues/1
-
Module: Smarty for the TemplateEngineFactory
markus_blue_tomato replied to Wanze's topic in Modules/Plugins
Is there a way to use https://www.smarty.net/docsv2/de/api.register.function.tpl with this module? Can I access the $smarty class? -
$pages->find("template.name=songs, title=Last Christmas, band=Wham")->play(); // sorry for trolling ;-)
-
Load Balancing Processwire Help
markus_blue_tomato replied to cosmicsafari's topic in General Support
I've tried some experiments with Processwire on Heroku (with multiple Dynos). It worked - I used For Sessions: Heroku Redis + https://modules.processwire.com/modules/session-handler-redis/ + https://elements.heroku.com/addons/heroku-redis For Uploads: Amazon S3 + https://modules.processwire.com/modules/amazon-s3-cloudfront/ For the DB: https://devcenter.heroku.com/articles/jawsdb-maria- 4 replies
-
- 3
-
- load balancing
- help
-
(and 5 more)
Tagged with:
-
anything news about sessionles requests?
-
Thanks! I tried this and it works great (example): $field->useRoles = 1; $field->editRoles = array('author'); $field->viewRoles = array('translator', 'author'); But I decided to solve it in an other way - because I have an hook where "translator" have also edit right to the field. The user only should not have write-access in the GUI to it. I solved this with the "Visibility" setting. Namend "collapsed in the API: $field->collapsed = 7;
-
I want to create a field, which I add later to a template. How can I set the access-rights only to superusers? I want, that this field is only visible to superusers. And my second question: Is it possible to make the field also read-only in the frontend but write-able from the API? $field = new Field(); $field->type = $modules->get("FieldtypeText"); $field->name = "my_field"; $field->label = "My Field Label"; $field->value = ''; $field->save();
-
New post: Rebuilding processwire.com (part 2)
markus_blue_tomato replied to ryan's topic in News & Announcements
oooooh yess -
And this is my var_dump vom the image field: object(ProcessWire\Pageimages)#1233 (6) { ["count"]=> int(0) ["page"]=> string(66) "/en/blue-world/snowboard/nash-finale-2018-next-austrian-snow-hero/" ["field"]=> string(17) "news_previewimage" ["url"]=> string(24) "/site/assets/files/2746/" ["path"]=> string(37) "/var/www/html/site/assets/files/2746/" ["items"]=> array(0) { } }
-
I have an hook in an module, where I do some URL manipulation on my Imagefiles. This works really nice in the frontend. (e.g. add query parameters) /* ... some module code... */ public function init() { $this->addHookAfter('Pagefile::url', $this, function(HookEvent $event) { if(!$event->object instanceof Pagefile) { return; } $file = $event->object; $fileBasename = $file->basename; $event->return = $fileBasename . '?lorem=ipsum'; }); } Now I'm developing an module where I send my pages to ElasticSearch after saving the page with an Hook after the save. public function init() { $this->pages->addHookAfter('save', $this, function(HookEvent $event) { $page = $event->arguments[0]; // hook does not form. query parameters are not added $image = $page->my_image_field->url; }); } But within the Page::save Hook, the Pagefile::url Hook is not executed. The whole module init from the Pagefile::url is executed but the Hook itself not. Does anyone know what I'm doing wrong? Or is this not possible?
-
I'm want to set up access rules for my translators. I followed the steps in this article: https://processwire.com/blog/posts/language-access-control-and-more-special-permissions/ After setting this up. My French translator can't see the input from other languages for multilanguage fields. No English, no German, only French. Is it possible to give someone the rights to see the english input and only write to french? This would be much more easy to translate the content from english to french.