Sorry if I misunderstood something but when I add orderby='weight' - the code below stops working and webpage responds with: Fatal error: Call to undefined method KError::set_sort() in /admin/folder.php on line 355. Thank you in advance!
PS: using latest CouchCMS build
PS: using latest CouchCMS build
- Code: Select all
<cms:folders masterpage="<cms:show v_lang />/service.php" hierarchical='1' extended_info='1' >
<cms:if k_element_start >
<cms:if k_folder_immediate_children >
<div class="h<cms:add "<cms:show k_level />" '1' /> trigger">
<span>
<cms:show k_folder_title />
</span>
</div>
<div class="cont">
<cms:else />
<div class="h<cms:add "<cms:show k_level />" '1' /> trigger">
<span>
<cms:show k_folder_title />
</span>
</div>
<div class="cont">
<cms:pages masterpage="<cms:show v_lang />/service.php" folder=k_folder_name include_subfolders='0' >
<div class="price-item">
<table>
<tbody>
<tr>
<td class="price-title"><a href="<cms:show k_page_link />"><cms:show k_page_title /></a></td>
<td class="price-term">
<pre>
<cms:capture into='time_rep' >
<cms:show_repeatable 'price_and_time' >
<cms:if time_more >
<cms:show time_more /><br/>
</cms:if>
</cms:show_repeatable>
</cms:capture>
<cms:if "<cms:not_empty time_rep />" >
<cms:show time_rep />
<cms:else />
<cms:show total_time />
</cms:if>
</pre>
</td>
<td data-param="<cms:show k_page_title />" data-modal="#request-service" class="price-value">
<pre>
<cms:capture into='price_rep' >
<cms:show_repeatable 'price_and_time' >
<cms:if price_more >
<cms:show price_more /><br/>
</cms:if>
</cms:show_repeatable>
</cms:capture>
<cms:if "<cms:not_empty price_rep />" >
<cms:show price_rep />
<cms:else />
<cms:show price />
</cms:if>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</cms:pages>
</div>
</cms:if>
</cms:if>
<cms:if k_level_end >
</div>
</cms:if>
</cms:folders>