<?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>johannes.jarolim.com &#187; Programmierung</title>
	<atom:link href="http://johannes.jarolim.com/blog/tag/programmierung/feed/" rel="self" type="application/rss+xml" />
	<link>http://johannes.jarolim.com/blog</link>
	<description>Willkommen auf der privaten Homepage von Johannes Jarolim, Salzburg, Österreich / Welcome to the private homepage of Johannes Jarolim, Salzburg, Austria, Europe.</description>
	<lastBuildDate>Mon, 06 Feb 2012 14:14:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel="next" href="http://johannes.jarolim.com/blog/tag/programmierung/feed/?page=2" />

		<item>
		<title>Typoscript bzw. TS-Files parsen in Typo3 Frontend Plugin</title>
		<link>http://johannes.jarolim.com/blog/2010/06/25/typoscript-bzw-ts-files-parsen-in-typo3-frontend-plugin/</link>
		<comments>http://johannes.jarolim.com/blog/2010/06/25/typoscript-bzw-ts-files-parsen-in-typo3-frontend-plugin/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 13:58:29 +0000</pubDate>
		<dc:creator>Johannes</dc:creator>
				<category><![CDATA[Know-How]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[frontend]]></category>
		<category><![CDATA[Parsen]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[TS]]></category>
		<category><![CDATA[typoscript]]></category>

		<guid isPermaLink="false">http://johannes.jarolim.com/blog/?p=876</guid>
		<description><![CDATA[Wer schon immer mal selber TypoScript aus einem File bzw. direkt aus einem String verwenden wollte, um zB. selber Contentelemente zu rendern: Hier ein kleines Code Sample: Voila: Wir haben mit ein paar Zeilen Code ein COA-Objekt instanziert, konfiguriert und den gerenderten Inhalt in der PHP-Variable $output abgelegt.]]></description>
			<content:encoded><![CDATA[<p>Wer schon immer mal selber TypoScript aus einem File bzw. direkt aus einem String verwenden wollte, um zB. selber Contentelemente zu rendern: Hier ein kleines Code Sample:</p>
<pre class="brush: php; title: ; notranslate">

$typoscript = '
  10 = TEXT
  10.value = Hallo Welt!
';

$parserInstance = t3lib_div::makeInstance('t3lib_tsparser');
$parserInstance-&gt;parse($typoscript);

$output = $this-&gt;cObj-&gt;COBJ_ARRAY($parserInstance-&gt;setup);
</pre>
<p>Voila: Wir haben mit ein paar Zeilen Code ein COA-Objekt instanziert, konfiguriert und den gerenderten Inhalt in der PHP-Variable $output abgelegt.</p>
]]></content:encoded>
			<wfw:commentRss>http://johannes.jarolim.com/blog/2010/06/25/typoscript-bzw-ts-files-parsen-in-typo3-frontend-plugin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Unglaublich aber doch noch: WordPress Theme Relaunch</title>
		<link>http://johannes.jarolim.com/blog/2010/05/30/wordpress-theme-relaunch-die-dritte/</link>
		<comments>http://johannes.jarolim.com/blog/2010/05/30/wordpress-theme-relaunch-die-dritte/#comments</comments>
		<pubDate>Sun, 30 May 2010 11:25:42 +0000</pubDate>
		<dc:creator>Johannes</dc:creator>
				<category><![CDATA[Nicht kategorisiert]]></category>
		<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[Theme]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://johannes.jarolim.com/blog/?p=863</guid>
		<description><![CDATA[Und es ist schon wieder soweit: Ein neues Theme ist online. Handmade natürlich. Beim Design der neuen Seite habe ich mich diesemal auf folgende Punkt konzentriert: Weg mit allem Überflüssigen: Fokus auf dem Inhalt Inhaltsabhängiges Layout: Bilder müssen anders präsentiert werden als normale Posts Große Überschriften, viel Whitespace Mehr Fokus auf die (zugegebenermaßen selteneren) Textposts [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Und es ist schon wieder soweit:</strong> Ein neues Theme ist online. Handmade natürlich.</p>
<p>Beim Design der neuen Seite habe ich mich diesemal auf folgende Punkt konzentriert:</p>
<ul>
<li>Weg mit allem Überflüssigen: Fokus auf dem Inhalt</li>
<li>Inhaltsabhängiges Layout: Bilder müssen anders präsentiert werden als normale Posts</li>
<li>Große Überschriften, viel Whitespace</li>
<li>Mehr Fokus auf die (zugegebenermaßen selteneren) Textposts &#8211; Die sollen nicht zwischen den vielen Bildern verloren gehen</li>
</ul>
<p>Die Umsetzung sollte folgende Kriterien erfüllen</p>
<ul>
<li>Lean HTML</li>
<li>Sauberes CSS</li>
<li>Saubere Umsetzung in WordPress Theme-Infrastruktur</li>
</ul>
<p>Meiner Meinung nach ist mir das ganz gut gelungen: Mal schauen, wie sich die Seite weiter bewährt und bei den Leuten auf Dauer ankommt.</p>
]]></content:encoded>
			<wfw:commentRss>http://johannes.jarolim.com/blog/2010/05/30/wordpress-theme-relaunch-die-dritte/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Typo3 Contentelemente an Unterseiten vererben</title>
		<link>http://johannes.jarolim.com/blog/2009/11/24/typo3-contentelemente-an-unterseiten-vererben/</link>
		<comments>http://johannes.jarolim.com/blog/2009/11/24/typo3-contentelemente-an-unterseiten-vererben/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 16:52:36 +0000</pubDate>
		<dc:creator>Johannes</dc:creator>
				<category><![CDATA[Know-How]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[kb_cont_slide]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[typoscript]]></category>

		<guid isPermaLink="false">http://johannes.jarolim.com/blog/?p=728</guid>
		<description><![CDATA[Wer in einem Seitenbaum zentral Inhalte einpflegen möchte und diese automatisiert auf Unterseiten anzeigen möchte, hat mehrere Möglichkeiten. Neben Datensatzverlinkungen und TypoScript Referenzierungen finde ich die Möglichkeit der automatisierten Vererbung via KB Content Slide Plugin (kb_cont_slide) sehr elegant. Die Funktionsbeschreibung Generell nimmt KB Content Slide die TypoScript-Definition eines Contentelements entgegen und sucht zuerst auf der [...]]]></description>
			<content:encoded><![CDATA[<p>Wer in einem Seitenbaum zentral Inhalte einpflegen möchte und diese automatisiert auf Unterseiten anzeigen möchte, hat mehrere Möglichkeiten. Neben Datensatzverlinkungen und TypoScript Referenzierungen finde ich die Möglichkeit der automatisierten Vererbung via KB Content Slide Plugin (kb_cont_slide) sehr elegant.</p>
<p><span id="more-728"></span></p>
<h2>Die Funktionsbeschreibung</h2>
<p>Generell nimmt KB Content Slide die TypoScript-Definition eines Contentelements entgegen und sucht zuerst auf der aktuellen und danach allen übergeordneten Seiten danach. Wird das definierte Element gefunden, wird es zurückgeliefert. Das entspricht einer Vererbung: Ist das gesuchte Element auf einer Elternseite definiert, wird es auch auf allen Unterseiten dargestellt.</p>
<h2>Die Standardnutzung</h2>
<p>Wie auch in der Dokumentation beschrieben, ist es ein einfaches zB. die rechte Contentspalte auf allen Unterseiten darzustellen. Dazu definiert man nur den entsprechenden Marker im Template (zB. ###RECHTE_SPALTE###) und weist diesem den Inhalt des Plugins zu:</p>
<pre class="brush: plain; title: ; notranslate">page.10.marks.RECHTE_SPALTE &lt; plugin.tx_kbcontentslide_pi1</pre>
<p>Da das Plugin ja noch nicht wissen kann, welche Spalte man angezeigt haben möchte, muß man das direkt danach noch konfigurieren:</p>
<pre class="brush: plain; title: ; notranslate">page.10.marks.RECHTE_SPALTE {
  content.select.where = colPos=2
}</pre>
<h2>Jetzt wird es interessant</h2>
<p>Nach Blick in das (sehr schlanke) Plugin selber offenbart sich seine Eleganz: In das Attribut content darf in Wirklichkeit alles reindefiniert werden: KB Content Slide geht in einer Schleife alle Seiten der Vererbungslinie durch, setzt die globale Variable $GLOBALS["TSFE"]-&gt;contentPid und läßt Typo3 das definierte Inhaltselement instanzieren. Wird ein Inhaltselement zurückgegeben wird die Schleife gestoppt: Wir haben, was wir suchten.</p>
<p>Hier die TypoScript-Standarddefinition des content-Attributs:</p>
<pre class="brush: plain; title: ; notranslate">plugin.tx_kbcontslide_pi1 {
  content = CONTENT
  content {
    table = tt_content
    select {
      pidInList = this
      where = colPos=0
      orderBy = sorting
    }
  }
}</pre>
<h2>Page Resource Bilder vererben und ausgeben</h2>
<p>Mit solchem Wissen ausgestattet lassen sich natürlich ganz lässige Dinge erledigen. Hiermit gebe ich zB. ein zentral hinaufgeladenes Bild (Page Properties / Resources / Files) auf allen Unterseiten aus:</p>
<pre class="brush: plain; highlight: [7,8,9,10,11,12,13,14,15,16]; title: ; notranslate">tpl.image = COA
tpl.image {

  10 = TEXT
  10.value = &lt;div id=&quot;image&quot;&gt;

  20 &lt; plugin.tx_kbcontslide_pi1
  20.content.table = pages
  20.content.select.where &gt;

  20.content.renderObj = IMAGE
  20.content.renderObj {
    file.import = uploads/media/
    file.import.field = media
    file.import.listNum = 0
  }

  30 = TEXT
  30.value = &lt;/div&gt;

}</pre>
]]></content:encoded>
			<wfw:commentRss>http://johannes.jarolim.com/blog/2009/11/24/typo3-contentelemente-an-unterseiten-vererben/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Your own photo mosaic page with WordPress and Yet Another Photoblog</title>
		<link>http://johannes.jarolim.com/blog/2008/07/24/your-own-photo-mosaic-page-with-wordpress-and-yapb/</link>
		<comments>http://johannes.jarolim.com/blog/2008/07/24/your-own-photo-mosaic-page-with-wordpress-and-yapb/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 07:43:19 +0000</pubDate>
		<dc:creator>Johannes</dc:creator>
				<category><![CDATA[Know-How]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Yet Another Photoblog]]></category>
		<category><![CDATA[Know How]]></category>
		<category><![CDATA[Mosaic]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programmierung]]></category>
		<category><![CDATA[Templates]]></category>
		<category><![CDATA[YAPB]]></category>

		<guid isPermaLink="false">http://johannes.jarolim.com/blog/?p=352</guid>
		<description><![CDATA[You&#8217;re using YAPB, you want to create or use your own theme and now you&#8217;re stuck on how to create a mosaic page featuring all your photos? Thanks god &#8211; Here&#8217;s a post describing exactly that topic ;-) Basically, a mosaic page is a standard WP page using a custom page template. The job of [...]]]></description>
			<content:encoded><![CDATA[<p><strong>You&#8217;re using <a href="http://johannes.jarolim.com/yapb">YAPB</a>, you want to create or use your own theme and now you&#8217;re stuck on how to create a mosaic page featuring all your photos?</strong> Thanks god &#8211; Here&#8217;s a post describing exactly that topic ;-) <span id="more-352"></span> Basically, a mosaic page is a standard WP page using a custom page template. The job of the custom page template is to fetch all your YAPB images and to display them in some form. So: Let&#8217;s just do it:</p>
<h2>Create a page template file</h2>
<p>So let&#8217;s start with our new page template: Create a file named <strong>tpl.yapb.mosaic.php</strong> in your current theme folder.</p>
<h3>Throw in some WP Metadata</h3>
<p>As a first step we define a standard PHP comment at top with meta data so WordPress can identify this file as template:</p>
<pre>&lt;?php /* Template Name: YAPB Photo Mosaic Page (Prototype) */ ?&gt;</pre>
<h3>Create some infrastructure</h3>
<p>Now some default infrastructure for WP templates like calling the header, starting the WP loop, displaying the page title and content:</p>
<pre>&lt;?php
  get_header(); ?&gt;
  &lt;!-- Let's start the WordPress loop --&gt;
  &lt;?php if (have_posts()): while (have_posts()): the_post(); ?&gt;
    &lt;?php global $post; ?&gt;
    &lt;div class="post"&gt;
      &lt;h1&gt;&lt;a href="&lt;?php echo get_permalink() ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h1&gt;
      &lt;?php the_content('read more...'); ?&gt;</pre>
<h3>Define what you want</h3>
<p>To display the thumbnails of all our photos, we need to know what we want to fetch exactly. In my case, i assign each photoblog post to a special category &#8220;photoblog&#8221;. That category is configured in YAPB &#8211; so i can ask for it&#8217;s id and get all (or at least the last 1000) posts of that category with a simple WordPress function. Additionally i use this php part to define the format of the thumbnails i want to display on this page:</p>
<pre>&lt;?php
  // Let's get the last 1000 photoblog entries
  $photoblog_posts = get_posts( 'category=' . get_option('yapb_default_post_category') . '&amp;numberposts=1000' );
  // Let's define the needed thumbnail format
  $thumbConfig = array( 'h=80', 'q=100', 'fltr[]=usm|60|0.5|3' );
?&gt;</pre>
<h3>Loop through the fetched posts</h3>
<p>Since we should have all needed posts now, we simply cycle through all of them, get the image and display the thumbnails. In this sample i use a unordered list as structure for the images:</p>
<pre>&lt;ul&gt;
  &lt;?php foreach($photoblog_posts as $photoblog_post): ?&gt;
    &lt;?php if (!is_null($image = YapbImage::getInstanceFromDb($photoblog_post-&gt;ID))): ?&gt;
      &lt;li&gt;&lt;a title="&lt;?php echo $photoblog_post-&gt;post_title ?&gt;" href="&lt;?php echo get_permalink($photoblog_post-&gt;ID) ?&gt;"&gt;&lt;img src="&lt;?php echo $image-&gt;getThumbnailHref($thumbConfig) ?&gt;" width="&lt;?php echo $image-&gt;getThumbnailWidth($thumbConfig) ?&gt;" height="&lt;?php echo $image-&gt;getThumbnailHeight($thumbConfig) ?&gt;" alt="&lt;?php echo $photoblog_post-&gt;post_title ?&gt;" /&gt;&lt;/a&gt;&lt;/li&gt;
    &lt;?php endif ?&gt;
  &lt;?php endforeach ?&gt;
&lt;/ul&gt;</pre>
<h3>Close the previously created infrastructure</h3>
<p>To cleanly finalize the page template we now close the previously opened WordPress loop and call the footer.</p>
<pre>&lt;?php endwhile; endif; ?&gt;&lt;!-- end of the WP loop --&gt;
&lt;?php get_footer(); ?&gt;</pre>
<p>The complete file may be found in <a href="http://johannes.jarolim.com/blog/wp-content/uploads/File/wp_page_template_mosaic.zip">this .zip file (275 KB)</a>.</p>
<h3>Finally just use the new page template</h3>
<p>To use the page template, just go to your admin panel, write a new page and choose your newly created page template &#8211; Voila: You have your first YAPB mosaic page!</p>
]]></content:encoded>
			<wfw:commentRss>http://johannes.jarolim.com/blog/2008/07/24/your-own-photo-mosaic-page-with-wordpress-and-yapb/feed/</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
	</channel>
</rss>

