mat3rial-dev / ckanext-yycdatacollective

CKAN extension for YYC Data Collective
GNU Affero General Public License v3.0
0 stars 1 forks source link

Pass data to contact form #2

Closed vigliensoni closed 6 years ago

vigliensoni commented 6 years ago

The contact form should receive:

dataset_id
dataset_owner_email 

This data should be retrieved from the dataset page from which the public user triggered "contact dataset owner"

vigliensoni commented 6 years ago

For now, this was solved (a8bd579b46b179c47d9142eefe7b6638d50b6453) through passing variables by means of the template context variable c.

This way of passing data, however, is not the preferred one. They recommend using extra_vars.

See http://docs.ckan.org/en/ckan-2.7.3/theming/variables-and-functions.html