Now that I've got FT up and running, I realize that I should have added metrics earlier. Rather than starting from scratch is there a way that I can manually change my database?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Cool. The templates sort of make it sound like they are looking for a value someplace to decide whether to default to opt-in. I was wondering if that value existed, sounds like no. I'll edit the template.
My campaign (I'm just tinkering with it) is a letter writing pledge, so one thing I want to know is "did you send a letter."
I'm also asking for addresses.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
um, yeah -- just add the right 'double' columns to the ft_node and ft_stats and ft_map_data tables.
so, for example, if you wanted to add a whales_saved metric, add a stat_whales_saved column to ft_stat, node_whales_saved to ft_node, and map_data_whales_saved to ft_map_data
thanks,
mike
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Now that I've got FT up and running, I realize that I should have added metrics earlier. Rather than starting from scratch is there a way that I can manually change my database?
I want the default for sign ups to be to opt in to email updates. I don't see a place to set that.
thanks,
Amanda
PS, if you answer, I promise to write up the answers nicely and add them to the wiki ...
to do that, you will need to edit the various form html templates, such as ft/style/templates/campaign/form-accept.tpl and form-register.tpl
Cool. The templates sort of make it sound like they are looking for a value someplace to decide whether to default to opt-in. I was wondering if that value existed, sounds like no. I'll edit the template.
My campaign (I'm just tinkering with it) is a letter writing pledge, so one thing I want to know is "did you send a letter."
I'm also asking for addresses.
well, yeah. you could replace
<input type="checkbox" name="register[values][person][opt_in]" value="1" {if $FT.post.register.values.person.opt_in}checked{/if}>
with just
<input type="checkbox" checked>
OR, go into lib/FT/App/Person.class.php and change
'opt_in' => null,
to
'opt_in' => 1,
that might work too.
-mike
um, yeah -- just add the right 'double' columns to the ft_node and ft_stats and ft_map_data tables.
so, for example, if you wanted to add a whales_saved metric, add a stat_whales_saved column to ft_stat, node_whales_saved to ft_node, and map_data_whales_saved to ft_map_data
thanks,
mike
PS -- what metrics? I am interested.