<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[TNF : Tatter Network Foundation forum - 스킨의 index.xml 내부 값을 플러그인에서 참조]]></title>
	<link rel="self" href="http://forum.tattersite.com/ko/extern.php?action=feed&amp;tid=4996&amp;type=atom"/>
	<updated>2008-03-18T00:12:05Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.tattersite.com/ko/viewtopic.php?id=4996</id>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 스킨의 index.xml 내부 값을 플러그인에서 참조]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=25491#p25491"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>noname 작성:</cite><blockquote><p>플러그인에서 스킨 내부에 있는 index.xml 파일의 값을 참조할 방법이 있는지 알고 싶습니다.</p><p>가령 skin/customize/1/index.xml 파일 내부에 &lt;contentWidth&gt;500&lt;/contentWidth&gt; 라는 요소가<br />있으면 이 값을 플러그인에서 참조하고 싶습니다. (예를 들면 $skin_var[&#039;contentWidth&#039;] 이런 식으로)</p><p>직접 스킨 디렉토리의 해당 파일을 읽어서 파싱하지 않고 텍스트큐브에서 제공하는 변수가 있는지요?</p></blockquote></div><div class="codebox"><pre><code>function getTest($test) {
    requireComponent(&#039;Textcube.Function.misc&#039;); 
    $skin_var[&#039;contentWidth&#039;]  =    misc::getContentWidth();
}</code></pre></div><p>위와 같이 받으시면 됩니다. components에서 찾아보시면 활용 할 수 있는 것들이 무궁무진하답니다.^^</p>]]></content>
			<author>
				<name><![CDATA[jparker]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=10</uri>
			</author>
			<updated>2008-03-18T00:12:05Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=25491#p25491</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[스킨의 index.xml 내부 값을 플러그인에서 참조]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=25487#p25487"/>
			<content type="html"><![CDATA[<p>플러그인에서 스킨 내부에 있는 index.xml 파일의 값을 참조할 방법이 있는지 알고 싶습니다.</p><p>가령 skin/customize/1/index.xml 파일 내부에 &lt;contentWidth&gt;500&lt;/contentWidth&gt; 라는 요소가<br />있으면 이 값을 플러그인에서 참조하고 싶습니다. (예를 들면 $skin_var[&#039;contentWidth&#039;] 이런 식으로)</p><p>직접 스킨 디렉토리의 해당 파일을 읽어서 파싱하지 않고 텍스트큐브에서 제공하는 변수가 있는지요?</p>]]></content>
			<author>
				<name><![CDATA[noname]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=1244</uri>
			</author>
			<updated>2008-03-17T22:30:39Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=25487#p25487</id>
		</entry>
</feed>
