Old text from your site showing up on Facebook? FB debugging tool is helpful for busting cache and refreshing content http://t.co/sJzi5Uau
@liberalart @nationbuilder wish you could do more server-side, so google will find and index resulting dataset x template pages
@liberalart @nationbuilder awesome - i didn't know NB would pass along query strings.
I’ve also found that I don’t dedupe because I can’t skip someone. I don’t even mind if I don’t get a ‘back’ button – you can show them to me later. But sometimes I’m not ready to make a decision but would try some easier ones.
How are the different checkboxes set to on or off by default?
I'd like to leave this as an option, but have it off by default:
<td><label for="signup_mobile_opt_in">{% check_box "mobile_opt_in", class:"checkbox" %} Send me text message updates</label></td>
In other places, the {% checkbox %} setting is off, but with as near as I can tell, identical code in the template.
What am I missing?
I’m experimenting with hijacking tags to make this work. I haven’t tried the full iframe, but I’m interested in sticking arbitrary data on blog posts, to create a page with a view (think list of endorsed candidates – I want a page per candidate, like a set of blog posts, but in my list of blog posts I want to style the office they’re seeking, separately from the headline.)
What I’m doing is using tags as ht-key-value (ht stands for “hack tags”). I changed theme-wide _page_tags.html to ignore tags that start with ht-:
{% if page_tags.tags_count > 0 }
{ for tag in page_tags.tags }
{ unless tag.name contains “ht-” }
{{ tag.name }}
{ endunless }
{ endfor %}
{% endif %}
and then, for my “Endorsed Candidate” blog, on each candidate post I tagged them as ‘ht-office-District 1’ and ‘ht-office-District 2’, etc. When you look at the post, that tag no longer shows up.
On the blog post listings page, I added some code to the template (only for that page, not the theme-wide template):
{% for post in page.blog.most_recent_blog_posts %}
{% for tag in post.tags }
{ if tag.name contains “ht-office” }
{ endif }
{ endfor }
{ endif %}
It’s a little wonky, but it’s a start.
What I’m doing is using tags as ht-key-value (ht stands for “hack tags”). I changed theme-wide _page_tags.html to ignore tags that start with ht-:
{% if page_tags.tags_count > 0 }
{ for tag in page_tags.tags }
{ unless tag.name contains “ht-” }
{{ tag.name }}
{ endunless }
{ endfor %}
{% endif %}
and then, for my “Endorsed Candidate” blog, on each candidate post I tagged them as ‘ht-office-District 1’ and ‘ht-office-District 2’, etc. When you look at the post, that tag no longer shows up.
On the blog post listings page, I added some code to the template (only for that page, not the theme-wide template):
{% for post in page.blog.most_recent_blog_posts %}
{{ post.headline }}
{% if post.tags_count > 0 %}{% for tag in post.tags }
{ if tag.name contains “ht-office” }
{{tag.name | split:“-” | last}}
{ endif }
{ endfor }
{ endif %}
It’s a little wonky, but it’s a start.
@nationbuilder who did the Beall PTA site? It's beautiful.
The NB team might have a better idea with some internal tool, but it’d be easy to do if you export your NB database as a CSV, sort it/sample it randomly with your favorite tool (excel makes it easy), and when you upload the resulting sample tag the entries with list_a
I could really use a query API to pull info for people who match a tag. The person-change webhook doesn’t fire if you set a tag on someone in the supporters editor, so I’d like to hit a query every couple hours to get the latest info. I don’t need to push data in.
If you’ve got the start of something working, I’d love to give it a try.
If you’ve got the start of something working, I’d love to give it a try.
@woodhull @NationBuilder not calling for NB to have carte-blanche access to VAN data, still want the party to bless access for campaigns
@woodhull @NationBuilder it doesn't - a rising tide lifts all boats, though. For progressive orgs using NB, should have access to VAN data.
the @NationBuilder funding round means more use by progressive orgs. Time for @ngpvan to show net neutrality and give them an API key
NationBuilder's @adrielhampton is doing a free webinar on basics tomorrow, 1130-1 EST. Email info@nationbuilder.com if you'd like to join.
Join our team
We're hiring great software developers and organizers. Learn more →