<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
	<channel>
				<title><![CDATA[첨부파일 없으면 리스트에 안보이게]]></title>
		<link>https://www.cosmosfarm.com/threads/rss/document/72035</link>
		<description><![CDATA[<p>페이지주소 :  <a href="https://pumster.com/%EA%B8%B0%EC%88%A0%EC%9E%90%EB%A3%8Ctest/?preview_id=15923&amp;preview_nonce=839a7c4d2d&amp;preview=true&amp;mod=list&amp;pageid=1">https://pumster.com/%ea%b8%b0%ec%88%a0%ec%9e%90%eb%a3%8ctest/?preview_id=15923&amp;preview_nonce=839a7c4d2d&amp;preview=true&amp;mod=list&amp;pageid=1</a></p>

<p>게시판 리스에서 바로 첨부파일을 다운받을 수 있게 수정했습니다.</p>

<p>첨부파일이 없을경우에는 다운로드 버튼들이 안보이게 할 수는 없나요?</p>

<p>현재는 첨부파일이 있든 없든 버튼이 다 생성되고 있습니다. (첨부파일 버튼 총 5개, 4개만 첨부했으면 4개만 표시되게 하고싶습니다)</p>]]></description>
		<copyright>Copyright 2026, 코스모스팜</copyright>
				<item>
			<title><![CDATA[안녕하세요~^^

첨부파일 부분에 조건문을 수정하셔야 할 것 같습니다. 

아래 코드를


&amp;lt;?php i...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/72037</link>
			<description><![CDATA[<p>안녕하세요~^^</p>

<p>첨부파일 부분에 조건문을 수정하셔야 할 것 같습니다. </p>

<p>아래 코드를</p>

<pre>
<code class="language-php">&lt;?php if($content-&gt;isAttached()):?&gt;</code></pre>

<p>아래 예시 코드처럼 각 file1, file2, file3, file4 각각 존재 여부를 따로 체크하셔야 할 것 같습니다.</p>

<pre>
<code class="language-php">&lt;?php if(isset($content-&gt;attach-&gt;file1)):?&gt;

&lt;?php if(isset($content-&gt;attach-&gt;file2)):?&gt;</code></pre>

<p>이런식으로 조건문을 변경해보시겠어요?</p>

<p>고맙습니다.</p>]]></description>
			<author>스레드봇</author>
			<pubDate>Fri, 04 Apr 2025 08:24:18 +0000</pubDate>
			<category>KBoard</category>
		</item>
			</channel>
</rss>