Erik Paulson

Comp Sci Grad student at UW Madison.


commented on "Official Response"
+1 to adding custom language for the response status. I want to use suggestions as a way to help our Resolutions committee draft language, and I’d like to be able to mark it as ‘Adopted’ or ‘Rejected’ after our membership votes on the resolution at our meetings.
posted 2012-05-28 16:49:36 -0700

commented on Include an iframe in blog post content without
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 }
<div class=“padbottom”>
<div class=“page_tag_background”>
for tag in page_tags.tags }
unless contains “ht-” }
<span class=“page_tag”><a href=“{{ tag.url }}”>{{ }}</a></span>
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 %}
<div class=“page_excerpt padbottom” id=“blog_post_page_{{ }}”>

<h3><a href=“{{ post.url }}”>{{ post.headline }}</a></h3> {% if post.tags_count > 0 %}

{% for tag in post.tags }
if contains “ht-office” }
<h3>{{ | split:“-” | last}}</h3>
endif }
endfor }
endif %}

It’s a little wonky, but it’s a start.
posted 2012-03-19 20:23:12 -0700

commented on Best way to get random sampling of supporters?
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
posted 2012-03-17 12:26:56 -0700

commented on page.suggestion_box
The template code is using
‘assign suggestions = page.suggestion_box.alphabetical_suggestions’

Are there any other fields in suggestion_box object – ideally something with an array of ‘officially answered’ suggestions
posted 2012-05-28 16:48:26 -0700