Problems, need help? Have a tip or advice? Post it here.
10 posts Page 1 of 1
Hi

We want to manually reoder the clonable pages. For this we tried using the procedure given in the following link
viewtopic.php?f=8&t=9577

However it hasn't worked out. We are unable to see the buttons which are used to manually reset the order , plus the functionality isnt working. Attached is the screenshot of the clonable page.

Alok

Attachments

Hi,

As mentioned in the post, it was just a temporary solution for an older version of Couch.
Since v2.0, Couch natively has this reordering feature - please find the 'Manually reorder normal cloned pages' section in viewtopic.php?f=5&t=10241 for details.

Hope this helps.
We are using the latest version. We are using the following code

<cms:config_list_view orderby='weight' order='asc'>
<cms:field 'k_selector_checkbox' />
<cms:field 'k_page_title' sortable='0' />
<cms:field 'k_comments_count' />
<cms:field 'k_page_foldertitle' />
<cms:field 'k_up_down' />
<cms:field 'k_actions' />
</cms:config_list_view>

However this isn't working. The arrows are not showing up.
Have you made sure to remove the older solution your tried from kfunctions.php completely?
Once that is done, make sure the newer <cms:config_list_view> block is kept within the <cms:template> block. After this, visit the modified template as super-admin from the front-end. There is no reason for it not to work.

Hope this helps.
The solution hasnt worked. Attached are 2 files which we have created. The re ordering works in the backend however does not display on the website.

Given below is the code in the file.

------------------------------- CODE OF MASTER PAGE------------------------------------------------
<cms:template title='Parameter Master' clonable='1'>

<cms:config_list_view orderby='weight' order='asc'>
<cms:field 'k_selector_checkbox' />
<cms:field 'k_page_title' sortable='0' />
<cms:field 'k_comments_count' />
<cms:field 'k_page_foldertitle' />
<cms:field 'k_up_down' />
<cms:field 'k_actions' />
</cms:config_list_view>

<cms:editable
name='parameterbg_image'
label='Parameter Background Image'
desc='Upload Parameter Image'
width='204'
height='100'
show_preview='1'
preview_height='204'
type='image'
/>

<cms:editable type='relation' name='newproductmaster_parametermaster' masterpage='newproductmaster.php' />

</cms:template>

--------------------------------------- CODE OF DISPLAY PAGE ---------------------------------------------------

<cms:pages orderby='weight' order='asc' masterpage='productcategorymaster.php' page_name=parametername limit='0'>

...................................


</cms:pages>
Two notes. First, page_name=parametername essentially shows only a single page, which of course denies ordering, because there is nothing to order in a single page listing. Second limit='0 doesn't actually work as 'unlimited' thing. It is considered to be not set and is presumed to be '1000', the Couch default's value.
We have 3 different product categories & each product category has multiple parameters (each parameter has its own individual page).

https://www.potencecontrols.com/paramet ... umentation
https://www.potencecontrols.com/paramet ... umentation
https://www.potencecontrols.com/paramet ... umentation

Under each parameter there are multiple products which are specific to the parameter.

https://www.potencecontrols.com/product ... ame=ph-orp

We have created a single parameter master under which we have listed all the parameters of the 3 different product categories.

https://www.potencecontrols.com/parameterdisplay.php

So to display only the specific parameters of each category we are using the code

<cms:set parametername="<cms:gpc 'name' method='get' />" />
<cms:if "<cms:not "<cms:page_exists parametername masterpage='productcategorymaster.php' />" />" >
<cms:abort is_404='1'>
<h3>Product not found</h3>
</cms:abort>
</cms:if>

The problem is in the backend we are able to change the sequence of the parameters. However they do not reflect on the front end. Is there any solutions for this.
Please share the code you are using to display the 'parameters' on the front-end.
Code: Select all
<cms:pages orderby='weight' order='asc' masterpage='productcategorymaster.php' page_name=parametername limit='0'>
                        <cms:if k_is_page >
                        <cms:related_pages 'parametermaster_productcategorymaster' >
                       
                        <div class="col-sm-2">
                     
                         
                         <cms:form method="post" anchor='0'>
                         
                         <cms:if k_success >
                     <cms:redirect "product-display.php?name=<cms:show k_page_name />" />
                     </cms:if>
                           
                       <div style="background-image:url(<cms:show parameterbg_image />);" class="module mid img-thumbnail img-rounded">
                    <h2 style="text-transform:inherit;"><cms:input name="submit" type="submit" class="theme_button color1 inverse"  style="color:#FFF; font-size:15px; text-transform:inherit;" value="<cms:show k_page_title />"/></h2>
                  </div>
         
             
                        </cms:form>

                        </div>

                  
                           
                        </cms:related_pages>
                  </cms:if>
                        </cms:pages>
I think it is the <cms:related_pages> tag that is doing the listing so the orderby/order params should be set on it e.g. try this -
Code: Select all
<cms:related_pages 'parametermaster_productcategorymaster' orderby='weight' order='asc'>

Does it help?
10 posts Page 1 of 1