[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [myexperiment-hackers] virtual_hosts
From: |
Don Cruickshank |
Subject: |
Re: [myexperiment-hackers] virtual_hosts |
Date: |
Wed, 19 Oct 2011 14:25:56 +0000 |
Hi Finn,
I agree about having a helper function to determine the required layout. Could
you change the option be a drop-down box instead of a checkbox?
The options you'd have in it depends on your group memberships. So if you are
a member of the e-LICO group then you get the option to use the e-LICO template
when uploading or managing a workflow. I envisage the settings file would have
a group number stored with each virtual host so that it would be easy for the
system to find out which ones are relevant to the user.
e-LICO is the only virtual host so far, so feel free to rearrange the settings
structure to suit.
Cheers,
Don.
> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden
> On Behalf Of Finn Bacall
> Sent: 19 October 2011 13:40
> To: address@hidden
> Subject: [myexperiment-hackers] virtual_hosts
>
> Hi guys,
>
> I'm planning on changing how myexperiment chooses what page layout to
> use. At the moment, this is decided before a request is passed through to a
> controller action (by looking at the request URL, referrer, etc.).
>
> For e-LICO, I'm adding in an option (a small checkbox) that will be displayed
> in
> the "sharing" section of the workflow creation/update form, that allows a
> user to indicate that they want their workflow to be rendered in a custom
> layout (like how the e-LICO group page looks at the moment).
>
> The issue with doing this in the current system, is that I need to access to
> the
> workflow object to check which layout the user has specified to use, and this
> isn't fetched until the controller action is processed. My solution is to
> create a
> helper method to choose which layout to display, which is called by the view.
> This ensures the controller action has already run and I have access to the
> workflow object.
>
> Before I do this it would be good to hear any criticisms/suggestions.
> I'd also like to know if there are other "virtual hosts" in-use other than e-
> LICO, as I was considering moving settings purely to do with the
> layout/stylesheet into a different section in the "settings" YAML file.
>
> Cheers,
>
> -Finn
>
> --
> Finn Bacall
> School of Computer Science
> University of Manchester
>
>
> _______________________________________________
> myexperiment-hackers mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/myexperiment-hackers