<?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/"
	>

<channel>
	<title>六月麦田 &#187; open source</title>
	<atom:link href="http://blog.wangxiaoxing.net/tag/open-source/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.wangxiaoxing.net</link>
	<description>阳光和风穿过身体，谁也没留下痕迹</description>
	<lastBuildDate>Mon, 06 Feb 2012 09:01:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>JDoc Tag of Type &#8220;module&#8221;</title>
		<link>http://blog.wangxiaoxing.net/2009/09/jdoc-tag-of-type-module/</link>
		<comments>http://blog.wangxiaoxing.net/2009/09/jdoc-tag-of-type-module/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 11:57:25 +0000</pubDate>
		<dc:creator>Wang Xiaoxing</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[jdoc]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://blog.wangxiaoxing.net/?p=10105</guid>
		<description><![CDATA[There are only a few words about jdoc tag of type &#8220;module&#8221; In Joomla! online docs. The docs shows attributes such as name, style, id by code snippet without any description on that. So I was confused when I tried this tag in my template. The problem is, as the name attribute refers to the [...]]]></description>
			<content:encoded><![CDATA[<p>There are only a few words about jdoc tag of type &#8220;module&#8221; In Joomla! online docs. <a href="http://docs.joomla.org/Jdoc_statements#Module" target="_blank">The docs</a> shows attributes such as name, style, id by code snippet without any description on that. So I was confused when I tried this tag in my template. The problem is, as the name attribute refers to the module type, how can I specify the module instance I want? I searched google for many articles and <a href="http://blog.opensourcenetwork.eu/tutorials/advanced/jdocinclude-typemodule-single" target="_blank">got a anwser</a> that when there are more than one modules of the type, the first one in order will be taken by Joomla!. Yes, that&#8217;s silly. At last I fount a related tracker item in JoomlaCode on which the author impied that&#8217;s a defect of Joomla! docs. There&#8217;s an attribute named &#8220;title&#8221; refering to the instance title actually.</p>
<p>As a newbie of Joomla! framework, I feel Joomla! docs are not friendly enough for a newer. Some of contents are out of date, while some features are not even mentioned in docs. For example, by common sense I guess I can pass parameters to module instance in my template, but I can&#8217;t find it in docs, either in sample templates. Just like what I did in recent days with Joomla!, I dug into the framework code to see what happend on the tag. The anwser is Joomla! sets a variable named &#8220;attribs&#8221; in the scope of the module which contains attributes in the tag in the form of name-value pairs. Well, Joomla! code is much more friendly to read then docs, although there are few inline comments&#8230;</p>
<p>Documents and community are really very important for an open source project.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.wangxiaoxing.net/2009/09/jdoc-tag-of-type-module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

