AndZyk
Members-
Posts
678 -
Joined
-
Days Won
10
Everything posted by AndZyk
-
I also wouldn't mind to see a hold on new features in trade for a new ProcessWire.com and finished AdminTheme. I think there are many people that judge by the first impression and are not willing to dig deeper if this impression isn't state of the art. Maybe we could develop a new style guide for the website and all the other websites evolving around ProcessWire. I am missing a consistency in the design there.
-
Those guidlines are for app developers. As a web developer I don't think this screen will be an issue. But I haven't seen yet a good screenshot of f.e. Safari on the new iPhone X.
-
Hello @SoccerGuy3, have you added a second language under "Setup => Languages" or have you just installed the language pack in the default language? You need to create a second language to use multilanguage. Regards, Andreas
-
I have tested it now with an clean installation and there it works like expected. That doesn't explain why it is not working for me, but at least it is not a bug. It seems to be something else interfering, I have to look a little bit. Edit: Okey I am absolutely clueless. I tried removing all modules and creating a new template and fieldset. I give up for now.
-
Sorry for bothering you again, but after I have grabbed the latest dev branch (with the five commits after the latest bump to version 3.0.74), I still have this behavior. It is not a real issue for me right now and if you want, I can create a new thread in the ProFields section. Just wanted to let you know. Keep up the great work.
-
Thank you for the fix. I tried to add the FieldsetGroup to my template inside the template configuration and saved, but it only adds the outer fields of the FieldsetGroup without the fields inside. Strange thing is, that when I deleted the FieldsetGroup from the template, the messages show that the missing fields inside the FieldsetGroup have been deleted as well. Here is a little screencast, to show what I mean:
-
Hello @suntrop, Yes, you can check or uncheck which templates should be cached. I don't quite understand, what you mean by that. But as long as it is a page, it can be cached. No, you don't need to change anything inside your templates. Pages with user input shouldn't be cached. Here is a quote by @ryan about this question: In my opinion ProCache is a awesome module and well worth the money. It helped me optimize many websites in just a few clicks. I can fully recommend it. Regards, Andreas
-
First of all thank you @ryan. This is why I love ProcessWire: The community requests a feature and instead of just realizing it, you come up with multiple solutions to this request. I have tried the new FieldsetGroup and it comes in really handy. I had only two issues: The bug @abdus mentioned earlier in line 475. I have commented it out in the module for now, to get the module working, but hopefully it wasn't anything necessary and will be fixed. Is it correct, that the fields inside the FieldsetGroup only get added to the template, if you use the actions tab inside the field configuration? I tried adding it in the template configuration, but it only added the fieldset, not the fields inside the fieldset. Maybe it is a bug, but I would have expected it to add all the fields. Regards, Andreas
-
Hello @fisnik, have a look at the $session variable: https://processwire.com/api/variables/session/ https://processwire.com/api/ref/session/ It works similar to a cookie, but lasts only as long as the browser is opened, as far as I know. If you want to save the cookie for a longer duration, I can recommend using JavaScript Cookie. Regards, Andreas
- 1 reply
-
- 1
-
Hello @hellomoto, the module info you provided doesn't produce this error on my installation. I have created a new module file and get only the warning about the missing dependency CatCoCustoms. What is CatCoCustoms? I couldn't find a module with this class name. Or is it a library? Also you should add the ProcessWire namespace on top of your file as a best practice. Regards, Andreas
-
How to restrict using veeeery long words on comments section
AndZyk replied to vadimmil's topic in General Support
Also the CSS property hyphens can come in handy, although it is not yet supported without prefixes. -
Adding to this, have a look at https://developers.google.com/search/docs/data-types/music.
-
Hello @SamC, I have never used this option, but you don't have to and shouldn't edit the contents.css inside the wire folder. Instead you can define your own stylesheet in the field settings: This file can then be inside site/modules/InputfieldCKEditor/contents.css. Regards, Andreas
-
Glad to hear it works now. If your site doesn't frequently change, there is an cache option available in the Typeahead plugin: But use whatever works best for you.
-
Just a quick heads up: Bower is sadly becoming obsolete. The developers of bower recommend: I have settled with Yarn for now, a better package manager for node modules by Facebook, Exponent, Google and Tilde.
-
Hello @louisstephens, you could use a GET parameter inside your redirect. For example: <?php $session->redirect($dash . "?alert=success"); // On your dashboard template file if ($input->get->alert === "success") { // Show your notification } If you plan to build a login be sure to use CSRF and maybe honeypot validation: Regards, Andreas
- 4 replies
-
- 3
-
- notification
- login
-
(and 1 more)
Tagged with:
-
Thank you for mentioning. I have mentioned earlier in this thread, that Guetzli is in the newest alpha of ImageOptim included, but forgot to spread the news that it is now in the stable version as well. I am using Guetzli with ImageOptim for a while now and yes it is really slow and if you dare to optimize a lot of high quality images, be ready to get your fan heated up. But on the other hand I usually have a optimization rate of about 60%. Compared to the about 20% when Guetzli is disabled, I think it is absolutely worth it.
-
I have tested your JS it is working fine for me. The fact that your input makes an Ajax request (even if it is empty) is also a good sign. With the debug option set to true I also don't get any informations inside the console, probably because it is working. You could try to make an regular Ajax request and echo a static response first to test. Also you could try to exactly copy & paste my example from the tutorial mentioned above. Lastly I hope you didn't have exactly copied & pasted my Ajax example, because the selector in there is just an example and doesn't really work. If you don't get any further, you can PM me more of your code or an link, in case your site is online.
-
Hello @dragan, happy to hear that you find this tutorial useful. At the time of writing this tutorial I didn't knew how easy you can output your own JSON without a module. Currently I don't need the Pages2JSON module anymore, but instead output the JSON inside my search template like this: <?php if ($config->ajax) { $selector = [ "title|and|more|fields%=" => "", "template!=" => ["templates", "to", "exclude"], "has_parent!=" => 2 ]; $matches = $pages->find($selector); $results = array(); foreach ($matches as $match) { $result = array( "title" => htmlspecialchars_decode($match->title), "url" => $match->url ); $results[] = $result; } header("Content-Type: application/json"); echo json_encode($results); return $this->halt(); } else { // Your regular template This way you build your own array with all necessary keys and then encode them as JSON. Regards, Andreas
-
Hello @dragan, here is a tutorial by me about this topic: Regards, Andreas
-
Thank you @ryan for your work on the export/import feature. Besides the great module I am really looking forward to learn how to import JSON trough the API. In my case JSON from a different source other than ProcessWire saved into a JSON file located on the server. Maybe somebody has already played around with the PagesExportImport class and would like to share an example.
-
Hello @ryanC, you can also use the shorter version <?=$urls->templates?> since PW 3.0.50. Regards, Andreas
-
Hello @Peter Knight, as long as you don't mix both versions in your internal links or XML sitemap, I don't think it is bad. Here is what Google writes to this topic: Or could you please explain a little further or provide an link, why it would be "obviously bad"? I am no SEO expert, so that would interest me. I have never changed the default setting for URLs and never experienced an downside from it. Also search engines maybe indexing both versions both show only the version with slash as results. Regards, Andreas Edit: I have missed, that your URLs do not redirect.
-
Ah okey, I should have read more carefully. Do you want for example four random images, even if they are from the same album? You could try to achieve this by an selector: Or if you don't want the case of four random images from the same album to happen, you could use further: <?php foreach ($page->repeater_gallery->getRandom(4) as $item) { $randomImage = $item->album_images->getRandom(); echo "<img src='{$randomImage->url}'>"; }
-
Welcome @jothanne, you could use getRandom for this task: <?php foreach ($page->repeater_gallery->getRandom(4) as $item) { // Your output } Regards, Andreas