Skip to main content

{{ here | json }}

A localization object we can edit, add, and delete somewhere in the nation control panel interface for all hardcoded strings.  This might look like : {{ language.byline }} {{ language.what }} {{ language.where }}

Activity

commented on Referencing Uploaded Files
Uploading a file to the root theme directory and then referencing the filename as a src or href seems to work for me. I added a new stylesheet and script using uploaded css and js files. <code></code>

Here are the docs : http://nationbuilder.com/theme_documentation#uploading_images_jquery_or_other_assets
posted 2014-08-12 23:22:45 -0700
commented on activity
Now that we are upgraded to the latest liquid version , we have the incredible {{ | json }} filter ! The following should unpack the data var you are working with , and even allow easy passing to javascript.
    {% for activity in request.current_signup.activities %}
      {{ activity.data | json }}
posted 2014-08-15 02:21:51 -0700
commented on Liquid core version and features
Done! Upgraded to 2.6.1 today. Thanks very much :)
posted 2014-08-06 17:03:40 -0700
commented on Default a checkbox to off?
NB’s official “best practices” are unpublished and unpredictable. Copy the raw html from the page source and use that instead of liquid. This will allow you to determine the initial state using the “checked” attribute. http://css-tricks.com/indeterminate-checkboxes/
posted 2014-08-26 22:30:15 -0700
commented on Liquid: Get current year
The Aware theme and possibly others load jQuery UI by default, which also includes a date utility function. https://api.jqueryui.com/datepicker/
&lt;span class="now"&gt;&lt;/span&gt;
 $(".now").html($.datepicker.formatDate('dd M yy', new Date())); 


Would place “13 Apr 2014” inside the span element. The datepicker widget also has the ability to display in different languages using $.datepicker.regional[ “fr” ]
posted 2014-04-13 11:59:00 -0700
commented on site
The above for broadcaster should points to http://nationbuilder.com/page_variables when it should point to http://nationbuilder.com/broadcaster_variables . Arya Iranpour pointed this out 3 months ago, below.
posted 2014-08-19 00:32:16 -0700
commented on Theme API to Support Easy Theme Creation / Updates
Yes please, this is a serious roadblock to me developing effectively on nation builder.
posted 2014-02-18 15:08:52 -0800
commented on Tags not transferring to embedded signup form signups
Without the liquid, second try:
input id="page_id" name="page_id" type="hidden" value="{{ site.signup_page.id }}" /&amp;gt;
posted 2014-07-24 21:44:48 -0700
commented on Event radius defaults
@andres Lots of things could be wrong, but it’s hard to help when you share nothing for us to look at. This code works on the Aware theme, which many custom themes are based on. However, if the jquery selector “div.distance label.radio” does not return a list of the radio buttons, then the js code won’t work.

You may have better luck using a liquid filter, like this https://bitbucket.org/campaigngears/nb-public/src/master/metric/_pages_show_calendar.html
posted 2014-09-14 14:08:05 -0700
commented on Allowing whole site to use HTTPS
Google’s announcement referenced by @alex Hamilton: http://googlewebmastercentral.blogspot.com/2014/08/https-as-ranking-signal.html — “For now it’s only a very lightweight signal — affecting fewer than 1% of global queries”

This is an important issue in protecting users’ privacy.
posted 2014-08-07 21:28:42 -0700