Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Order of Appearance of Back-End Layouts 02 Nov 2012 17:49 #4952

I've got 3 tables, each with a matching set of Collection/Item Layouts. From the Joomla Administrator, they appear in the order that I created them as tabs along the top of the component, as well as in the order that they appear in the Joomla Administrator Menu.

I've found where to set which is the default, but is it possible to specify in which order they appear?

e.g. In this order, I created Table3/Collection3/Item3, then Table1/Collection1/Item1, then Table2/Collection2/Item2

In the admin, they appear tabs in this order: | Table3 | Table1 | Table2 |
I'd like then to be in the logical order of | Table1 | Table2 | Table3 |

Please Log in or Create an account to join the conversation.

Re: Order of Appearance of Back-End Layouts 02 Nov 2012 17:52 #4953

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
I believe they'll appear in the order that your tables are in from top to bottom in the builder... However, if that doesn't work for you, go into the main controller.php admin side, you'll find them there in addSubMenu()

G
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!

Please Log in or Create an account to join the conversation.

Re: Order of Appearance of Back-End Layouts 02 Nov 2012 18:06 #4955

No luck...tried re-arranging everything with no change in appearance locally or in the sandbox. Additionally, the Cook builder/downloader doesn't even include a controller.php.

Please Log in or Create an account to join the conversation.

Re: Order of Appearance of Back-End Layouts 02 Nov 2012 18:15 #4957

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
It should contain it... Were you looking in ROOT/administrator/components/com_yourcomponentname/controller.php ?
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!

Please Log in or Create an account to join the conversation.

Re: Order of Appearance of Back-End Layouts 02 Nov 2012 18:30 #4958

Checked again, and no sign of it, nor is it in the downloaded file for installation. Inn that folder, these files exist:
access.xml, config.xml, index.html., script.php. sips.php, sips.xml ("sips" is my component)

Please Log in or Create an account to join the conversation.

Re: Order of Appearance of Back-End Layouts 02 Nov 2012 18:45 #4959

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
What version of COOK are you using - 1.5 or 2.0 beta?

I can't honestly say I remember there not being a base controller in COOK 1.5 but it is the only thing that I can think would be different...

****ADD

I'm using v2.0

***********
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!

Please Log in or Create an account to join the conversation.

Last edit: by JoomGuy.

Re: Order of Appearance of Back-End Layouts 02 Nov 2012 18:48 #4960

Using 1.5, and just refreshed the file list - no sign of it.

Please Log in or Create an account to join the conversation.

Re: Order of Appearance of Back-End Layouts 02 Nov 2012 18:50 #4961

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
Just to be absolutely clear, if you're looking in the downloaded installation package, it'll be in the admin folder
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!

Please Log in or Create an account to join the conversation.

Re: Order of Appearance of Back-End Layouts 02 Nov 2012 18:53 #4962

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
Ah, just checked in a dummy component that I reverted back to COOK 1.5 - it'll be in sips.php in your case:

JSubMenuHelper::addEntry(...)
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!

Please Log in or Create an account to join the conversation.

Re: Order of Appearance of Back-End Layouts 02 Nov 2012 18:56 #4963

Ah, just found it there with addentry(), not addsubmenu(). Have found where to change it...any idea on how to configure it in COOK?

Interesting - changing the order of the code affects the order of the Tabs, but not the Admin Component submenu items for the components

Please Log in or Create an account to join the conversation.

Last edit: by gdpodesta.

Re: Order of Appearance of Back-End Layouts 02 Nov 2012 19:14 #4964

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
Ah, to change that, you need sips.xml...

Check in side the <administration> tag and you'll see your menu image tags and submenus too.

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The following user(s) said Thank You: admin

Please Log in or Create an account to join the conversation.

Re: Order of Appearance of Back-End Layouts 04 Nov 2012 10:53 #4983

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Menus are not handled yet.

Orders of tables are not respected. It is missing since the beginning.
For the moment, you deal manually with the menus because it is not a big deal, you can learn something easy, and it is like templating, it is in your own. A little bit of exercice ;-)

The menu creator is on the road map of course. But I do know when.

Sorry for inconvenience.

I am currently working hard on something nobody can see because it is internal of Cook Framework to improve it. This is called 2.0. Not finished yet (framework rewrite), but the source code for you is unchanged. You can use 2.0 beta. It works good and almost stable.
Next cool step to come soon : A much better management of filters.
Coding is now a piece of cake
The following user(s) said Thank You: JoomGuy

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.122 seconds

Hi guys Before I ask for help just like to say I tried the tutorials on how to make a 2.5 component WOW.... HECTIC!! J-Cook is really amazing in its simplicity!!
Dorac (Forum)  

Get Started