thinkshout / feeding-texas

Home of the Feeding Texas website. Development by ThinkShout.
feedingtexas.org
5 stars 12 forks source link

How to add zip code data search box to SNAPshot Texas page? #99

Closed jcdwyer1 closed 10 years ago

jcdwyer1 commented 10 years ago

http://feedingtexas.org.s3-website-us-east-1.amazonaws.com/learn/communities/snapshot-texas.html

This page needs to include a zipcode lookup box like the home page. not sure how to do this within the confines of a page layout.

alexellison commented 10 years ago

@jcdwyer1 this is definitely a task for us. I'm on it.

alexellison commented 10 years ago

@jcdwyer1, I solved this problem by adding code that reacts to the "type" frontmatter variable by placing the zip code widget in the page header.

If you look at snapshot-texas.md, you'll notice there's a new variable in the header called "type" that has the value "zip-widget". Adding the "type" variable to any other page that uses the "page" layout and specifying the value of "zip-widget" will cause the zip code widget to appear in the header as you see on the SNAPSHOT Texas page:

http://feedingtexas.org.s3-website-us-east-1.amazonaws.com/learn/communities/snapshot-texas.html

jcdwyer1 commented 10 years ago

Excellent solution, thanks

alexellison commented 10 years ago

Update to this ticket necessary to get other things working...

You now add the zip code widget to the header by using a frontmatter variable called zip-widget and give it a value of true.