Forum OpenACS Development: Re: parameters through link

Collapse
Posted by Dave Bauer on
First!

Get the subsite_url with the site node procedure! Don't read the nsv directly.

Second build URLs with export_vars then you don't have to play around, removing the trailing slash etc.

Third, I believe you are referring to the bulk actions links at the bottom of the page. If you are, that are not appropriate for a single link. They are for taking actions on multiple items. The bulk actions take their parameters from the key specififed in the list, plus any filters you may have applied.

Collapse
Posted by Iuri Sampaio on
Thanks Dave!
it works.

1. set subsite_url [lindex [site_node::get_url_from_object_id -object_id $subsite_id] 0]

2. set subsite_url [export_vars -base "$subsite_url" {project_item_id}]

3. It is a few strange how the link looks like.
/project-manager/fred-dispatch-development/?project_item_id=2644

i didn't know it was possible having slashes before the '?'