Forum OpenACS Development: Re: Passing variables through the link with paginator

Collapse
Posted by Iuri Sampaio on
Problem solved!

The answer is "filters"

Here it is and example of a templatelist with newsletter id passed as parameter through the link

template::list::create \
-name "users" \
-multirow "users" \
-row_pretty_plural "users" \
-actions $actions \
-bulk_actions $bulk_actions \
-pass_properties { newsletter_id } \
-page_size 5 \
-page_flush_p t \
-page_query_name users_pagination \
-elements {
email {
label "[_ newsletter.Email]"
display_template {
@users.email;noquote@
}
}
} -filters {
newsletter_id { default_value $newsletter_id }
} -orderby {
email {
label "[_ newsletter.Email]"
orderby "lower(nd.email)"
}
}