Frank Schneider Posted December 5, 2021 Share Posted December 5, 2021 I have a site that stores member data, template and fields. for new member i store in /mitglieder/mitglied_neu/ -> this works i add a new page /mitglieder/mitglied_edit/ and i call with echo "<a href='".$pages->get("/mitglieder/mitglied_edit/")->url(array("urlSegments" => array($mitglied->id)))."'>"; URL -> ...../Processwire/mitglieder/mitglied_edit/1071/ and i get an 404 Error page not found. can anyone say me why, whats wrong? in the page i want the id: 1071 in the page: $mitglied = null; if ($page->url == $pages->get("/mitglieder/mitglied_neu/")->url) { $mitglied = $pages->get("id=".(int)$input->urlSegment0); } if ($page->url == $pages->get("/mitglieder/mitglied_neu/")->url && $mitglied == null) { throw new Wire404Exception(); } Link to comment Share on other sites More sharing options...
Zeka Posted December 5, 2021 Share Posted December 5, 2021 Hi @Frank Schneider Have you enabled urlSegments in template settings for mitglied_edit page? 2 Link to comment Share on other sites More sharing options...
Frank Schneider Posted December 5, 2021 Author Share Posted December 5, 2021 this was the solution thank you very much 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