Jump to content

Edit Page Data

Frank Schneider

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...