Valery Posted November 21, 2013 Share Posted November 21, 2013 Hello guys, I decided to give the PagePaths module a try and installed it. But PW keeps saying Error: Exception: Operator '~=' is not supported for path or url unless you install the PagePaths module. (in /var/www/docs/wire/core/PageFinder.php line 625) each time I try something like "echo $pages->get("url~=/wallpapers/page4")->id;" Is there anything else I should look into? I am sensing that the PW core is not aware that I have the module installed. Link to comment Share on other sites More sharing options...
ryan Posted November 24, 2013 Share Posted November 24, 2013 Page numbers are runtime directives like URL segments, not part of the actual page's path. Consider what you see in the tree in the admin–those are the pages. As a result, you shouldn't try to retrieve a page with a page number in it–leave that part off. Next thing is that I'm not positive about the ~= operator in this context. You might need to use %= or *=. Link to comment Share on other sites More sharing options...
Valery Posted November 25, 2013 Author Share Posted November 25, 2013 Thanks, Ryan. I believe this can be linked to the post on page numbers. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now