Repository navigation
Getting Started
yoleg edited this page May 22, 2011
·
6 revisions
1. (Required) Set the “uu.start” system setting to the resource id used for the user home pages (without a sub-action).
- So when someone visits yoursite.com/johnsmith/ (where johnsmith is an active user’s username), it will show them the content of the resource you set here.
2. (Optional) Set additional sub-pages (“action”) by setting the “uu.action_map” in the format id:action,id2:action2.
- Example: “21:messages,131:history”.
- So, when someone visits yoursite.com/johnsmith/history, it will show them resource #131 with userid set to (johnsmith’s userid) and action set to “history”
- [[!UserUrls]] – (helper snippet). See snippet code for available options.
- [[!uuUrl]] – Generates a URL to a UserUrl page (by default to the current page). To another user’s page: [[!uuUrl? &user=`21` &action=`messages`]]. Use as output filter: [[!+userid:uuUrl=`action`]].
- [[!uuId]] – gets the UserUrl userid
- [[!uuAction]] – gets the UserUrl action
Next: Usage
- Test thoroughly before using on a live site.
- Make sure your resource aliases will never override UserUrls or vise versa (if you have conflicts, try changing the Friendly URL alias paths, Resource URIs, or the event the plugin is activated on.)
- Currently, UserUrls redirects for ALL users. Limitations based on group membership are planned for future releases.