Problems, need help? Have a tip or advice? Post it here.
6 posts Page 1 of 1
Hello , hello!

I like to order how pages appear in the admin panel, I do everything orderly, I checked in myPhpAdmin that k_order is not duplicated somewhere. But the order keeps changing and numbers assigned to k_order keep duplicating....

Does anyone have idea what is going on?


Tanja
Hi Tanja,

The field 'k_order', as of v1.4.7, is used only in the 'fields' and the 'templates' table.
So, I don't think it will help in ordering the pages.

Anyway, the problem at hand is -
I like to order how pages appear in the admin panel

For that, please see - viewtopic.php?p=21194#p21194

Would that help?
HI KK,

thanks for the link, I am checking that now...that sounds great

However, I realized that I expressed wrongly:
I did actually think of ordering templates in the Admin panel.
So, would that mean that k_order is still valid for doing that?

Thanks

Tanja
Ordering templates in the admin sidebar is done using the 'order' parameter of <cms:template> tag (details at - http://docs.couchcms.com/tags-reference ... html#order).

For example -
Code: Select all
<cms:template title='Contact' order='3' >
..
</cms:template>

As is the norm, you need to revisit the template as super-admin for the change to take effect.

Are you sure you are following this method of setting the order?
HI KK,

sorry I write so mixed up:

yes, I use order='1' for ordering templates, and I revisited them all after the change..

and it was in the phpMyAdmin where I see k_order in the table of couch templates....but they are related to ordering templates, is that right?
In that column, numbers are changing too.....

I just noticed that in few templates I used "" instead of ''....
And I did not assign order to two templates - can that be the reason?

Tanja

p.s. I just think now, maybe the issue is not at all related to couch....if the problem could be caused by Brackets editor? Because after updating it two days ago, I also encountered files being automatically rewritten, in a very crazy manner....but after deleting files in the LIbrary /application support, I thought i solved the problem....
Hi,

I would add that if a template has no explicit order set, it will be assumed order='0'.
So, any templates with order='1..2..100..etc' will be lower in sidebar. I usually start with negative number, like order='-100' and any newly added templates always stay below.
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
6 posts Page 1 of 1