-
Posts
2,920 -
Joined
-
Last visited
-
Days Won
17
Everything posted by szabesz
-
Hi, You can just use a general image (as a placeholder) from your .../site/templates folder when an image is non-existent. You can check the existence like: if($page->image) { // an image is present } https://processwire.com/api/fieldtypes/images/ If you do not resize an image, via what sort of link do you want to "link to" a nonexistent resized version of it? Sounds like a contradiction. Am I missing something? As far as the speed of image resizing is concerned, if you have ImageMagic on the server and you are using the latest 2.8.x or 3.0.x versions ProcessWire, you might be able to solve it by enabling the IMagick module: https://processwire.com/blog/posts/processwire-3.0.10-expands-image-resize-options/
-
Sorry, I was on mobile, and could not spend too much time on my reply. Actually, I was talking about the thumbnail list vs the simple but compact list I requested. If I understand you correctly, we are talking about two different representation of the same list (tree). One with image thumbs, the other one is without the thumbs. Of course, you can use small top/bottom padding regardless of the presence of the thumbnail images, making the list compact no matther what. It just won't be too "compact" with the otherwise optional thumbnails, right?
-
Thanx in advance! Are you planning to make it adjustable on the fly? I mean not just in the module's settings (preferred default), but right on the page of the page list too. If we can stick to one setting only, then it is not so versatile.
-
@adrian Hello Adrian, I have an issue to report, Error: VariablesPanel: This is my setup: Ghost Blog Clone by clsource: ProcessWire 3.0.28 and Tracy Debugger 2.5.4 so everything is the latest. In order to get the list of variables defined in the template file, I tried to turn on the compiler for the home template, based on this info: https://processwire.com/blog/posts/introducing-tracy-debugger/#non-processwire-template-variables-panel Home template: first I chose "Yes (template file and files included from it)". The result is what you can see in the spoiler. Next, I chose "Yes (template file only)" and in this case the result is even "worse", Fatal Error - undefined function wireRenderFile(): So this is a multilanguage setup, upon which I will probably build my future ProcessWire projects, so it will be nice to sort these out if possible. Maybe I'm missing something? Thanks in advance.
-
I like "DETECT" the way it is Maybe you just need to be more precise: "The DETECT option automatically switches from DEVELOPMENT to PRODUCTION mode (or vice versa) based on whether the IP of the site is publicly accessible or not."
-
The Page tree is a strange beast It works and it's usable but still... Anyway, thanks for putting my feature request on your todo list. I just want to save some scrolling. The Page tree of the Default Theme is more compact and I like it that way.
-
@tpr Good evening While tinkering with the settings it occurred to me that it would be nice to be able to adjust the height of the rows of the Pages tree. The Reno theme uses this: .content .PageList .PageListItem { border-bottom: 1px solid #e6ebf1; padding-top: 0.6 em; padding-bottom: 0.6 em; line-height: 1.3em; } Top/bottom padding with 0.3 em is quite usable too. Something like the "LongClickDuraton" inputbox would be nice to have to adjust this one too. What do you think?
-
No sign of any warning/notice anymore. Thanks a lot! I will probably turn this profile into a Foundation 6 based "base profile" of mine, in order to jump start my future projects.
-
Hello @Mercury and welcome to the forums, Do you really want to use MySQL queries? Why not the API instead? See, for example: https://processwire.com/api/selectors/ I do not know what you have read/watched so far, but probably the best article to start with is this one: https://www.smashingmagazine.com/2016/07/the-aesthetic-of-non-opinionated-content-management-a-beginners-guide-to-processwire/ A tutorial that I can also recommend (among other things it utilizes the twig template engine which you might not need, but other important concepts are also demonstrated): http://blog.mauriziobonani.com/processwire-basic-website-workflow-part-1/
-
I use PHP 5.6.10. I always set E_ALL in a development/testing environment (this is the case right now) so that I can tackle anything that is being reported
-
Actually, I've found that the Author's page (such as /authors/lewis.carroll etc...) also generates varous Notices because of the "missing cover image" and also because of if(!$title), if (!$description) and others.
-
I think it should be : if (!isset($canonical)) { $canonical = wire('page')->httpUrl; } You intention was to use wire('page')->httpUrl when canonical is not set/defined, right? The only page where it is set is the Author's (author.php). If I'm not mistaken...
-
@clsource It's me again You might want to add a "Cover image" to the About page too, otherwise we get "...Trying to get property of non-object in..." notices. It might even be good thing to first test if an image is uploaded or not, but this might be overkill since – in the case of a real site –, no one should forget to upload an image which is an integral part of the overall design.
-
Thanks for your help! It was another error I made. It was the value of $config->userAuthSalt that I did not copy over from your config.php.
-
Morning, I shouldn't have installed anything right before going to bed – Of course, it was the missing .htaccess file which I renamed to .htaccess.txt, so I managed to only prefix it with the dot... no comment About the !$canonical issue, I changed it to isset just to make sure I do not get any php error reporting, but to tell the truth I have not yet taken a look at the code at al. I will do so in the following days, because I'm interested in your Wire Render Pattern. BTW, one more issue to solve: are you sure that ghost/ghost.writer123 should let me in? It does not work, login fails.
-
@clsource I have installed the profile, however, I ran into two issues: And most importantly: the home page is the only one that works, otherwise I get "Not Found The requested URL /[ANY-PAGE-REQUESTED]/ was not found on this server." errors. Why? Thanks in advance!
-
Thanks a lot for sharing! I will definitely take a closer look at it as soon as I have the time.
-
Have you tried this app? https://glyphsapp.com/tutorials/creating-an-icon-webfont
-
Actually, I did liked/used them. It is a lot faster to just click without typing first. In my case the total execution time is the same, so I lost functionality, gained nothing. Can you please provide another setting to optionally turn it off? I'm thinking of beginners here. They also need these, while pros might not.
-
@adrian I always keep Validator and Diagnostics panels off, for the reasons you described. Actually, I only have 7 panels on, and use the very handy "sticky panel" feature when something else is needed. With this setup of mine, I always get something under 500ms execution time, with the overall page reload between 1 and 2 seconds (PHP 5.6.x). And this is on my local machine without any cache whatsoever.
-
Basic beginner question - setting defaults in init.php
szabesz replied to SamC's topic in Getting Started
@SamC If you need a template engine, there are maintained modules to build upon: Smarty, Twig, Jade and more: http://modules.processwire.com/modules/template-engine-factory/ Latte only: http://modules.processwire.com/modules/template-latte-replace/ Recommended tutorial to jump start: Basic ProcessWire website workflow http://blog.mauriziobonani.com/tags/#processwire -
@ryan "...Smashing Magazine actually has an article about PW (thanks to Francesco!), and they tweeted it out to nearly a million people, with our server having no problem whatsoever..." Actually, I was having trouble using the forum, with about 70% "timeouts". This happened when surfing normally from Hungary. However, I could use the forum without problems when connecting via TorGuard VPN (via a Chicago based server).
-
Basic beginner question - setting defaults in init.php
szabesz replied to SamC's topic in Getting Started
@SamC Welcome to the Forum! This might answer your question: https://processwire.com/api/types/nullpage/ more to read on the topic: https://processwire.com/api/ref/wire-data/ https://processwire.com/api/what/ -
Thanks, but why not on https://processwire.com/docs/tutorials/ ? It's a beginner's guide after all, with very important concepts to grasp. ProcessWire Reviews & ProcessWire Videos are sort of "hidden pages", I would expect them to be on the tutorials page, at least the Videos for sure. I keep forgetting that these pages are linked form "About".
-
Hi, You might also be interested in these, so that files cannot be accessed directly: or @Wanze's Secure File module: http://modules.processwire.com/modules/fieldtype-secure-file/ or: