From: Andy S. <an...@gm...> - 2008-11-30 07:44:13
|
btw: g2 could do the same. as in, it enables modules to add such switches. you can load a different theme for every request. not to say that this should be in g3, but it's not that hard to implement. - andy On Sat, Nov 29, 2008 at 11:22 PM, Donald Webster <fr...@gm...> wrote: > I'm not sure if I have exactly what you are talking about right but... > > wordpress has one nice feature that I really like, and that is that it > can load a different theme based on user agent. You might wonder what > good this is, but what it does it let me have a mobile version of my > site *and* an iPhone specific one. I'd love it if I could do the same > with Gallery. Is this even what the event you are talking about would > allow, at a very low level? > > AIM: fryfrog > WWW: http://www.fryfrog.com > > > > On Sat, Nov 29, 2008 at 10:52 PM, Chris F <li...@ps...> wrote: > > Hi Tim, > > > > > > > > I understand about multiple themes not being allowed in the core system, > but > > having an event system capable of that I don't think is a mutually > exclusive > > thing. > > > > > > > > My main point was having an event system which is more low level than the > > events defined so far. > > > > > > > > A module which supports multiple theming just needs to listen for the > > "theme load" event, make a decision based on the inputs of the page > loaded > > and then change the view as an output of the event. > > > > > > > > This is a perfect example of where low-level events will help create a > > better developer community and a module to achieve the themes will be as > > simple as a few lines of code. > > > > > > > > I think events should be specified for all major things that happen in a > > page's lifecycle to give 3rd party products great flexibility. > > > > > > > > What should be thought of when designing the event system is what might > > module developers want to do (and the 20% of features which didn't make > the > > cut is possibly a good start) and how would they be able to implement > these > > in the current system purely by using events. If the event system can > handle > > a majority of these cases without needing code changes to the core > product, > > I think the event system should be labelled as a success. > > > > > > > > Chris > > > > > > > > > > > > From: Tim Almdal [mailto:tna...@sh...] > > Sent: Saturday, 29 November 2008 3:51 AM > > To: Alec Myers > > Cc: Gallery-devel > > Subject: Re: [Gallery-devel] Gallery3: Events > > > > > > > > Alex: > > > > We haven't given much thought at this point to a standard for naming. > When > > I was playing around in another module (which probably won't see the > light > > of day) I was naming the events 'gallery.xxxx.event_name'. I think its > > useful to have "gallery" at the front as it make it really easy to find > > where all the events are fired from. Search for `Event::run("gallery"` > will > > get you all of the gallery events. I think the second level should be > the > > originating module (if you accept album and photo as psuedo modules) it > all > > works out. > > > > > > > > Chris. > > > > In a word... no as no thought has been given. It might be something that > > can be added later, but at the moment, allowing multiple themes is not > high > > on the priority list. > > > > > > > > Tim > > > > ----- Original Message ----- > > From: Alec Myers <al...@al...> > > Date: Friday, November 28, 2008 3:12 am > > Subject: Re: [Gallery-devel] Gallery3: Events > > To: Gallery-devel <gal...@li...> > > > >> Excellent! > >> > >> On the naming front, how do you envisage plugins' events will > >> fit in? > >> Do all events begin with 'gallery.' prefix, or is 'gallery.' a > >> synonym for > >> 'core.' ? > >> > >> As an example, suppose there was an "email" module (not part of > >> the core) > >> would an "email sent" event be > >> > >> gallery.email.emailSent > >> > >> or > >> > >> email.emailSent > >> > >> or something else? > >> > >> > >> > >> gallery.----- Original Message ----- > >> From: "Tim Almdal" <tna...@sh...> > >> To: "Gallery-devel" <gal...@li...> > >> Sent: Friday, November 28, 2008 4:24 AM > >> Subject: [Gallery-devel] Gallery3: Events > >> > >> > >> G3 has the start of an event system. > >> > >> The following events have been defined so far: > >> > >> Event Event Data > >> gallery.album.created Item_Model > >> gallery.album.deleted Item_Model > >> gallery.album.changed Item_Model > >> gallery.photo.created Item_Model > >> gallery.photo.deleted Item_Model > >> gallery.photo.changed Item_Model > >> gallery.comment.created Comment_Model > >> gallery.user.created User_Model > >> gallery.user.deleted User_Model > >> gallery.user.login User_Model > >> gallery.user.logout User_Model > >> > >> > >> > >> > >> ----------------------------------------------------------------- > >> -------- > >> This SF.Net email is sponsored by the Moblin Your Move > >> Developer's challenge > >> Build the coolest Linux based applications with Moblin SDK & win > >> great > >> prizes > >> Grand prize is a trip for two to an Open Source event anywhere > >> in the world > >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ > >> __[ g a l l e r y - d e v e l ]_________________________ > >> > >> [ list info/archive --> http://gallery.sf.net/lists.php ] > >> [ gallery info/FAQ/download --> http://gallery.sf.net ] > >> > >> > >> > >> ----------------------------------------------------------------- > >> -------- > >> This SF.Net email is sponsored by the Moblin Your Move > >> Developer's challenge > >> Build the coolest Linux based applications with Moblin SDK & win > >> great prizes > >> Grand prize is a trip for two to an Open Source event anywhere > >> in the world > >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ > >> __[ g a l l e r y - d e v e l ]_________________________ > >> > >> [ list info/archive --> http://gallery.sf.net/lists.php ] > >> [ gallery info/FAQ/download --> http://gallery.sf.net ] > >> > > > > Website: http://www.timalmdal.com > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > > Build the coolest Linux based applications with Moblin SDK & win great > > prizes > > Grand prize is a trip for two to an Open Source event anywhere in the > world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > __[ g a l l e r y - d e v e l ]_________________________ > > > > [ list info/archive --> http://gallery.sf.net/lists.php ] > > [ gallery info/FAQ/download --> http://gallery.sf.net ] > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > __[ g a l l e r y - d e v e l ]_________________________ > > [ list info/archive --> http://gallery.sf.net/lists.php ] > [ gallery info/FAQ/download --> http://gallery.sf.net ] > > |