Welcome, Guest
Username: Password: Remember me

TOPIC: Order of Appearance of Back-End Layouts

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

  • gdpodesta
  • gdpodesta's Avatar
  • Offline
  • Senior Member
  • Posts: 75
  • Thank you received: 8
  • Karma: -42
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 |
The administrator has disabled public write access.

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

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
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!!!
The administrator has disabled public write access.

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

  • gdpodesta
  • gdpodesta's Avatar
  • Offline
  • Senior Member
  • Posts: 75
  • Thank you received: 8
  • Karma: -42
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.
The administrator has disabled public write access.

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

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
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!!!
The administrator has disabled public write access.

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

  • gdpodesta
  • gdpodesta's Avatar
  • Offline
  • Senior Member
  • Posts: 75
  • Thank you received: 8
  • Karma: -42
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)
The administrator has disabled public write access.

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

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
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!!!
Last Edit: 02 Nov 2012 18:45 by JoomGuy.
The administrator has disabled public write access.

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

  • gdpodesta
  • gdpodesta's Avatar
  • Offline
  • Senior Member
  • Posts: 75
  • Thank you received: 8
  • Karma: -42
Using 1.5, and just refreshed the file list - no sign of it.
The administrator has disabled public write access.

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

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
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!!!
The administrator has disabled public write access.

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

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
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!!!
The administrator has disabled public write access.

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

  • gdpodesta
  • gdpodesta's Avatar
  • Offline
  • Senior Member
  • Posts: 75
  • Thank you received: 8
  • Karma: -42
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
Last Edit: 02 Nov 2012 18:59 by gdpodesta.
The administrator has disabled public write access.

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

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
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 administrator has disabled public write access.
The following user(s) said Thank You: admin

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
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 administrator has disabled public write access.
The following user(s) said Thank You: JoomGuy
Time to create page: 0.074 seconds

Get Started