Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Update on View Updates
03-05-2014, 10:58 PM,
#23
RE: Update on View Updates
(03-05-2014, 06:43 PM)Forums Wrote: Hi @serakfalcon when I was talking about how options are presented I meant menu options, not select boxes.

Ah ok my bad, sorry about that. I assumed you were talking about <option>s...

Ok so essentially what we're looking at in terms of the view class for menus the overall structure can be almost the same as MainMenuLinksArray.php, and actually will probably load the information from there by default.

So, my overall idea would be a class for each list, that essentially describes in broad strokes, the Main Menu, top menu, and all the others like Transaction/Maintenance. essentially taking the information from MainMenuLinksArray and reorganizing it for display.

Data-wise we have menus, which have a certain display class, and elements which consist of a url/description pair, which should be loaded in a certain order. In and of itself that's simpler than the forms class by a long shot.

Right now, of course, the menus could be reconfigured (for everyone) by changing MainMenuLinksArray.php but what it seems you want is a user-specific override. A user-specific override is going to require one of three things,
1) we add tables to the database to track that information, (to save on speed we could keep the default in MainMenuLinksArray and only have user-specific options in the table, and cache their settings so it only has to load from the DB once per session, or after they change their settings)
2) we write the information to disk (xml or JSON or something like that), which makes it possible for people to configure by hand but a little less easy for the server to work with.
3) we write (or compile) a custom file for each user configuration. Sounds kind of silly to me after writing it, but it's also a potential solution.

So, to keep our options open the menu class should have the handlers to receive information built into the class, that way we don't need to decide which way to use yet, and if we can't decide we can allow both, or, neither (for the purists). So basically that means each menu class is going to need some identification information passed to it knows what information to retrieve and where it should retrieve it from or all the menu classes should be rolled into $MainView and $MainView can decide what to display after it knows what page it's on and whatever user setting we end up using that keeps track of whether we're using a custom interface or not.

I would like to make it possible to completely re-arrange things purely in the theme, so for example, in one theme maybe each of the menus could be 'tabs' that you can shuffle through, in another all the menu items are included in a top bar-- I am still thinking through the implications of this and how to make the information well-structured, able to fully represent what currently exists, but also flexible enough to look totally different.

I'll give a trial go at the class structure either tomorrow or the next day.
Reply


Messages In This Thread
Update on View Updates - by serakfalcon - 02-28-2014, 01:12 AM
RE: Update on View Updates - by serakfalcon - 02-28-2014, 11:37 PM
RE: Update on View Updates - by phil - 03-01-2014, 01:53 PM
RE: Update on View Updates - by serakfalcon - 03-01-2014, 03:53 PM
RE: treating numbers as 'numbers' - by opto - 03-01-2014, 09:50 PM
RE: Update on View Updates - by Forums - 03-01-2014, 07:13 PM
RE: Update on View Updates - by Forums - 03-01-2014, 10:00 PM
RE: Update on View Updates - by Exsonqu_Qu - 03-03-2014, 09:38 AM
RE: Update on View Updates - by opto - 03-03-2014, 10:44 PM
RE: Update on View Updates - by serakfalcon - 03-04-2014, 12:35 PM
RE: Update on View Updates - by opto - 03-04-2014, 05:27 PM
RE: Update on View Updates - by Forums - 03-04-2014, 07:31 PM
RE: Update on View Updates - by serakfalcon - 03-05-2014, 02:17 AM
RE: Update on View Updates - by Forums - 03-05-2014, 04:12 AM
RE: Update on View Updates - by opto - 03-04-2014, 08:15 PM
RE: Update on View Updates - by Exsonqu_Qu - 03-05-2014, 01:40 PM
RE: Update on View Updates - by serakfalcon - 03-05-2014, 04:03 PM
RE: Update on View Updates - by Forums - 03-05-2014, 09:56 PM
RE: Update on View Updates - by Exsonqu_Qu - 03-06-2014, 06:36 PM
RE: Update on View Updates - by Forums - 03-06-2014, 06:47 PM
RE: Update on View Updates - by Forums - 03-05-2014, 06:43 PM
RE: Update on View Updates - by serakfalcon - 03-05-2014, 10:58 PM
RE: Update on View Updates - by opto - 03-05-2014, 08:11 PM
RE: Update on View Updates - by Forums - 03-05-2014, 08:21 PM
RE: Update on View Updates - by Forums - 03-05-2014, 11:21 PM
RE: Update on View Updates - by serakfalcon - 03-06-2014, 12:54 AM
RE: Update on View Updates - by opto - 03-06-2014, 10:15 PM
RE: Update on View Updates - by serakfalcon - 03-08-2014, 03:34 AM
RE: Update on View Updates - by Forums - 03-09-2014, 06:43 AM
RE: Update on View Updates - by icedlava - 03-09-2014, 10:51 PM
RE: Update on View Updates - by Forums - 03-10-2014, 04:58 AM
RE: Update on View Updates - by serakfalcon - 03-10-2014, 04:08 PM
RE: Update on View Updates - by icedlava - 03-10-2014, 04:53 PM
RE: Update on View Updates - by serakfalcon - 03-19-2014, 07:12 PM
RE: Update on View Updates - by serakfalcon - 04-04-2014, 03:03 PM
RE: Update on View Updates - by icedlava - 04-04-2014, 06:12 PM
RE: Update on View Updates - by serakfalcon - 04-04-2014, 07:24 PM
RE: Update on View Updates - by serakfalcon - 05-07-2014, 07:07 PM
RE: Update on View Updates - by wubuer198 - 12-10-2015, 05:13 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)