Forum for discussing general topics related to Couch.
2 posts Page 1 of 1
Sorry but how can I make a catch in a Snippets

EX: Snippet -> footer.html
Code: Select all
<!-- Social Profile Links -->
         <cms:capture into='profiles_output' >
         <h4>Social Profiles</h4>
         <div class="hr dotted clearfix">&nbsp;</div>
         <ul>
            <cms:if "<cms:not_empty twitter_id />">
               <li class="float"><a href="<cms:show twitter_id />"><img alt="" src="images/twitter.png" title="Twitter" /></a></li>
               <cms:set has_profile='1' 'global' />
            </cms:if>
            
            <cms:if "<cms:not_empty facebook_id />">
               <li class="float"><a href="<cms:show facebook_id />"><img alt="" src="images/facebook.png" title="Facebook" /></a></li>
               <cms:set has_profile='1' 'global' />
            </cms:if>
            
            <cms:if "<cms:not_empty stumbleupon_id />">
               <li class="float"><a href="<cms:show stumbleupon_id />"><img alt="" src="images/stumbleupon.png" title="StumbleUpon" /></a></li>
               <cms:set has_profile='1' 'global' />
            </cms:if>
            
            <cms:if "<cms:not_empty flickr_id />">
               <li class="float"><a href="<cms:show flickr_id />"><img alt="" src="images/flickr.png" title="Flickr" /></a></li>
               <cms:set has_profile='1' 'global' />
            </cms:if>
            
            <cms:if "<cms:not_empty delicious_id />">
               <li class="float"><a href="<cms:show delicious_id />"><img alt="" src="images/delicious.png" title="Delicious" /></a></li>
               <cms:set has_profile='1' 'global' />
            </cms:if>
            
         </ul>
         </cms:capture>
         
         <cms:if has_profile >
            <cms:show profiles_output />
         </cms:if>
      </div>
Hi,

Not sure if I understood your question correctly.

The code you posted *is* the right way of capturing contents.
If you wish to use it within any snippet, just place the code within that snippet.

If that is not the answer you were looking for, please post your question with more details about the problem.

Thanks
2 posts Page 1 of 1