Skip to main content

Activity

commented on Why would site settings values change based on log-in status?
Whoops, those liquid calls got processed as code. Here they are again.

Pertinent liquid calls:
{{settings.volunteers_count}}
{{settings.donors_count}}
{{settings.donations_amount_in_cents | minus:600000  | divided_by:100}}


Here is additional context for those calls, the template for the home page, in which I’ve added code before the call bringing in user content.
{% include "breadcrumbs" %}

{% if page.headline.size > 0 %}
<div class="home_headline">Betsy Coffia, Democrat for State House<h4 style="padding-left:30px">Michigan's 104th House District, Grand Traverse County</h4>
</div>
{% endif %}

<div id="content">
  <div id="intro" class="intro">
    <div class="text-content">
      <div class="home_stat_box">
        <h3>You are what drives Betsy's Campaign</h3>
        Here's how:<table class="hometable">
<tr>
<td align="right">${{settings.donations_amount_in_cents | minus:600000  | divided_by:100}} </td> <td style="padding-left:25px;">Funds Raised (To Date)</td>
</tr>
<tr>
<td align="right">{{settings.donors_count}}</td> <td style="padding-left:25px;">Total # of Individual Donors</td>
</tr>
<tr>
<td align="right">{{settings.volunteers_count}}</td>  <td style="padding-left:25px;">Total # of Campaign Volunteers</td>
</tr>
<tr class="emph">
<td align="right">$0</td> <td style="padding-left:25px;">Special Interest Dollars</td>   </tr>
</table>
<table class="hometablebuttons" width="300">
<tr>
<td><div class="large_button"><a href="contribute">Donate</a></div></td>  <td><div class="large_button"><a href="volunteer">Volunteer</a></div></td>
</tr>
<tr><td colspan="2"><div class="large_button"><a href="vote">Pledge your Vote</a></div></td></tr>
</table>
</div>
  <div class="home_stat_button"><a href="working_for_you"><h3>Working for you. Working for Michigan.</h3></a></div> 
      
      {{ page.basic.content }}
    </div>
  </div>

  {% if page.tags_count > 0 %}
  <div class="page-tags">
    {% include "page_tags" with page %}
  </div>
  {% endif %}

  {% if page.is_homepage? == true and site.page_tags contains "homepage" %}
    {% tag "homepage" with "homepage_widget" %}
  {% endif %}

  {% if page.show_stream? %}
  {% include "page_stream" %}
  {% endif %}

</div>
posted 2014-06-10 13:54:00 -0700
commented on request
How does the current_browser variable work? I’m trying to use it to determine if the site appears in tablet view, but I get an error when I try to access it. What values does it store?
posted 2014-07-15 14:32:36 -0700
commented on settings
Is there a function to reformat donations_amount_in_cents to something formatted?

I can think of enormously convoluted ways to do it, but I’m hoping there’s simply a function ready to go for me.
posted 2014-06-25 06:50:19 -0700
tagged Felicia Willems' Removing a rule violation? with Helpful
posted 2014-04-18 08:49:24 -0700