Problems, need help? Have a tip or advice? Post it here.
16 posts Page 2 of 2
Is it possible to hide templates in the couch admin panel?

Not from the super-admin.
But, yes the super-admin can hide any template from the admins (typically the client for whom the site is being built) by setting the 'hidden' parameter of 'template' tag to '1'
qv - http://www.couchcms.com/docs/tags-refer ... plate.html
Hello I have kept a file in snippets folder of couch and call it in the template with code : <cms:embed 'related-profiles.php' /> but when i looked in template it showing a parse error

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING something like this..

what might be the problem?
@Robert
Seems you have placed raw PHP in the snippet.
Cannot say what is the offending code without taking a look at the snippet.
Could you please paste in the snippet's contents here?
<table width="350" border="0">
<tr>
<td height="415"> Related Profiles:<br>
<ul>
<cms:if k_is_home limit='10'>
<cms:pages>
<li><a href="<cms:show k_page_link />"> <cms:show k_page_title /></a></li>
</cms:pages>
</cms:if>
</ul>
</td>
</tr>
</table>

I just kept this table in the page creating like include php.. I deleted awl the code like head section n body section ..
Nothing seems wrong in the code except that the cms:if tag does not accept the 'limit' parameter. It should actually be placed with the cms:pages tag
Code: Select all
<table width="350" border="0">
   <tr>
      <td height="415"> Related Profiles:<br>
         <ul>
            <cms:if k_is_home>
            <cms:pages limit='10'>
               <li><a href="<cms:show k_page_link />"> <cms:show k_page_title /></a></li>
            </cms:pages>
            </cms:if>
         </ul>
      </td>
   </tr>
</table>

Try changing that. Does it help?
It worked!! .. M just starting on it .. have to dig more concepts to customize ma site.. and ur support really helping me in doing things.. thanks KK..
n will cum up with more doubts soon ;)
16 posts Page 2 of 2