OK,,
I get the concept of the module but how do you use it.
please don't send me to this page (http://drupal.org/node/310795)

maybe I am stupid or something but i really need an example or somthing, I can't wrap my head around this module at all,,,

help guys

Comments

vm’s picture

It's a way of strings forms/pages together in succession.

This module can be used to provide a user friendly wizard for creating and editing several nodes. You can use the module to create a "route" which leads users through multiple pages, which can be e.g. node creation forms.

For example this allows you to build a user profile which consists of multiple content types. Then users can easily create and edit their nodes through the same pageroute.

abowers’s picture

I've been messing around with this module a bit, and here's what I did to set up a page route for editing a user's profile (I'm using Drupal's core profile module):

  1. Go to admin/build/pageroute, and add a route
  2. Set your path - I think this is just the base part that will show up in the url, and then the url will be constructed as follows: route-path/page-name/... for example, name it "user-profile", and then you can access the "wizard" with www.example.com/user-profile.
  3. Choose your tab settings - "Use the common drupal menu tabs" sets up the titles of each page that you add similar to the style of your View and Edit buttons, and "Show submit-like tab buttons above the page content" sets up the titles like submit buttons at the top of your "wizard".
  4. Use access control to specify which roles have access - for my example, authenticated user is fine.
  5. In the advanced setttings, you can set the Customized redirect path for when the user is done with your "wizard" - I specified "Forum" here to redirect to the forum
  6. I disabled the "Don't show drupal messages during this route." option so that Drupal will tell users when they haven't entered in required information and whatnot.
  7. Click Save
  8. Add a page to the route - this will be the first one that shows up in the wizard (though you can change their weighting to change their order. In this case, I choose "User Editing Form"
  9. Specify the Name (page-name) for example, I used "basic-info", so that the url will be www.example.com/user-profile/basic-info for this page.
  10. Specify the title, "Basic Info", especially if using tabs. It seemed to use the Name if there was no title.
  11. Specify any description to be shown to the user like "Please update your basic information here".
  12. Leave "Activated" set, otherwise this page won't show up.
  13. I left "Don't show a tab for this page" unchecked since I want the tabs to show up at the top of my wizard.
  14. For Category (I'm not sure if this is part of the PageRoute module or the ProfileSetup module that I was testing out), I chose Basic Information, which is a category I set up in the Profile module for the First Name and Last Name fields
  15. Set link labels for the bottom of the page and weighting and click Save.
  16. Add another page - maybe for another Profile category like Bio.

Now, you have a page route that can be accessed by www.example.com/user-profile. It will allow you to edit your user account (or the logged in user), show you a page with the Basic Info stuff. When you click Forward or whatever, it will take you to the next page - Bio in this case, and so on until you've reached the end. Then it will take you to the redirect url you specified in the page route, in this case, to the Forums.

That's as far as I've gotten so far. It could be the start of a tutorial or something. I'd love to have any feedback or corrections (or additions) to this.

farald’s picture

abowers, this walktrough helped a lot! Thanks!

sepgil’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.