Recently Browsing 0 members
- No registered users viewing this page.
We're launching a new version of our website and I need to create redirects from old pages to their new counterparts at different URLs. An example rule that I've created is
Redirect 301 /solar-energy-for-business /solar-energy/commercial-solar/ However when I visit the redirected URL it shows up in the address bar as:
We're creating these redirects for SEO purposes and they need to not have additional URL parameters being added. This line in the .htaccess file is adding the original URL as a parameter.
RewriteRule ^(.*)$ index.php?it=$1 [L,QSA] Does ProcessWire use this parameter for a purpose? What is the best way to create these redirects without this parameter?
"Permission “page-sort” for template “ ... ” not allowed (requires “page-edit” permission)"
– This lovely error message is thrown at me, if, as implied by it, I try to add (to my "editor" role) the permission "page-sort" for a specific template, without the permission "page-edit" enabled for the same template.
Seems like it's been mentioned a few times before but never properly answered, by e.g. @Robin S ... :
"Allow the granting of page-sort permission independent of page-edit": https://github.com/processwire/processwire-requests/issues/29
Why do I wanna do this?:
I have a page tree structure 🌳 as so:
– Page a [C1_p] – Page b [C1_p] Different category [C2]
– Page c [C2_p] – Page d [C2_p] ________________________
The page "Category" has the page-template "C1",
the pages "Page a" and "Page b" both have the page-template "C1_p".
The page "Different category" has the page-template "C2"
the pages "Page c" and "Page d" both have the page-template "C2_p".
The two pages called "Category" and "Different category" do not have any content, they only serve as containers for pages belonging to that category.
I want my "editor" role not to be able to do anything at all with these pages "Category" and "Different category"; i.e. I do not want my editor to be able to edit, move, unpublish, hide, lock, delete (or do anything else to) these category pages.
– So, I want my "editor" role to have the "page-edit" permission for pages with the templates "C1_p" and "C2_p", but not for the pages with the category templates "C1" and "C2",
Also, I want my "editor" role to be able to move the pages with the templates "C1_p" and "C2_p" within their parent-pages.
But if I just simply add the "page-edit" and the "page-move" permissions for the "C1_p" and "C2_p" templates, then, using the "editor" role, I am not able to move these "C1_p" (and "C2_p") -template-based pages. I can actually click "MOVE" next to them and then move them, but... then I will be met by the error message "You do not have permission to sort pages using this parent - /Category/".
– So, I try to add the "page-sort" (description: "permission to sort child pages") permission to the "C1" and "C2" templates... but then trying to do so I am met by the initially mentioned error message ! Permission “page-sort” for template “C1” not allowed (requires “page-edit” permission) .
And, as mentioned, I do not want my editor role users to be able to edit these category ("C1" and "C2") pages...
– what to do about this? 😅
All the best,
I have a user role employee with the permission page-edit-created. This user role has access to add new pages to the template posts with the template post.
The template posts should have children with the template post. The template post should have the parent with the template posts. Now every time I try to add a new page with the template post, an exception throws:
You don't have access to the template required to add pages here
Is this a bug in this permission or have I not configured the permissions correct?
Is there a hook to allow to add pages to the template posts for the role employee?
I would appreciate some help. 😀
By Jennifer Stock
Hi. I'm wondering if there is a way to add code to the Redirects module to strip the "?fbclid=" parameter from incoming links. My users have noticed that the redirect links they have established via the module are failing when used from Facebook, due to the new FB click tracking code.
By AAD Web Team
I've put in a support request (as a followup on an existing one) for this but it's nearly 10pm Ryan's time, so I thought I'd ask on here just in case someone can help...
Yesterday we purchased ProDrafts, but I couldn't get the key to validate. Every time I hit submit on the module settings screen the key would be removed from the field I entered it in, and then it would complain about the missing value. I put in a support request and Ryan responded last night. It turned out it was because we're behind a proxy/firewall. He gave me a fix to get around that issue - some code to go into admin.php. I put that code in and saved admin.php, but now I can't even get into our admin anymore!
(Just to clarify, I took the code back out and saved admin.php but that made no difference. It's definitely not the new code causing the error.)
The errors relate to a lack of permission on the ProDrafts module (see attached screenshot). We do have a key, but evidently the code Ryan gave me to add the key in via admin.php isn't taking effect before the error is thrown...?
I tried removing the ProDrafts directory from the modules directory, but that hasn't helped.
Is there a hook I can put in somewhere to tell it not to load ProDrafts at all, or not check the permissions? Or is there some way to manually uninstall it from the file system?