eZ Community » Forums » Setup & design » Change order of class Groups in...
expandshrink

Change order of class Groups in "create here" menu

Change order of class Groups in "create here" menu

Monday 10 August 2015 5:05:30 pm - 3 replies

Hello,

I'm working on an old 4.5 Ez (soon 5.4). I'm used to find anwser here but this time I'm stuck with, I assume, a very simple problem.

I hope someone will be kind enough to help me please happy.gif Emoticon

I can't find where to change the order of the class Goups in the "create here" menu.

For exemple I have :

- Content
- Second Column Content
- First Column Content
- Users

And I would like:

- First Column Content
- Second Column Content
- Users
- Content

I found how to move class from a Group to another in the back-office but that's all.
The content.ini file do not allow to not order them according to me.
It's not a problem of rules and policy, I don't want to hide them.

As you can see, I missed something.
Can you help me with this please?

Thank you

Monday 17 August 2015 8:08:16 pm

Hello,

Maybe my post was not clear.

In the backoffice in the sub items part when clicking on "create" button it shows a list which by default is:

Content
Setup
Media
Users

If I create a new class Groups "First column content" and add a class "page" inside

the create liste will now be:

Content
First comlum content
Media
Users

I don't understand how it works. How can I ordered it like that?:
First column content
Content
Media
Users

Maybe it's very simple and I apologize for that but can you help me?

Best regards,

Wednesday 19 August 2015 4:18:16 pm

There is no simple sort setting for this because there is no so-called "priority" value attached to class groups.

The template (design/admin2/templates/children_detailed.tpl or design/admin/templates/children_detailed.tpl depending on your version) uses this fetch function, which naturally has no sort parameter: https://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Modules/content/Fetch-functions/can_instantiate_class_list

One approach would be to manually impose your own sort order on the results of that function in an override of the template.

Thursday 20 August 2015 11:34:10 pm

Dear Peter,

I do thank you for your anwser., I get it now.
You're right, impose my own sort order on the results is a good solution for me.

For now I was not able to apply it on my override, not the good code but I understand what to do.

Best regards,

Modified on Friday 21 August 2015 9:19:27 am by Zebrilee Z.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from