Recently Browsing 0 members
No registered users viewing this page.
Hey all. I'm having an issue with the new custom page classes feature which is a fantastic tool.
I am running into a recursion issue when attempting to call a custom page class. I have a class called BlogPostPage.php (for blog-post.php) which contains a method called getSummary(). That method gets a summary field or truncates the body in it's absence. I've attached photos of the template code, custom page class code (which I've simplified for testing), and the PW output error.
There is no recursion in the getSummary() method. This error occurs whether I output multiple blog posts in a loop or if I output one blog post with no looping in my template code.
ProcessWire 3.0.164 dev
I am also using the Template Engine Twig module which has not caused any errors or issues thus far.
Hello Dear PW Gurus.
Hope you fair well in these Corona Crisis times.
Anyhow, i have a problem with a Cryptic error message that shows up when i am trying to Delete images out of a Images field.
The Error message does say a little but it does not make sense to me why i can´t delete the images because of it.
Is it some permission issue perhaps?
I will attach screenshots of it and what i did prior to it.
I am from sweden so ignore the funny words here and there.
Hope you all can send me on the right track.
i am running PW 3.0.139 on this install.
Step 2: Select the images with the trashcan symbol
Step 3: Cryptic Error message
I am scratching my head on this one, have not seen this before.
Thankfull for all help.
I have a marketplace site that used the older Fredi module for front end editing so advertisers can create and edit their adverts (in the form of pages). After upgrading to v3.0 of Processwire I'd like to change the editing method for users to the new, core front end editing methods. However, it seems that with this method any editor can edit any page (subject to template restrictions for their user role). Using Fredi I checked the user and created user were equal before displaying edit buttons (clunky but it worked).
Is there any stock way to restrict front end editing to the creator of the page so that my advertisers can only edit their own ads or should I test for user as before?
Thanks in advance as always 🙂
I try to achieve a possibility for the client's admin account to change other users privileges.
In the CMS I have superadmin account, which is for me. My client got an account with a role user, which is limited administration account. The client also got some other people, who will edit the content with role editor
User story would look somehow like this:
user role can add new roles and users user role can change privileges for all users (except superadmin). Eg. When the user role gives the editor role privilege to edit only articles. The Editor role will be able to edit only them.
I know this functionality is possible for superadmin, but I couldn't simulate it on the user role. Is there any easy way to achieve such a feature? Otherwise, I'll have to make a module for this I guess.
Thanks for any help!
Hello forum. I'm trying to figure out how to detect if current form has errors after saving it in pw admin page. This is so that our event location isn't added in database if we detect errors. But I can't seem to find a correct way to detect errors? I only found the wire()->errors() and it always triggers even if I don't have any errors.
How can I detect errors in a form?
By error I mean $page->error('this is the red error');