Loading...
 
Skip to main content

Custom Share Module 0.1dev

Features / Usability

Features / Usability


Adding variables to menu options, how?

posts: 3665 United States

I'm trying to make a user-specific menu option that will take users directly to their personal wiki page, rather than having to first go to their User Preferences page.

In the menu module, I've created a menu option with the following URL:

Image
Copy to clipboard
tiki-index.php?page=UserPage{$user}


I'm calling the menu from within an existing module simply via {menu id=50}.

But Tiki is not converting the {$user} to my username. Rather, it literally passes the {$user} to the url. 🙁

What am I doing wrong?

TIA,

-UserPagericks99

posts: 1092

You can do something like the old templates/modules/mod-application_menu.tpl.. the user will be parsed in this case
but in a user menu ... I don't know


posts: 4 Spain

Simply type:

Copy to clipboard
tiki-index.php?page={$user}


For me that works (1.9.0)!