AndZyk
Members-
Posts
722 -
Joined
-
Days Won
10
Everything posted by AndZyk
-
I started to get my hands on hooks for the first time and think that Captain Hook (like the Cheatsheet) are great resources. Unfortunately (or fortunately if you want) has the documentation inside the files moved the line numbers of the linked hooks, so that the links on Captain Hook don't point to the right direction anymore. Also they use the old repository. If the links could be updated, that would be great. To be future-proof I saw recently this thread: Maybe with APIGen and the API Reference there is not much need for Captain Hook anymore, but as it is cross linked in many places (f.e. AdminThemeReno), this would be great for beginners like me. Regards, Andreas
-
Interesting thread and nice picture. Maybe you should make a request for ProcessWire to include more breast hair. In my case, I was introduced to PW by an co-worker who saw, that it won the CMS Critic 2014 Award for Best Free PHP CMS. At this time he was looking for a flexible field based CMS similar to Contao, which we used before. I quickly became a fan, because I only used to know WordPress and enjoyed the freedom I had as an developer + the friendly community. Or like The Hoff used to say:
-
Thank you for clarifying. I never developed a module or tried the Smarty for the TemplateEngineFactory module, so I'm not very helpful. But here are some ways on how to bypass the file compiler. Maybe adding // FileCompiler=0 in your module files will do the trick. Also there is a core module File Compiler Tags which is maybe similar to Smarty. As to your question on how to develop modules using an IDE, the latest blog posts could be interesting for you: https://processwire.com/blog/posts/processwire-3.0.39-core-updates/ https://processwire.com/blog/posts/processwire-3.0.40-core-updates/
-
Hello @floridaDev, if you try to find thousands of pages, have a closer look at the findMany-function. Also can PHP7 boost your performance significantly, if its available for you. Regards, Andreas
-
Welcome @LimeWub, that is what the module compiler is for. If you are using PW 3.x.x it adds the ProcessWire namespace to the module files to make them compatible with PW3. If you don't want to deal with namespaces there is also PW 2.8.x available. But it is only recommended to use for existing projects. For new projects PW 3.x.x is the way to go. If you want to disable the module compiler, you would have to add the namespace in the module files by yourself to resolve the issues you mentioned above. But do you want to debug modules or are you trying to debug your template files? If that is the case, you could try to disable the template compiler in your config or in your templates. Regards, Andreas
-
ServiceWorker - Gives websites the power of native apps, like push notifications, background sync and offline experience. Here is an funny and informative introduction.
-
Your if-statement probably has not worked, because you don't have an input type submit in your form. Instead you have an button with the type submit. Then your original if-statement should work. if ($input->post->submit) { // Form was submitted } else { // Form wasn't submitted } Also I would recommend again to get and sanitize the input from code like mentioned above. Especially if you want to use it as a page name, the corresponding sanitizer is meant for this. You can set a new value for an existing field using the API like this: $p->of(false); // Shortcut for setOutputFormatting(false) $p->set("title", $sanitizer->text($input->post->title)); $p->save();
-
Your code seems to be right. Only things I would recommend: If you want to use a number as input, there is an input type number for that. You could get and sanitize the input using the API: $code = $sanitizer->pageName($input-post('code')); Have you tried your code with static values without the form? If it works this way, it may be your form. Regards, Andreas
-
Have you tried the table-option inside CKEditor? I find it really good for simple tables like yours. Just insert a table and anything you need to adjust after inserting can be achieved trough right clicking inside the table (insert, connect etc.). No need for HTML knowledge. For more complex tables there is of course ProFields Table, but for your needs it should be enough. Regards, Andreas
-
Hello @mangopo, either you can make your existing site responsive using media queries or you can build an mobile version of your site. There are pros and cons for each approach, but I would recommend responsive design over an mobile version. If you want to learn more about this topic, there are many resources available, which explain it in depth: Responsive Design with CSS3 Media Queries Responsive Web Design: What It Is And How To Use It Regards, Andreas
-
Not automated, but a great set of resources: Devices by Facebook.
-
...Or not deleting this file in the first place. But glad you found it.
-
Hello @microcipcip, I believe Ryan meant any change of the files. It is not recommended to track assets or uploads folders, because they can easily bloat your commit history and even worse you could grow a repository over 1 GB. Tracking the database would require you to make always dumps of it. Even though you could automate this, I also don't recommend it, because it could bloat your commit history too. If you need inspiration of a .gitignore file, there is a popular GitHub-repository with templates for other systems. Maybe ProcessWire could be added too. Regards, Andreas
-
That is interesting, because it doesn't show anything at all. If it would be an .htaccess-error, at least an 500 error should be thrown. But it doesn't seem to be, because your front end works properly. PHP 5.3.8 and 5.4.45 are already outdated versions, but they should be supported. Preferably your hoster should offer at least PHP 5.6.x. You can always make sure to have the right PHP version running, by uploading an file f.e. info.php with the phpinfo-function in it. After checking, be sure to delete it, because it offers potential attackers an insight to your server environment. Maybe someone else has more info on this issue. Nice site by the way.
-
Hello PawelGIX, have you tried to enable debug mode, to see more details? Of course the debug mode shouldn't be enabled on a live site, but you could enable it just for a short time, until you know the issue. Regards, Andreas
-
@Juergen Sorry for being off-topic, but if you like UIkit, you should look out for UIkit 3. I am excited.
-
Page "published" field in database - is it accessible?
AndZyk replied to BrendonKoz's topic in Getting Started
Sorry for the late answer. I don't exactly know the "internal uses", other than ProDrafts makes use of it. Maybe thats all it is used for, but if not it is best not to mess around with it in my opinion. -
Hello Beate, maybe this will help you: $films = $pages->get("/filme/"); foreach ($films->children as $category) { foreach ($category->children("sort=random, limit=2") as $film) { echo $film->title; } } It is not necessary to add all pages to one array, you could just loop trough them, if I understood you correctly. Regards, Andreas
-
Hello Jozsef, for the generation of many large image variations, ImageMagick comes in handy. Of course you have to enable it first on your webspace, but most hosters have an manual for the activation, if they support it. Usually I visit the page I added images in to generate the variations. You could probably achieve this also by an hook. But for me it seems more natural to check the changes I made after saving a page. For the lazy loading of images in the front end, I can highly recommend using the plugin lazysizes. It is easy to setup, supports responsive images, background images and so on. There is also the module Markup SrcSet, which uses lazysizes. Regards, Andreas
-
Hello, I recently submitted an site to the Sites Powered by ProcessWire area. Shortly after submitting I noticed, that my description of this site is not complete. But the site was already submitted. Since there is no option to modify this entry, who can I ask to change it or should I submit the site again with the corrected description? It would be nice, if someone could help me out. Regards, Andreas
-
Thanks for remembering. I was aware of the error, but hadn't figured out how to fix it. Turns out, that the fullPage-Plugin didn't needed the slimScroll-Plugin anymore in the newer version. It should be fixed by now. About the missing content: That is intentional, as it only should be revealed after clicking either the logo, toggle icon or container. If you notice anything else, please let me know.
- 2 replies
-
- farmhouse
- black forest
-
(and 1 more)
Tagged with:
-
For everyone interested: CodeKit 3 is out now. I know, that everything CodeKit does, can be achieved using an IDE, Grunt, Gulp, CLIs and so on. But CodeKit provides a good starting point for beginners, in my opinion. Regards, Andreas
-
Thank you, I did not knew about this option. That works for me.