-
Posts
2,960 -
Joined
-
Last visited
-
Days Won
20
Everything posted by szabesz
-
@deltavik Hi, In case you are interested, there is a recently "released" Site Profile (by @clsource) which has tags already implemented (though no categories, but they can be added in a similar manner). This is just one example, but a good one:
-
Well, I did not explain it properly by saying "same behavior as before". Before what? Sorry for this! What I meant was that it is back to normal, it works as it used to work in previous versions before you had "made it disappear"... I do get "Template compiling is disabled, so the variables could not be determined." in the panel. Huh Isn't it faster if you do a search on the page(s) in the browser? You get all the words "template" highlighted and can just fix them. There aren't too many
-
Thanks, we have the same behavior as before, with an added hint on what is going on. I also tried bd() in the Console Panel, but I can only get API variables, not template file variables. Am I missing something? Should't it work with variables defined in the template file? BTW: in various places of the module and its docs you refer to "template file" as "template". It is quite possible to decipher what you mean in the given context, however it can be confusing, particularly to beginners. I know it is quite natural to shorten the term "template file". We have to live with it, but still...
-
@Matt_P How about this one? http://blog.mauriziobonani.com/processwire-basic-website-workflow-part-2/ This is part of a four part tutorial: http://blog.mauriziobonani.com/tags/#processwire
-
Problem with the default language of the "guest" user
szabesz replied to A.Schmidt's topic in Multi-Language Support
Thanks @Sérgio ! @A.Schmidt Recommended searches on the subject: allintext: language site:ProcessWire.com/blog site:processwire.com/talk default language -
Just for the record: Adrian's Tracy Debugger module has smiliar features:
-
Thank you very much!
-
Problem with the default language of the "guest" user
szabesz replied to A.Schmidt's topic in Multi-Language Support
Others with more experience in this field might correct me, but I do not think that Admin -> Access -> Users -> guest -> Language is for changing the default language of the frontend. It is for backend only. Since a guest user cannot access the backend, it is kinda useless in this case. But I might be mistaken. Anyone else? -
Thanks for fixing it! BTW, I have noticed that in this new version the whole Variables panel disappears when there is nothing to show. It is even gone from the Panel Selector in that case. Isn't this behavior misleading? After all, those who have not read this: "This panel only works with PW 3.x and with templates that use the file compiler." might never realize why this panels does not show up even when it is added in the Settings. In the previous version it appeared without the variables of course, which was also a bit of a mysterious behavior, because of the missing info on why there were no variables listed.
-
@clsource I found that namespace Processwire; is missing form _main.php which can lead to Fatal Error when the compilation setting of a template is set to either Yes (template file only) or No (disabled compiler).
-
Just for the sake of completeness; the Fatal Error is not related to Tracy, so I even get it with the option No (disabled compiler) too. Edit: one of the template files was missing "namespace Processwire;" so that is why wireRenderFile() was not found.
-
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.