<?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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Dented Reality &#187; Projects</title>
	<atom:link href="http://dentedreality.com.au/tags/projects/feed/" rel="self" type="application/rss+xml" />
	<link>http://dentedreality.com.au</link>
	<description>Beau Lebens throws down his opinion on all sorts of things he doesn&#039;t know too much about.</description>
	<lastBuildDate>Tue, 07 Feb 2012 20:48:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-alpha-19719</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Adding Blog Headlines to a WordPress Page/Theme</title>
		<link>http://dentedreality.com.au/2009/02/adding-blog-headlines-to-a-wordpress-pagetheme/</link>
		<comments>http://dentedreality.com.au/2009/02/adding-blog-headlines-to-a-wordpress-pagetheme/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 19:34:47 +0000</pubDate>
		<dc:creator>Beau Lebens</dc:creator>
				<category><![CDATA[Techn(ical|ology)]]></category>
		<category><![CDATA[aggregation]]></category>
		<category><![CDATA[custom fields]]></category>
		<category><![CDATA[headlines]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[postmeta]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[templates]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://dentedreality.com.au/?p=938</guid>
		<description><![CDATA[You may have noticed that I recently added a list of &#8220;Recent Headlines&#8221; to some of the pages that describe my Projects on this site. This is handled dynamically through WordPress, so that if I ever post a new blog entry relating to one of those projects, it automatically appears on the appropriate project page. [...]]]></description>
			<content:encoded><![CDATA[<p>You may have noticed that I recently added a list of &#8220;Recent Headlines&#8221; to some of the pages that describe my <a href="http://dentedreality.com.au/projects/">Projects</a> on this site. This is handled dynamically through <a href="http://wordpress.org">WordPress</a>, so that if I ever post a new blog entry relating to one of those projects, it automatically appears on the appropriate project page.</p>
<p><span id="more-938"></span></p>
<p>By default, <a href="http://codex.wordpress.org/Pages">Pages</a> within WordPress will look for a file called &#8220;page.php&#8221; within your theme, and use that to control their layout/visual appearance. If that file isn&#8217;t there, then they&#8217;ll use &#8220;index.php&#8221; (read more about the <a href="http://codex.wordpress.org/Template_Hierarchy">WordPress Theme Hierarchy</a>). You also have the option of creating <a href="http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates">custom Page Templates</a>, and then selecting a specific one to use when you create a Page. That&#8217;s what I did, using something like the following process:</p>
<ol>
<li>Go into your theme directory and make a copy of your &#8220;page.php&#8221; file. I called mine &#8220;page-headlines.php&#8221;</li>
<li>Open up page-headlines.php in your favorite text editor, and paste the following code after you output the content (and possibly any footer/meta information) for the Page. This is going to be different for each theme, but generally they will use &lt;?php the_content(); ?&gt; somewhere (which outputs the content of the Page). Make sure you don&#8217;t mess up any DIVs or other tags that are required for layout. Here&#8217;s the code you need:
<pre>&lt;?php if ( $tag = get_post_custom_values( 'headlines-tag' ) ) : ?&gt;
    &lt;?php $headlines = get_posts(array('tag'=&gt;$tag[0])) ?&gt;
    &lt;?php if ( count( $headlines ) ) : ?&gt;
        &lt;h2&gt;Recent Headlines&lt;/h2&gt;
        &lt;ul&gt;
        &lt;?php foreach ( $headlines as $post ) : setup_postdata( $post ); ?&gt;
            &lt;li&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;?php endforeach; ?&gt;
        &lt;/ul&gt;
    &lt;?php endif; ?&gt;
&lt;?php endif; ?&gt;</pre>
</li>
<li>At the top of that file, you need to make sure you have a unique name for selecting this template. The name can be pretty much anything, but must be included as shown below:
<pre>&lt;?php
/*
Template Name: Project Details with Headlines
*/
?&gt;</pre>
</li>
<li>Upload that file into your theme directory.</li>
<li>Go to Pages &gt; Add New (or edit an existing one) in wp-admin, and add a title/Page content if you need to.</li>
<li>On the right of the Page Edit screen (unless you moved it), there will be a block titled &#8220;Attributes&#8221; which includes a &#8220;Template&#8221; option. Select your option from the list.</li>
<li>Here comes the magic bit. Jump over to the &#8220;Custom Fields&#8221; block, and add a custom field with the name set to &#8220;headlines-tag&#8221; (which you&#8217;ll notice is what we&#8217;re querying in the code above). Set the value to any tag name that you&#8217;ll then use on a blog post (or may already have used).</li>
<li>Publish the page and then go and view it. If you have any posts in your blog that match the &#8220;headlines-tag&#8221; you specified, they should show up in a list underneath your Page content.</li>
</ol>
<p>You can customize the output however you like, using the same sort of <a href="http://codex.wordpress.org/Template_Tags">template tags</a> as you have available in <a href="http://codex.wordpress.org/The_Loop">The Loop</a>. Get creative. Oh, and there&#8217;s another way to do this, using shortcodes, <a href="http://www.smashingmagazine.com/2009/02/02/mastering-wordpress-shortcodes/">described over at SmashingMagazine</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dentedreality.com.au/2009/02/adding-blog-headlines-to-a-wordpress-pagetheme/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
	</item>
		<item>
		<title>More Projects To Come</title>
		<link>http://dentedreality.com.au/2003/04/more-projects-to-come/</link>
		<comments>http://dentedreality.com.au/2003/04/more-projects-to-come/#comments</comments>
		<pubDate>Tue, 08 Apr 2003 12:12:00 +0000</pubDate>
		<dc:creator>Beau Lebens</dc:creator>
				<category><![CDATA[Site News]]></category>
		<category><![CDATA[avantblog]]></category>
		<category><![CDATA[dented reality]]></category>
		<category><![CDATA[dentedreality]]></category>
		<category><![CDATA[dentedreality.com.au]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[webpad]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://wiggin.local/dev/dentedreality.com.au/2003/04/more-projects-to-come/</guid>
		<description><![CDATA[The main 2 sections of the site to be completed are the projects (still have some micro-sites to put together here) and the search system. I will also need to bring across the copyright info from the old site, but that will largely be copy/paste. The search system will be the most interesting part to [...]]]></description>
			<content:encoded><![CDATA[<p>The main 2 sections of the site to be completed are the projects (still have some micro-sites to put together here) and the search system. I will also need to bring across the copyright info from the old site, but that will largely be copy/paste. The search system will be the most interesting part to develop, and I have some nice plans for it as well &#8211; We&#8217;ll see what I can do as far as combining 2 XML documents and an XSLT together (server-side using PHP of course!) to create the results.</p>
<p>The projects really could use a little work, but I just don&#8217;t have time to work on them right now. Once the site is live, I will be working on RESTments again to get that going, and then when that is up, the projects will all receive a make-over to ensure that they work with PHP&#8217;s register_globals off and magic_quotes_gpc off as well. I will also eventually get to working on new versions of webpad (which I have some great plans for) and AvantBlog (want to make a few versions, so that there is one for each major type if possible.</p>
<p>So now, with no other external contracts to take up my time, it is just a matter of not falling asleep and then all I have to do is my website, should mean that it&#8217;s up within a week or 2.</p>
]]></content:encoded>
			<wfw:commentRss>http://dentedreality.com.au/2003/04/more-projects-to-come/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
	</item>
		<item>
		<title>Trudging Along</title>
		<link>http://dentedreality.com.au/2003/04/trudging-along/</link>
		<comments>http://dentedreality.com.au/2003/04/trudging-along/#comments</comments>
		<pubDate>Tue, 08 Apr 2003 12:12:00 +0000</pubDate>
		<dc:creator>Beau Lebens</dc:creator>
				<category><![CDATA[Site News]]></category>
		<category><![CDATA[Techn(ical|ology)]]></category>
		<category><![CDATA[blosxom]]></category>
		<category><![CDATA[dented reality]]></category>
		<category><![CDATA[dentedreality]]></category>
		<category><![CDATA[dentedreality.com.au]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[xoomle]]></category>

		<guid isPermaLink="false">http://wiggin.local/dev/dentedreality.com.au/2003/04/trudging-along/</guid>
		<description><![CDATA[Work on my site is coming along. I have added in blosxom v1.1, which went pretty much without a hitch. I had to modify my template slightly, but that was more because of my dodgy custom handling, rather than anything to do with blosxom itself. I&#8217;ve been spending some time on the projects section, getting [...]]]></description>
			<content:encoded><![CDATA[<p>Work on my site is coming along. I have added in <a href="http://www.raelity.org/apps/blosxom/">blosxom v1.1</a>, which went pretty much without a hitch. I had to modify my template slightly, but that was more because of my dodgy custom handling, rather than anything to do with blosxom itself.</p>
<p>I&#8217;ve been spending some time on the <a href="/projects/">projects section</a>, getting the project pages up to scratch and re-formatted; it&#8217;s looking pretty good. I am taking a few of the old projects offline, because they don&#8217;t have any documentation, don&#8217;t work anymore, things like that <img src='http://dentedreality.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;m not going to put a date on when the site will be live, but given the current progress, and the list of things to do still, I would estimate about 2 weeks. Here&#8217;s the current list;</p>
<ol>
<li><strong>Projects Sections</strong>
<ol type="a">
<li>Blogger API (functions, classes + meta)</li>
<li>phpMassMail (also requires some work to make it 4.2+ compatible, and re-format documentation to include)</li>
<li>JSSearch (would like to get some more information/documentation/examples included)</li>
<li>JSValidate (want to update this to include the ability to open a popup window rather than an alert &#8211; optional)</li>
<li>Client work and websites</li>
</ol>
</li>
<li><strong>Contact Form</strong>
<ol type="a">
<li>Layout/design</li>
<li>Contingency design</li>
<li>Processing/handling</li>
<li>Result/output page</li>
</ol>
</li>
<li><strong>Search System</strong>
<ol type="a">
<li>Layout/Design (of the results, as well as extra options, defining manual entries etc)</li>
<li>Processing system (integrating my manual results with Google/XooMLe&#8217;s results)</li>
<li>Management of my manual entries (and a decent name for them <img src='http://dentedreality.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ol>
</li>
</ol>
<p>So there we go. That&#8217;s what I&#8217;ll be working on in the near future. And for those interested, I will be creating a custom search system, which integrates <a href="http://www.google.com/">Google</a>&#8216;s results for within my website (using <a href="/xoomle/">XooMLe</a>) with a selection of manual &#8220;Top Picks&#8221; or &#8220;Best Bets&#8221; which I have selected for certain terms. I have the rough idea planned out already, just need to implement it in code. I will probably make the code available for download once it&#8217;s complete as well, so keep an eye out for that <img src='http://dentedreality.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>That&#8217;s all for now &#8211; time to get back to life.</p>
]]></content:encoded>
			<wfw:commentRss>http://dentedreality.com.au/2003/04/trudging-along/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
	</item>
	</channel>
</rss>

