-
Posts
80 -
Joined
-
Last visited
Everything posted by pmichaelis
-
@thomasaull the vagrant instance is using an apache. Well, it works now with my modifications of the Router.php. PHP Version is 7.2.
-
Hey Thomas, I had some issues yesterday with the jwt-authorization. On a local development server (vagrant, ubuntu, apache). The authorization headers were empty. Therefore the getAuthorizationHeader method in Router.php returned null and the token was not returned. I made a small modification to the method and it works for me. Perhaps it is not the cleanest way, but it's ok for now. Just to let you know. // apache if (strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false) { foreach (apache_request_headers() as $key => $value) { $headers[strtolower($key)] = $value; } } else { foreach ($_SERVER as $key => $value) { $headers[strtolower($key)] = $value; } }
-
Hey, Thanks for that module. in the module description it says: Authorization: JWT To use JWT-Auth you have to send a GET Request to http://yourhost/api/auth with two parameters, username and password. The API will create and return you the JWT-Token which you have to add as a header to every following request: Actually I think it has to be a POST Request. In the "DefaultRoutes" the Route is defined like this. ['POST', '', Auth::class, 'login', ['auth' => false]],
-
Thanks!
-
Ah, ok. Sorry, I used an older version. But upgrading seems impossible due to requirements ...
-
Hey, thanks for this module and your work. Is there a way for managing permissions for the general settings page? I editied the module itself ans set up a custom permission, but it doesn't seem to work.
-
Hey there, Great module. Thanks for the functionality. I am using checkboxes of a multi-lang page reference field in the subscription form and I was wondering if multi-lang fields are supported by default, because the checkboxes are not translated. The Label of the field is translated correctly, but not the rest. Thanks for some information.
-
Module: AIOM+ (All In One Minify) for CSS, LESS, JS and HTML
pmichaelis replied to David Karich's topic in Modules/Plugins
Some more Infos for the cssmin errors using php7 https://github.com/nystudio107/minify/issues/8 That seems to fix the errors -
FieldtypeHandsontable: Excel-like Inputfield
pmichaelis replied to bernhard's topic in Modules/Plugins
Hey Bernahrd, really good work. Thank you so much for your effort! -
Module: AIOM+ (All In One Minify) for CSS, LESS, JS and HTML
pmichaelis replied to David Karich's topic in Modules/Plugins
Wanted to let you know, that I had some issues with AOIM running php 7. Error messages were generated because of non well formed numeric values. Maybe the issues are bound to my hosting environment. The following changes resolved them Changend line 775 in /site/modules/AllInOneMinify/lib/cssmin.php to: return intval($size); Changed line 713 in site/modules/AllInOneMinify/AllInOneMinify.module to $_timestamp = intval($_timestamp . $file['last_modified']); -
Ok, thanks for the reply. I was just wondering, because the modal dialog keeps all these options. An altnernative would be to store the data (url, title, rel, target) as json in order to have them.
-
Sorry, that I need to post my question again. Is there a chance for storing these values to the db?
-
Hey, thanks for that module. Maybe I missed something, but how to get the propoerties, like target, title, or rel in a page template? Are these values stored anywhere? Thanks for help.
-
Hey kongondo, I downgraded to 2.7.2 and the descriptions work ... Thanks for that.
-
Sorry, I still can't figure it out. All the descriptions are not displayed as HTML. A can't update Menu Item, or anything else. Does anyone have a hint for me to solve this?
-
Hey, thanks for your fast reply. I attached a screenshot with my current setup. You are right, the page is multilingual. Maybe you cna give me a hint, how I can solve this? It seems, that the HTML is not rendered correctly. I tried to edit the HTML of the decription field and put Markdon tags in the description, which are displayed correct.
-
Hey kongondo, thanks for thi great module again. A few days ago I figured out, that the output of the main menu builder header is not formated in html. Maybe it has to do with some other modules installed, because I never had the issue, that the output is not "rendered" as HTML. Does anyone else have this issue, too?
-
Love it! Great work.
-
Hi, is there a possibility to have multiple marker icons? Right now I have "locations" pages, that belong to a category. Depending on the category I want to show different marker icons. echo $map->render($locations, 'geo', array( 'icon' => $icon, 'markerTitleField' => 'title', 'useMarkerSettings' => true, 'fitToMarkers' => true )); Thanks for any help.
-
Sweet! Thank you very much!
-
Hey Sebii, thanks for your help, but I could not figure it out. foreach($product->image as $image) { $image->tags = "tag1 tag2"; $page->images->add($image->url); } $product->imgae is an external array of images. It has nothing to do with the page images. So there is nothing like $image->tags.
-
Hey, I would like to add tags to an image field upload via api. Does anybody have some information on that? im using the following code to update images on a page. # remove images if(count($page->images)) { $page->images->deleteAll(); $page->save(); } # upload images foreach($product->image as $image) { $page->images->add($image->url); $page->images->tags = ? // not working } $page->save(); During Page Update the backend says: Session: Item 'tags' set to ProcessWire\Pageimages is not an allowed type Thanks for help.
-
Hey kongondo, Thank you very much for this great module. Currently I am using it to buil ddropdown navigations and I would like to know if there is somethin planne like an "active trail" (class names) for the parent list items. for e.g. - Blog (active trail) - Blog Post (active) thanks for any information.
-
@steevooo If it is just about storing local configurations you can also use config-dev.php in your sites folder and put this file in the .gitignore https://processwire.com/api/variables/config/
-
Thank you! Your were right about the field renaming. Using PW 2.7.2. by the way. Works like charm.