Skip to content

Instantly share code, notes, and snippets.

@yckart
Last active December 26, 2015 02:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yckart/7081787 to your computer and use it in GitHub Desktop.
Save yckart/7081787 to your computer and use it in GitHub Desktop.
ProcessWire page slug
<? $input->slug = $input->urlSegments ? end($input->urlSegments) : $page->name; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment