-
Posts
2,922 -
Joined
-
Last visited
-
Days Won
18
Everything posted by szabesz
-
What if we have the same number of articles? It will overwrite the previous one, won't it?
-
And a simple logo for $3,050, that's cool too! I would be rich by now if I could charge like that... Anyway I like the site. It's just perfect to scare the hell out of my clients so that they can be pleased by my prices...
-
How to create reading book site with ProcessWire?
szabesz replied to Hector Nguyen's topic in Getting Started
As a simple example, let me show you the basic setup of a blog (simplified diagram of the blog profile I recommended above): It is a "UML like" diagram, where the yellow boxes are the templates, the blue ones are sample pages (they must be created in the Page Tree) based on the templates. Generally speaking whenever you can, you should set up parent/child relationships, because this is something ProcessWire handles well, out of the box. However, it is not possible to force all the required relationships into a tree, so we can also have "simple" one-to-one and one-to-many relationships via Attributes (Fields). A Field in ProcessWire has its associated "Input field type" (found under the Input tab of the field), which sets up the UI element used by the admin for the field. Quote: "Input field type: The type of field that will be used to select a page. Select one that is consistent with the single page vs. multi-page needs you chose in the "details" tab of this field..." Hope this helps. If not, I can mock up a similar diagram about your use case too. Answers to your questions: A1. Generally yes, but I recommend implementing something like you see above: parent/child for Books/Book, Categories/Category, Chapters/Chapter, etc.. and you can connect these via Attribute (Field) / InputField relationships. This is a much more flexible setup. A2. If I understand you correctly, you can do it if you use Attribute (Field) / InputField relationship, and by setting the field to "required". A3. Yes, a field. The simplest way to implement it is using the Options type: https://processwire.com/api/modules/select-options-fieldtype/ https://processwire.com/blog/posts/new-options-fieldtype-processwire-2.5.17/ Of course, you can also setup just another Field/InputField relationship, if you need more than a simple select. A4: Sure, it can: https://processwire.com/api/variables/ BTW, one more reading on the topic: https://medium.com/@clsource/understanding-processwire-templates-fields-and-pages-201aecd0a1a4#.gd0w6u9qw -
How to create reading book site with ProcessWire?
szabesz replied to Hector Nguyen's topic in Getting Started
Hello, Here is some theoretical background to start with: How to actually setup parent/child(ren) relationships: Best general introductory tutorials: http://blog.mauriziobonani.com/processwire-basic-website-workflow-part-1/ https://www.smashingmagazine.com/2016/07/the-aesthetic-of-non-opinionated-content-management-a-beginners-guide-to-processwire/ If you already have a little bit of developer backgound, I recommend checking out this profile: Even if you do not want to deal with the "Wire Render Pattern" implemented for the front-end, checking out the templates/fields of the profile demonstrates a great deal about how to set things up. -
Sure, it's a gfx only design clone to demonstrate @clsource's Wire Render Pattern:
-
The search inputfield starts to cover the System Notification indicator under 1040px, and yes, below 960px the search inputfiled is gone. I think it is just quite ok if you focus on a viewport wider than 959px, however, it would be nice to have an easy to access (toggle-) button which can be clicked on mobile to disable/enable the module "temporarily". It can even be useful on a desktop, in order to quickly check out the unmodified admin or vice versa.
-
@tpr I just want to say a big thank you! I'm back from holidays so I could actually update the module and it works fine so far. The new appearance of the normal Sticky Header (not the compact one) with the always show search field is my most favorite setting.The "dropdown" version of System Notifications is great improvement too. Just one issue I have: with the above mentioned normalSticky Header + always show search field setting I do not have access to the search field in narrow viewport, the search field simply disappears. All in all, you managed to improve the Reno Theme in such an extent that there is no more reason to prefer the classic admin theme to it.
-
I haven't used XAMPP not AMPPS for ages, however I've been using MAMP Pro for a while without any serious issues. Something worth mentioning is that MAMP Pro's PHP Mode called "Individual PHP version for every host (CGI)" does not work in the case of "some sort of AJAX responses", which I have not yet tried to figure out why, but most of the time it works and when it does not, I just switch to the other option temporarily ("no CGI" i.e. module).
-
I tried Chrome's "Empty Cache and Hard reload", Incognito and another browser too. Maybe not the best, but with a _blank target it should do. I support the icon idea too, that is something obvious and normally we have enough room for it, I suppose. I just always forget long clicks, modifiers and such. I use so many of them anyway, that I find hard to remember those I do not use often, and this is such a case (at leas for me).
-
@tpr I have an issue to report. I always enable the System Notifications module by default, I like it a lot better than the "classic" way... AOS always(?) stopped the admin from being able to display the notifications when the option "Compact header" was on (in other words, when I turn this option on, no notifications are seen anywhere), so I dit not turn it on, after all, I can live without it. However, (probably after the last update) the Sticky header "fell apart" too. Please check this out: I cleared the browser's (Chrome) cache to no avail.
-
@tpr This is way cool, really! However, why do we need ctrl? I always forget such hidden features. Simple left click? At least optionally?
-
Thank you very much, Sir! Double like Have a good night!
-
@OllieMackJames Are you looking for something like these? <?php echo parse_url($page->httpURL,PHP_URL_HOST); ?> or <?php echo $config->httpHost ?> @ottogal was faster than me
-
I'm subscribed to Carl Alexander's newsletter, a developer how knows quite a lot about WordPress development. Today's topic is pretty interesting, quote: Wow! That's quite an invention No more comment. Should anybody be interested in the details: https://carlalexander.ca/designing-class-simple-wordpress-queries/
-
@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.