Hi,
It is not working because the code is using the <cms:show content /> within the list-view (i.e. not the page-view) and as we have discussed earlier, in the list-view there is no page in context and hence no content to show. We'll have to use the 'pages' tag to list the pages and within this we can use the excerptHTML.
The revised code could be -
It is not working because the code is using the <cms:show content /> within the list-view (i.e. not the page-view) and as we have discussed earlier, in the list-view there is no page in context and hence no content to show. We'll have to use the 'pages' tag to list the pages and within this we can use the excerptHTML.
The revised code could be -
- Code: Select all
<div class="contenido">
<cms:if k_is_page>
<h1 class="titulo"><a href="<cms:show k_page_link />"><cms:show k_page_title /></a></h1>
<div class="post"><div class="parrafo"><cms:show content /></div></div>
<cms:else />
<cms:pages>
<cms:excerptHTML count='130'>
<cms:show content />
</cms:excerptHTML>
</cms:pages>
</cms:if>
</div>