<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>

<channel>
	<title>HotInk</title>
	<atom:link href="http://hotink.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://hotink.net</link>
	<description>Web publishing made easy</description>
	<pubDate>Thu, 29 Oct 2009 16:17:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Tutorial: How can I enable comments to my site?</title>
		<link>http://hotink.net/2009/10/how-can-i-enable-comments/</link>
		<comments>http://hotink.net/2009/10/how-can-i-enable-comments/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 15:02:15 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
		
		<category><![CDATA[Advanced]]></category>

		<category><![CDATA[Announcements]]></category>

		<category><![CDATA[Core Concepts]]></category>

		<category><![CDATA[Documentation]]></category>

		<category><![CDATA[Features]]></category>

		<guid isPermaLink="false">http://hotink.net/?p=382</guid>
		<description><![CDATA[That&#8217;s actually a trick question. Comments are already enabled but you need to add a few things to your templates to display the comments and form.
You can do this many ways but these are the steps we recommend.
1) Add a template called &#8216;Comments&#8217;. This will be for displaying existing comments and displaying the form to [...]]]></description>
			<content:encoded><![CDATA[<p>That&#8217;s actually a trick question. Comments are already enabled but you need to add a few things to your templates to display the comments and form.</p>
<div>You can do this many ways but these are the steps we recommend.</div>
<div>1) Add a template called &#8216;Comments&#8217;. This will be for displaying existing comments and displaying the form to leave a new one</div>
<div>2) Add a template called &#8216;Comment&#8217;. This will be for displaying an individual comment</div>
<div>3) Add a template called &#8216;New Comment&#8217;. This is the form for leaving a new comment</div>
<div>4) In your article template, include the new &#8216;Comments&#8217;</div>
<div>There&#8217;s sample code for each step at the end of this post.</div>
<div>But first, a few technical details.<span id="more-382"></span></div>
<div>All the comments on an article are accessible via article.comments. For instance, this works: {% for comment in article.comments %}</div>
<div>If you just want a count of how many comments an article has, you can use article.comment_count. For instance, you can use &lt;span&gt;There are {{ article.comment_count }} comments on this article&lt;/span&gt;</div>
<div>Each comment has the following properties that you can display:</div>
<div>- comment.date - the date</div>
<div>- comment.body - the text of the comment</div>
<div>- <a href="http://comment.name/" target="_blank">comment.name</a> - the name of the person who left the comment</div>
<div>- comment.url - the site url of the person who left the comment</div>
<div>To create the form, you have to use the {% commentform %} tag.</div>
<div>Inside that and the corresponding end tag ( {% endcommentform %} ), you should include the following:</div>
<div>- <a href="http://form.name/" target="_blank">form.name</a></div>
<div>- form.email</div>
<div>- form.url</div>
<div>- form.body - the box that users type their comment into</div>
<div>- form.captcha_answer - IMPORTANT. This little bit asks a question that makes sure that the responder is a human and not a spam bot. If you don&#8217;t include this in your form, the comments will not be accepted by Hot Ink. form.capcha_answer generates the box for the answer and form.captcha_question is the text of the related question</div>
<div>- form.submit - the button that users press when they&#8217;re finished.</div>
<div>Note: if you&#8217;re an HTML wizard, you can create your own form as long as you put it inside the {% commentform %} tag. If you want to try your own, use the above for now, view the source to get an idea of what the HTML is like and then modify that.</div>
<div># Checking the status of an article</div>
<div>Comments on articles can be in three states:</div>
<div>- Enabled: full steam ahead. Anyone can leave a comment.</div>
<div>- Locked: existing comments show up but nobody can leave new ones.</div>
<div>- Disabled: comments are completely turned off.</div>
<div>To check what the status is, you can use:</div>
<div>- article.comments_enabled</div>
<div>- article.comments_locked</div>
<div># Moderating comments</div>
<div>If you log in to Hot Ink and click on Publisher, there&#8217;s a new sub-option called &#8220;Comments.&#8221; This will display all the comments left on your site. From here, you can:</div>
<div>- Clear flags. If people have flagged a comment, you can remove the flags if you feel the comment is actually acceptable.</div>
<div>- Remove it. This will take it off your site.</div>
<div>- Mark as spam. This will both remove the comment and send a signal to Hot Ink to tell us that this was a spam comment. This will make the system smarter about automatically blocking future spam.</div>
<div># Tips</div>
<div>- It&#8217;s probably a good idea to create a moderation policy and post it on the site. Have a look at The Fulcrum&#8217;s for example: <a href="http://thefulcrum.ca/articles/21139" target="_blank">http://thefulcrum.ca/articles/21139</a></div>
<div>- Encourage authors to get involved in the commenting action. It creates an incentive for people to get engaged.</div>
<div>- Sometimes you might notice comments that seem relevant but sound a bit quirky. If they include a link, you can be fairly certain that it&#8217;s spam so make sure to hit the &#8220;Mark as spam&#8221; button on the commenting moderation page.</div>
<div># TODOs on our end</div>
<div>- Commenting doesn&#8217;t quite work on blog entries yet. Keep this to your article pages.</div>
<div>- There isn&#8217;t an easy way for users to flag comments for review. This is coming.</div>
<div># Sample code</div>
<div>1) Comments partial</div>
<div>&lt;a name=&#8221;comments&#8221;&gt;&lt;/a&gt;</div>
<div>{% if article.comments_enabled %}</div>
<div>{% for comment in article.comments %}</div>
<div>{% include &#8220;Comment&#8221; for comment %}</div>
<div>{% endfor %}</div>
<div>{% unless article.comments_locked %}</div>
<div>{% include &#8220;New Comment&#8221; for comment %}</div>
<div>{% else %}</div>
<div>&lt;p&gt;Comments are locked&lt;/p&gt;</div>
<div>{% endunless %}</div>
<div>{% else %}</div>
<div>&lt;p&gt;Comments are disabled&lt;/p&gt;</div>
<div>{% endif %}</div>
<div>2) Comment partial</div>
<div>&lt;div class=&#8221;comment&#8221;&gt;</div>
<div><span style="white-space: pre;"> </span>&lt;span&gt;&lt;strong&gt;{{<a href="http://comment.name/" target="_blank">comment.name</a>}}&lt;/strong&gt;&lt;/span&gt; on</div>
<div><span style="white-space: pre;"> </span>&lt;span&gt;&lt;a name=&#8221;comment-{{<a href="http://comment.id/" target="_blank">comment.id</a>}}&#8221;&gt;{{ comment.date | date: &#8220;%b %e, %G at %I:%M %p&#8221;}}&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;</div>
<div>&lt;div&gt;{{ comment.body | strip_html | markdown}}&lt;/div&gt;</div>
<div>&lt;/div&gt;</div>
<div>3) New Comment partial</div>
<div>&lt;h3&gt;New Comment&lt;/h3&gt;</div>
<div>{% commentform %}</div>
<div>&lt;p&gt;{{ <a href="http://form.name/" target="_blank">form.name</a> }}&lt;label for=&#8221;author&#8221;&gt;&lt;small&gt;Name (required)&lt;/small&gt;&lt;/label&gt;&lt;/p&gt;</div>
<div>&lt;p&gt;{{ form.email }}&lt;label for=&#8221;email&#8221;&gt;&lt;small&gt;Mail (will not be published)&lt;/small&gt;&lt;/label&gt;&lt;/p&gt;</div>
<div>&lt;p&gt;{{ form.url }}&lt;label for=&#8221;url&#8221;&gt;&lt;small&gt;Website&lt;/small&gt;&lt;/label&gt;&lt;/p&gt;</div>
<div>&lt;p&gt;{{ form.captcha_answer }}&lt;label for=&#8221;captcha_answer&#8221;&gt;&lt;small&gt;{{form.captcha_question}}&lt;/small&gt;&lt;/label&gt;&lt;/p&gt;</div>
<div>&lt;p&gt;{{ form.body }}&lt;/p&gt;</div>
<div>&lt;p&gt;{{ form.submit }}&lt;/p&gt;</div>
<div>{% endcommentform %}</div>
<div>4) Adding comments to the article template</div>
<div>{% if article.comments_enabled %}</div>
<div>{% for comment in article.comments %}</div>
<div>{% include &#8220;Comment&#8221; for comment %}</div>
<div>{% endfor %}</div>
<div>{% unless article.comments_locked %}</div>
<div>{% include &#8220;New Comment&#8221; for comment %}</div>
<div>{% else %}</div>
<div>Comments locked</div>
<div>{% endunless %}</div>
<div>{% else %}</div>
<div>Comments disabled</div>
<div>{% endif %}</div>
]]></content:encoded>
			<wfw:commentRss>http://hotink.net/2009/10/how-can-i-enable-comments/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Template Data – Part 7: Linking</title>
		<link>http://hotink.net/2009/10/template-data-%e2%80%93-part-7-linking/</link>
		<comments>http://hotink.net/2009/10/template-data-%e2%80%93-part-7-linking/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 14:56:55 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Advanced]]></category>

		<category><![CDATA[Core Concepts]]></category>

		<category><![CDATA[Development]]></category>

		<category><![CDATA[Documentation]]></category>

		<category><![CDATA[Features]]></category>

		<guid isPermaLink="false">http://hotink.net/?p=377</guid>
		<description><![CDATA[This post will focus on a key task you&#8217;ll encounter while working with any website: linking. To make linking as easy as possible, Hot Ink provides a series of Liquid filters that will build links to any Hot Ink page. Hot Ink linking helpers will automatically decide which text to use as the link text [...]]]></description>
			<content:encoded><![CDATA[<p>This post will focus on a key task you&#8217;ll encounter while working with any website: linking. To make linking as easy as possible, Hot Ink provides a series of Liquid filters that will build links to any Hot Ink page. Hot Ink linking helpers will automatically decide which text to use as the link text unless you&#8217;ve provided specific text as an argument.<span id="more-377"></span></p>
<p>For more information on using liquid filters read:<a href="http://wiki.github.com/tobi/liquid/liquid-for-designers" target="_blank"> http://wiki.github.com/tobi/liquid/liquid-for-designers</a></p>
<p>The following linking helpers are available for use with Hot Ink template data:</p>
<p>link_to_article - Link to an article&#8217;s page. Operates on the article<br />
itself, eg {{ article | link_to_article }} or {{ article | link_to_article:&#8221;Check out this article&#8221; }}<br />
link_to_section - Link to a section page. Operates on a section variable.<br />
link_to_issue - Link to a issue&#8217;s page. Operates on an issue variable.<br />
link_to_blog - Link to a blog&#8217;s page. Operates on a blog variable.<br />
link_to_entry - Link to a blog entry. Operates on an entry variable.<br />
link_to_page - Link to a static page. Unlike other link helpers, this helper operates on the name of the page in quotation marks, eg {{ &#8220;About Us&#8221; | link_to_page }}</p>
]]></content:encoded>
			<wfw:commentRss>http://hotink.net/2009/10/template-data-%e2%80%93-part-7-linking/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Template Data – Part 6: The Section/Category Drop</title>
		<link>http://hotink.net/2009/10/template-data-%e2%80%93-part-6-the-sectioncategory-drop/</link>
		<comments>http://hotink.net/2009/10/template-data-%e2%80%93-part-6-the-sectioncategory-drop/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 14:53:00 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Advanced]]></category>

		<category><![CDATA[Core Concepts]]></category>

		<category><![CDATA[Development]]></category>

		<category><![CDATA[Documentation]]></category>

		<guid isPermaLink="false">http://hotink.net/?p=370</guid>
		<description><![CDATA[If you&#8217;ve been working with Hot Ink for a while, you may have noticed some overlap between the use of the terms &#8220;section&#8221; and &#8220;category&#8221;. In Hot Ink your newspaper can have many categories, those categories can have many subcategories, those subcategories can have their own subcategories and so on. We use the term &#8220;section&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve been working with Hot Ink for a while, you may have noticed some overlap between the use of the terms &#8220;section&#8221; and &#8220;category&#8221;. In Hot Ink your newspaper can have many categories, those categories can have many subcategories, those subcategories can have their own subcategories and so on. We use the term &#8220;section&#8221; to refer specifically to your top-level categories, those that are not subcategories of any other category.<br />
<span id="more-370"></span><br />
One important caveat: an article&#8217;s main category is referred to as its &#8220;section&#8221;, regardless of whether it&#8217;s a top-level category or not.</p>
<p>The main way you will access your newspaper&#8217;s sections is through the newspaper drop using &#8216;newspaper.sections&#8217;. You can access the categories that an article belongs to using the &#8216;article.categories&#8217; array from the article drop.</p>
<p>For each section/category the following data is available:</p>
<p><a href="http://category.name/" target="_blank">category.name</a> - the name of the category<br />
<a href="http://category.id/" target="_blank">category.id</a> - the category&#8217;s unique Hot Ink id number<br />
category.subcategories - an array of the article&#8217;s subcategories</p>
]]></content:encoded>
			<wfw:commentRss>http://hotink.net/2009/10/template-data-%e2%80%93-part-6-the-sectioncategory-drop/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Template Data – Part 5: The Blog Drop</title>
		<link>http://hotink.net/2009/10/template-data-%e2%80%93-part-5-the-blog-drop/</link>
		<comments>http://hotink.net/2009/10/template-data-%e2%80%93-part-5-the-blog-drop/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 14:47:17 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Advanced]]></category>

		<category><![CDATA[Core Concepts]]></category>

		<category><![CDATA[Development]]></category>

		<category><![CDATA[Documentation]]></category>

		<guid isPermaLink="false">http://hotink.net/?p=365</guid>
		<description><![CDATA[You can access your Hot Ink blogs from 2 different locations. The first is on the blog index page as the array variable &#8216;blogs&#8217;, the other is through the newspaper drop as &#8216;newspaper.blogs&#8217;. This can be used in combination with the &#8216;newspaper.latest_from_blog&#8217; hash to run through a list of each blog and the latest posts [...]]]></description>
			<content:encoded><![CDATA[<p>You can access your Hot Ink blogs from 2 different locations. The first is on the blog index page as the array variable &#8216;blogs&#8217;, the other is through the newspaper drop as &#8216;newspaper.blogs&#8217;. This can be used in combination with the &#8216;newspaper.latest_from_blog&#8217; hash to run through a list of each blog and the latest posts in each blog.</p>
<p>For more information on how to work with Liquid data types like hashes and array, read: <a href="http://wiki.github.com/tobi/liquid/liquid-for-designers" target="_blank">http://wiki.github.com/tobi/liquid/liquid-for-designers</a></p>
<p>Blog entries are available through the Article drop, with one added variable, an &#8216;entry.blogs&#8217; array of all the blogs this entry is belongs to. In all but a few rare cases, you can access the entry&#8217;s blog data using the syntax &#8216;entry.blogs.first&#8217;.<span id="more-365"></span></p>
<p>The blog drop contains the following data:</p>
<p>blog.title - the title of the blog.<br />
blog.description - the description of this blog<br />
<a href="http://blog.id/" target="_blank">blog.id</a> - the unique Hot Ink id number for this blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://hotink.net/2009/10/template-data-%e2%80%93-part-5-the-blog-drop/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Template Data – Part 4: The Issue Drop</title>
		<link>http://hotink.net/2009/10/template-data-%e2%80%93-part-4-the-issue-drop/</link>
		<comments>http://hotink.net/2009/10/template-data-%e2%80%93-part-4-the-issue-drop/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 14:44:35 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Advanced]]></category>

		<category><![CDATA[Announcements]]></category>

		<category><![CDATA[Core Concepts]]></category>

		<category><![CDATA[Development]]></category>

		<category><![CDATA[Documentation]]></category>

		<category><![CDATA[Features]]></category>

		<guid isPermaLink="false">http://hotink.net/?p=360</guid>
		<description><![CDATA[Issues represent the printed editions of your newspaper. You aren&#8217;t obligated to use issues to organize your content, but it does help readers navigate your site, especially those who are looking for an article that appeared in a certain issue of your newspaper. Issues are special; they can have an attached PDF.
Issue are generally accessed [...]]]></description>
			<content:encoded><![CDATA[<p>Issues represent the printed editions of your newspaper. You aren&#8217;t obligated to use issues to organize your content, but it does help readers navigate your site, especially those who are looking for an article that appeared in a certain issue of your newspaper. Issues are special; they can have an attached PDF.</p>
<p>Issue are generally accessed through the newspaper.latest_issues array, newspaper.latest_issue or through the &#8220;issues&#8221; array on an issues index page template.<br />
<span id="more-360"></span><br />
For each issue, the following is available:</p>
<p>issue.date - this is the date of the issue and can be parsed with the Liquid &#8220;date&#8221; filter.<br />
<a href="http://issue.name/" target="_blank">issue.name</a> - this is the special name given to this issue, if any<br />
issue.description - this is the special description given to this issue, if any<br />
issue.volume - the publication volume this issue belongs to<br />
issue.number - the number of this issue within the current volume<br />
issue.press_pdf_url - a link to the press-quality PDF of this issue (try not to use this, use the screen quality version instead), relative to &#8220;http://hotink.theorem.ca&#8221;<br />
issue.screen_pdf_url -  a link to the screen-quality PDF of this<br />
issue, preferred over the press-quality PDF, relative to &#8220;http://hotink.theorem.ca&#8221;<br />
issue.large_cover_image - Url of a 400px wide issue cover image, relative to &#8220;http://hotink.theorem.ca&#8221;<br />
issue.small_cover_image - Url of a 175px wide issue cover image, relative to &#8220;http://hotink.theorem.ca&#8221;<br />
issue.id - the issue&#8217;s unique Hot Ink id number<br />
issue.account_id - your account&#8217;s unique Hot Ink id number<br />
issue.articles - an array of all the articles in this issue.</p>
]]></content:encoded>
			<wfw:commentRss>http://hotink.net/2009/10/template-data-%e2%80%93-part-4-the-issue-drop/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Template Data – Part 3: The Newspaper Drop</title>
		<link>http://hotink.net/2009/10/template-data-%e2%80%93-part-3-the-newspaper-drop/</link>
		<comments>http://hotink.net/2009/10/template-data-%e2%80%93-part-3-the-newspaper-drop/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 14:33:27 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Advanced]]></category>

		<category><![CDATA[Core Concepts]]></category>

		<category><![CDATA[Development]]></category>

		<category><![CDATA[Documentation]]></category>

		<category><![CDATA[Features]]></category>

		<category><![CDATA[Introductory]]></category>

		<guid isPermaLink="false">http://hotink.net/?p=356</guid>
		<description><![CDATA[Of all the data you&#8217;ll use to build Hot Ink templates, probably the most important is the data associated with your newspaper itself. The &#8220;newspaper drop&#8221; is available and contains the same data on all templates and no matter what the context.
To learn more about Liquid, the templating language used by Hot Ink, read the [...]]]></description>
			<content:encoded><![CDATA[<p>Of all the data you&#8217;ll use to build Hot Ink templates, probably the most important is the data associated with your newspaper itself. The &#8220;newspaper drop&#8221; is available and contains the same data on all templates and no matter what the context.</p>
<p>To learn more about Liquid, the templating language used by Hot Ink, read the Liquid wiki at <a href="http://wiki.github.com/tobi/liquid" target="_blank">http://wiki.github.com/tobi/liquid</a></p>
<p>Your newspaper&#8217;s drop is the main piece of data used for building your template&#8217;s structure. If you&#8217;re interested in fleshing out your template with a little more data, be sure to take a good look at what&#8217;s inside this drop. We&#8217;re still adding new features to the site, so look forward to this drop expanding significantly over the next few month.<br />
<span id="more-356"></span><br />
Before getting into exactly what data is included in the newspaper drop, it&#8217;s important to note one key detail: your newspaper drop does NOT contain real-time data. That is, the data in this drop is not reloaded with each user/reader page-view. The newspaper drop contains a wide selection of data, such a wide selection that reloading it all with each page view would slow down your site&#8217;s performance significantly. Instead, the various pieces of data in this drop are loaded at a regular frequency from your newspaper&#8217;s Hot Ink archive.<br />
This means that changes made in your archive to the data in this drop can take a few minutes to become reflected on your site&#8217;s front page. If you add a category/section to your paper, for example, it may take a few minutes to for that category/section to appear on your site&#8217;s front page.</p>
<p>The newspaper drop includes the following data:<br />
<a href="http://newspaper.name/" target="_blank">newspaper.name</a> - the name of your newspaper&#8217;s account<br />
newspaper.homepage_url - the relative url of your site&#8217;s front page, used to link back to it.<br />
newspaper.root_url - the root url of your site that&#8217;s used to build composite urls, ie &lt;a href=&#8221;{{newspaper.root_url&#8221;/blogs&#8221;}}&gt;Blogs&lt;/a&gt;.</p>
<p>This sometimes differs in value from the homepage url, so be sure you&#8217;re using the right one.</p>
<div id=":sj" class="ii gt">newspaper.sections - your newspaper&#8217;s sections, in the order they&#8217;re stored in Hot Ink. Each section is available in a section drop, detailed in an upcoming post.<br />
newspaper.pages - your newspapers static pages, as created under the &#8220;Pages&#8221; link under Hot Ink &#8220;Publisher&#8221; tab.<br />
newspaper.blogs - an array of your newspaper&#8217;s blogs, each returned in a Blog drop, detailed in an upcoming post<br />
newspaper.latest_issue - the most recently dated issue of your paper.<br />
Issues are available in an issue drop, detailed in an upcoming post.<br />
newspaper.latest_issues - the 15 most recent issues of your publication.<br />
newspaper.latest_by_section[section_name] - a hash, keyed by section name, of the 5 most recent articles from each of your newspaper&#8217;s main categories. Can be used in liquid for loops (ie {% for section in newspaper.sections %}{% for article in newspaper.latest_by_section [<a href="http://section.name/" target="_blank">section.name</a>] %} {% endfor %}{% endfor %}) Read up on hashes in the Liquid wiki, linked above, to learn more about this technique.<br />
newspaper.latest_entries - Your paper&#8217;s 5 most recent blog entries, each returned in an &#8220;article drop&#8221; but with an array of blogs this entry is a member of returned as well. You can access an entry&#8217;s blogs through the array &#8220;entry.blogs&#8221; (technically, an entry can be in<br />
multiple blogs, so we use an array).<br />
newspaper.latest_by_blog[blog_name] - a hash, keyed by blog title, of the 5 most recent entries from each of your newspaper&#8217;s blogs. Can be<br />
used in liquid for loops (ie {% for blog in newspaper.blogs %}{% for entry in newspaper.latest_from_blog[blog.title] %} {% endfor %}{% endfor %}).</div>
]]></content:encoded>
			<wfw:commentRss>http://hotink.net/2009/10/template-data-%e2%80%93-part-3-the-newspaper-drop/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Template Data – Part 2: The Mediafile Drop</title>
		<link>http://hotink.net/2009/10/template-data-%e2%80%93-part-2-the-mediafile-drop/</link>
		<comments>http://hotink.net/2009/10/template-data-%e2%80%93-part-2-the-mediafile-drop/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 14:10:47 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Documentation]]></category>

		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hotink.net/?p=352</guid>
		<description><![CDATA[&#8220;Mediafiles&#8221; is the general term we use in Hot Ink to describe files you&#8217;ve uploaded into the archive. This can be any type of file, but Hot Ink provides special support for both .mp3s and images (and more supported mediafile types are coming soon.) When you upload a mediafile, Hot Ink automatically detects what sort [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;Mediafiles&#8221; is the general term we use in Hot Ink to describe files you&#8217;ve uploaded into the archive. This can be any type of file, but Hot Ink provides special support for both .mp3s and images (and more supported mediafile types are coming soon.) When you upload a mediafile, Hot Ink automatically detects what sort of file it is and initializes it accordingly.</p>
<p>Regardless of what type of mediafile you&#8217;re dealing with, its data is contained inside a &#8220;mediafile drop&#8221;. For more information on Liquid, the templating language used by Hot Ink, read &#8220;Liquid for Designers&#8221; on the Liquid wiki: http://wiki.github.com/tobi/liquid/liquid-for-designers</p>
<p>It&#8217;s important to note that you&#8217;ll most often access mediafiles in association with articles, specifically mediafiles returned through the article.mediafiles array. A convenient way to use the mediafiles array, especially in front page teasers, is to simply access the first mediafile in the array using the syntax: &#8220;article.mediafiles.first&#8221;. The alternative is to loop over the mediafiles array using a Liquid for loop: &#8220;{% for mediafile in article.mediafiles %}&#8221; to access an<br />
articles images. You need to use one of these methods even if you&#8217;ve only got one mediafile attached to your article.</p>
<div id=":v2" class="ii gt"><span id="more-352"></span><br />
The following data is available in the mediafile drop for all types of<br />
mediafile:</p>
<p>mediafile.title - the mediafile&#8217;s title<br />
mediafile.caption - the mediafile&#8217;s caption (in the context of the<br />
current article, each article can have its own caption)<br />
mediafiles.authors_list - a formatted list of the mediafile&#8217;s credits<br />
<a href="http://mediafile.id/" target="_blank">mediafile.id</a> - the mediafile&#8217;s unique Hot Ink id number<br />
mediafile.mediafile_type - this will be equal to either &#8220;Image&#8221;,<br />
&#8220;Audiofile&#8221;, or &#8220;Mediafile&#8221; depending on the type of media you&#8217;re<br />
working with. Use this value with a Liquid if block to toggle<br />
behaviour based on the type of this mediafile (ie. {% if<br />
mediafile.mediafile_type==&#8221;Image&#8221; %} ).<br />
mediafile.date - the mediafile&#8217;s date, as recorded by Hot Ink<br />
mediafile.original_url - the mediafiles original url relative to the Hot Ink main url. This intentionally excludes the &#8220;http://hotink.theorem.ca&#8221; that&#8217;s necessary to complete the absolute url, so feel free to create aliases under your own domain pointing to &#8220;http://hotink.theorem.ca&#8221; to give your site a more thorough domain branding.</p>
<p>If your mediafile is an image, the following additional data is available:</p>
<p>mediafile.image_url_[xxx] - this is a collection of data representing the path of this image (only supported for image filetypes) on the Hot Ink server in the various available sizes. They include:</p></div>
<div class="ii gt">image_url_original, image_url_thumb, image_url_small,<br />
image_url_medium, image_url_large. The specific sizes of these images is set in you account management interface. Using &#8220;image_url_original&#8221; will return a link to the image in  the format that it was originally uploaded in.<br />
mediafile.is_horizontal? - this will return true if your image is wider than it is tall.<br />
mediafile.is_vertical? - this will return true if your image is taller than it is wide.<br />
mediafile.height - the height of your image in pixels<br />
mediafile.width - the width of your image in pixels</div>
]]></content:encoded>
			<wfw:commentRss>http://hotink.net/2009/10/template-data-%e2%80%93-part-2-the-mediafile-drop/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Template Data – Part 1: The Article Drop</title>
		<link>http://hotink.net/2009/10/template-data-%e2%80%93-part-1-the-article-drop/</link>
		<comments>http://hotink.net/2009/10/template-data-%e2%80%93-part-1-the-article-drop/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 14:05:37 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Advanced]]></category>

		<category><![CDATA[Core Concepts]]></category>

		<category><![CDATA[Development]]></category>

		<category><![CDATA[Documentation]]></category>

		<category><![CDATA[Features]]></category>

		<category><![CDATA[Introductory]]></category>

		<guid isPermaLink="false">http://hotink.net/?p=348</guid>
		<description><![CDATA[When working with Liquid, the Hot Ink templating system, each type of object (like an article, a mediafile, an issue or even your newspaper itself) has data associated with it that&#8217;s available for use in your templates. Which piece of data is available depends on which template your working in, but perhaps the simplest case [...]]]></description>
			<content:encoded><![CDATA[<p>When working with Liquid, the Hot Ink templating system, each type of object (like an article, a mediafile, an issue or even your newspaper itself) has data associated with it that&#8217;s available for use in your templates. Which piece of data is available depends on which template your working in, but perhaps the simplest case is a Hot Ink article page template. On each article template there&#8217;s a variable called &#8220;article&#8221; representing the article requested by the user.</p>
<p><span id="more-348"></span>You access the data using what&#8217;s called &#8220;dot-syntax&#8221; which really just means that the data is in the format &#8220;variable_name.data&#8221;. To output data in a template, you should use liquid output tags (they look like this: {{ your_data_here }} or {{ article.title }} ). Follow the liquid link above for a better idea of how to use data in your templates, including how to use for loops on arrays (a common task).</p>
<p>For each article the following data is available:</p>
<p>article.title - an article&#8217;s title or headline<br />
article.subtitle - an article&#8217;s subtitle, subheadline or &#8216;deck&#8217;<br />
article.authors_list - a formatted list of an article&#8217;s authors<br />
<a href="http://article.id/" target="_blank">article.id</a> - an article&#8217;s unique Hot Ink id number<br />
article.mediafiles - an array of an articles attached mediafiles<br />
(including both articles and images). Follow the Liquid link above to<br />
learn how to work with arrays.<br />
article.images - an array of an articles attached images<br />
article.audiofiles - an array of an articles attached audiofiles<br />
article.published_at - a Gmail style date for the article (ie.<br />
&#8220;12:33pm&#8221; for a recent article, &#8220;Apr 2&#8243; for one this past April and<br />
&#8220;12/28/08&#8243; for one last December)<br />
article.published_at_detailed - a detailed date output for this<br />
article, useful with the Liquid &#8220;date&#8221; filter for custom date<br />
formatting.<br />
article.section - the name of the article&#8217;s primary section<br />
article.categories - an array of all the sections (also called<br />
categories) this article is a member of.<br />
article.excerpt - either the article&#8217;s summary or truncated article<br />
bodytext if no summary is present. Use Liquid&#8217;s truncatewords filter<br />
to cutomize its length.<br />
article.bodytext - the article&#8217;s full text. Since Hot Ink stores all<br />
text formatted with &#8220;Markdown&#8221; you should use the &#8220;markdown&#8221; filter to<br />
display bodytext (ie {{ article.bodytext | markdown }}).<br />
article.url - the url of the article.<br />
article.issues - an array of issues that this article was printed in<br />
article.comments - an array of this article&#8217;s comments</p>
<p>Additions to the article drop:</p>
<p>article.tags - an array of this article&#8217;s tags.<br />
article.tags_list - a tag-delimited list of this article&#8217;s tags<br />
article.tags_list_with_links - a tag-delimited list of this article&#8217;s<br />
tags with each tag name linking to a search for that tag.</p>
<p>article.authors - an array of this article&#8217;s authors.<br />
article.authors_list_with_</p>
<div id=":sz" class="ii gt">links - a user-readable list (separated with<br />
commas and &#8216;and&#8217;) of this article&#8217;s authors with each author&#8217;s name<br />
linking to a search for that author.</p>
<div class="im">article.comments -  an array of this article&#8217;s comments</div>
<p>article.comment_count - the number of comments on this article.<br />
article.comments_locked - a boolean (true/false) value returning<br />
whether or not this article&#8217;s comments are locked. Generally, if<br />
comments on an article are locked the article&#8217;s comments will display,<br />
but no new comments can be added.<br />
article.comments_enabled - a boolean value returning whether or not<br />
this article&#8217;s comments are enabled. Generally, if comments on an<br />
article are enabled they are visible to the reader. If they are<br />
disabled then no comments display and no comments can be added.</p>
<p>entry.blogs - blog entries also use the article drop. When accessing a<br />
blog entry you&#8217;ll have access to this variable which is an array of<br />
blogs that this entry belongs to. Most entries will belong to only one<br />
blog, which you can access conveniently as &#8216;entry.blogs.first&#8217;</p></div>
]]></content:encoded>
			<wfw:commentRss>http://hotink.net/2009/10/template-data-%e2%80%93-part-1-the-article-drop/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Introduction to Website Design with Hot Ink</title>
		<link>http://hotink.net/2009/10/introduction-to-website-design-with-hot-ink/</link>
		<comments>http://hotink.net/2009/10/introduction-to-website-design-with-hot-ink/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 14:03:21 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
		
		<category><![CDATA[Core Concepts]]></category>

		<category><![CDATA[Development]]></category>

		<category><![CDATA[Documentation]]></category>

		<category><![CDATA[Features]]></category>

		<category><![CDATA[Introductory]]></category>

		<guid isPermaLink="false">http://hotink.net/?p=341</guid>
		<description><![CDATA[**This post is a basic introduction to using the Hot Ink templating system. You may recognize it as the introduction to the Hot Ink Publisher google doc some users have had access to. Others have contributed to this document (thank to all of you), I&#8217;m posting it here to give it a wider audience and [...]]]></description>
			<content:encoded><![CDATA[<p>**This post is a basic introduction to using the Hot Ink templating system. You may recognize it as the introduction to the Hot Ink Publisher google doc some users have had access to. Others have contributed to this document (thank to all of you), I&#8217;m posting it here to give it a wider audience and to help answer some questions forusers new to Hot Ink.**</p>
<p>Publishing with Hot Ink is different from publishing with any other content management system. Hot Ink strives to make it possible for you to exercise the same kind of careful control over the structure, appearance and composition of your website as you do over the print edition of your publication. Because it&#8217;s so flexible, the templating system can be a little overwhelming at first. To help make it a little easier to understand by defining some key terms.</p>
<p>In order to be visible to the public, your website must have a design and it must be set to be your website&#8217;s current design.</p>
<p>A design is a collection of layouts, templates, stylesheets, javascript files and images that together define the complete visual<br />
presentation of your website. You can have as many designs as you like, but only one of them may be current at any one time. The design<br />
designated as current is the one shown to readers when they visit your website.</p>
<p>Designs control the appearance of your site using templates. Templates are dynamic HTML files written using a templating language called Liquid. Liquid is a simple, easy-to-learn addition to standard HTML that makes it possible to build complex templates that accommodate a variety of individual types and forms of content gracefully. For example, a well written Liquid template for your article page will display the article differently depending on whether the content is<br />
horizontal or vertical, an image or an audiofile, has a subhead or no subhead.<span id="more-341"></span></p>
<p>To learn how to use Liquid to design your site visit:<a href="http://wiki.github.com/tobi/liquid/liquid-for-designers" target="_blank"> http://wiki.github.com/tobi/liquid/liquid-for-designers</a></p>
<p>To cover the various functions of your website, Hot Ink supports five types of design template. There are layouts, page templates, partial templates, widget templates and front-page templates.  Layouts are like &#8220;wrapper&#8221; templates for page and front-page templates. The layout contains the content for the top and bottom of the web page, with the page template going in the middle. Many websites have common top and bottom portions that are shared across<br />
many pages; layouts make it easy to write that code once and update it only once when a change needs to be made.</p>
<p>Page templates contain the actual page code for your site. Hot Ink supports page templates for the following &#8220;pages&#8221;: article page, section index page, search results page, blogs list page, blog home page, blog entry page, issues list page and issue contents page. Each page has a different set of data available for display, so be sure to pay close attention to what&#8217;s available on the page you&#8217;re working on. You can find the data availability information at the end of this<br />
guide along with  little more information about each page type. Page templates can be wrapped in a layout for consistent visual style across multiple pages.</p>
<p>Partial templates are time-savers. They are small templates that can be rendered (that&#8217;s what we call it when we &#8220;display&#8221; a template) inside of any other template, even other partial templates. This is good for building pages that reuse code and makes the maintenance of your site a lot easier in the long run.<br />
For example, you would use a partial template to outline a story teaser structure for your front page that&#8217;s reused over and over again with different articles inside (if you&#8217;re smart you&#8217;ll do this with a Liquid &#8220;for loop&#8221;). You could also use a partial template to build a media box you&#8217;d like to see on the right hand side of all your pages. Though you would include that partial on 5 or 6 pages, you would only have to edit it once when it was time to change.</p>
<p>Partial templates are a powerful part of Hot Ink site design.</p>
<p>Widget templates are even more powerful. They are similar to partials in that they can be rendered inside any template except other widget templates. However, widget templates are different from partial templates in that they include a special set of data that should appear inside them.</p>
<p>When designing a widget template the first thing you should do is build the template schema. A schema is an outline of entities, basically sets of content (like articles or blog entries), which could appear on the page. To create a schema for your widget template, click the “add entity” button. You should see a box appear with text fields to add a name and description and dropdown lists to select what data type of item will populate the widget, for example, “articles,” and<br />
the quantity of items that it will fit. In the future, data types will expand to include media, blogs, blog entries and other content. For now, they are sets of articles only.</p>
<p>Inside the widget templates, an entity can be accessed as a &#8216;Liquid array&#8217; using the name you give to it. I.e., feature_articles can be accessed using the liquid &#8220;for loop&#8221; with code that looks like:</p>
<p>{% for article in feature_articles %}<br />
{{ Your article content here }}<br />
{% endfor %}</p>
<p>So, the schema is made up of these entities and the widget template refers to them to fill its structure with data. You will be able to make many different types of content available to each widget template depending on which of these entities you use. Remember, right now we are just putting the template together.  The widget template provides the structure, but it doesn’t get fed with content until you create the actual widget.</p>
<p>To create a widget, go to the publisher dashboard and click on the “new” button next to “Current Widgets.” When you create a widget you can fill in the  schema from the template with real articles by dragging and dropping articles into the appropriate places.</p>
<p>You can then include that widget in a page template using the Liquid &#8220;widget&#8221; tag with the name you give to your new widget.</p>
<p>It might look like this: {% widget &#8220;News feature box&#8221; %}</p>
<p>The above code would render the &#8220;News features box&#8221; widget in whatever template you placed it in. It&#8217;s likely that this widget was built from a widget template named &#8220;Feature box&#8221; and that there could also be other widgets built from that template, like &#8220;Arts feature box&#8221;, but containing different content.</p>
<p>Front-page templates are exactly that, templates for the front page of your site. Specifically, they&#8217;re a special type of widget template. Since the front page of a newspaper website is the most complicated aspect of the site to design and manage, Hot Ink uses the flexible widget template system to give you full, granular control over your front page&#8217;s appearance.</p>
<p>A good front page should have a wide variety of content to help draw in readers with a variety of interests. It should also change frequently to reward readers who check back often for new content. Those readers are the bread and butter of web publishing. To accomplish this, simply create a front page template with a schema, just like a widget template. Then, from the Dashboard, build a new front page, fill it with content, preview it and—when you&#8217;re ready— make it your current front page.</p>
<p>Special tip: When combined with partial templates and a Liquid for loop, the front page template system is a powerful tool.</p>
<p>Hot Ink Publisher currently supports only one page template for each page type (blog, article, section index, static page, etc) except the front page, which can and should alternate from template to template. Creating more than one template for a page can lead to unpredictable results, so be warned. If you want to test a new template, consider building a new &#8217;scratchpad&#8217; design that copies your existing one and play with the templates there.</p>
<p>Widgets can be placed inside any template other than another widget template.</p>
<p>Your site only has one front page at a time. You control which one is current on your dashboard, which is available on the Publisher sub-menu. If no front page is set as the current one your site will appear offline to readers. Similarly, if no design is set as the current design, your site will appear offline to readers trying to view inside-page content.</p>
<p>If you&#8217;ve got any questions about the use of Hot Ink, especially during the Fall 2009 beta period, please send them along to <span style="color: #000000;"><strong>chris at hotink dot net</strong>.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://hotink.net/2009/10/introduction-to-website-design-with-hot-ink/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Don&#8217;t be alarmed</title>
		<link>http://hotink.net/2009/10/dont-be-alarmed/</link>
		<comments>http://hotink.net/2009/10/dont-be-alarmed/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 14:02:52 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
		
		<category><![CDATA[Announcements]]></category>

		<category><![CDATA[Documentation]]></category>

		<category><![CDATA[Introductory]]></category>

		<guid isPermaLink="false">http://hotink.net/?p=345</guid>
		<description><![CDATA[Hey folks,
I&#8217;m about to post a ton of HotInk documentation that was previously only available on our email list serv and authored by Chris and Andrew. These articles are easy to find: they&#8217;re all in the Documentation category.
You can thank me later.
Mark
]]></description>
			<content:encoded><![CDATA[<p>Hey folks,</p>
<p>I&#8217;m about to post a ton of HotInk documentation that was previously only available on our email list serv and authored by Chris and Andrew. These articles are easy to find: they&#8217;re all in the <a href="http://hotink.net/category/documentation/">Documentation category</a>.</p>
<p>You can thank me later.</p>
<p>Mark</p>
]]></content:encoded>
			<wfw:commentRss>http://hotink.net/2009/10/dont-be-alarmed/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
