[Xerte-dev] Re: Model specific css of Nottingham template

Pat Lockley (Pgogy) info at pgogywebstuff.com
Tue May 17 11:19:16 BST 2016


Would that work if locally ran exported?

On 2016-05-17 05:29, Smith, John wrote:
> When Fay and I initially changed the models into a more object
> oriented format I had the idea to have the css and html containers all
> js based and created as the result of calling a method of the page
> model object. That way you could load the css into the head (or
> anywhere) and you you could load the containers into any other
> container. This would give the possibility of loading all the page
> models on the fly when the learning object loads and also allow for
> example a "page preview" popup box to be loaded in the editor. You'd
> pass additional parameters to these functions to determine how the
> html/css is built and where it would be loaded to...
> 
> So you'd just have a couple of methods like
> 
> buildCSS ( .... ) { ..... }
> 
> buildContainer ( ..... ) { ....... }
> 
> The CSS/HTML would either just be written out as strings or built on
> the fly using jQuery constructors and then send on to the next stage.
> Either way it would be customisable....
> 
> It would be a lot of work but it would give the most flexibility,
> including being able to render multiple LO pages in a single html page
> which is what we need for printing etc.... Once xenith and a single
> page model was working though it would be relatively easy to convert
> the rest.
> 
> Regards,
> 
> John Smith
> Learning Technologist | School of Health & Life Sciences
> 
> T: +44 (0)141 331 3989 | E: J.J.Smith at gcu.ac.uk
> Glasgow Caledonian University, Cowcaddens Road, Glasgow, G4 0BA,
> Scotland, United Kingdom
> 
> **** Please send all enquiries to our shared Blended Learning inbox at
> hlsblt at gcu.ac.uk and one of the Learning Technologists will respond.
> ****
> ________________________________________
> From: xerte-dev-bounces at lists.nottingham.ac.uk
> [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
> [Julian.Tenney at nottingham.ac.uk]
> Sent: 17 May 2016 07:22
> To: For Xerte technical developers
> Subject: [Xerte-dev] Re: Model specific css of Nottingham template
> 
> Seems a good idea to me: if we were doing it from scratch, how would
> we have implemented it? With specific model ids?
> 
> From: xerte-dev-bounces at lists.nottingham.ac.uk
> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Tom
> Reijnders
> Sent: 16 May 2016 20:06
> To: For Xerte technical developers <xerte-dev at lists.nottingham.ac.uk>
> Subject: [Xerte-dev] Re: Model specific css of Nottingham template
> 
> 
> Option 2 is an interesting one! I can do that quickly....
> 
> Thank you!
> 
> Op 16-5-2016 om 20:46 schreef Pat L (pgogy):
> Place one model specific id at a higher level?
> Or change body class on page turn?
> 
> 
> -------- Original message --------
> From: Tom Reijnders <reijnders at tor.nl><mailto:reijnders at tor.nl>
> Date: 16/05/2016 19:25 (GMT+00:00)
> To: Xerte Dev Mailing List
> <xerte-dev at lists.nottingham.ac.uk><mailto:xerte-dev at lists.nottingham.ac.uk>
> Subject: [Xerte-dev] Model specific css of Nottingham template
> 
> Hi All,
> 
> When we discussed H5P on the development day in April, we discussed
> that it might be a good idea to look at the aesthetics of all the
> models again and see if we can improve them.
> 
> One of the experiments I did, was to extract all the model specific
> css in a separate file, and include that file in the rloObject.htm and
> delete the inline styles from the model.
> 
>  1.  It make it possible to override model specific css
>  2.  It make it possible to override model specific css in the themes
> 
> Regrettable, that doesn't work, because the models do not use
> independent html id's and classes.
> 
> What I would like to propose is to:
> 
>  1.  Make sure all the id's and classes used in a model file are
> unique for that model (by prefixing?)
>  2.  Extract the inline css from the model files in a central file
> 
> Just to be able to override css in a LO specific custom stylesheet and
> in a theme.
> 
> Any objections and/or other suggestions?
> 
> Tom
> 
> --
> 
> --
> 
> 
> 
> Tom Reijnders
> 
> TOR Informatica
> 
> Chopinlaan 27
> 
> 5242HM Rosmalen
> 
> Tel: 073 5226191
> 
> Fax: 073 5226196
> 
> 
> 
> 
> 
> This message and any attachment are intended solely for the addressee
> 
> and may contain confidential information. If you have received this
> 
> message in error, please send it back to me, and immediately delete it.
> 
> 
> 
> Please do not use, copy or disclose the information contained in this
> 
> message or in any attachment.  Any views or opinions expressed by the
> 
> author of this email do not necessarily reflect the views of the
> 
> University of Nottingham.
> 
> 
> 
> This message has been checked for viruses but the contents of an
> 
> attachment may still contain software viruses which could damage your
> 
> computer system, you are advised to perform your own checks. Email
> 
> communications with the University of Nottingham may be monitored as
> 
> permitted by UK legislation.
> 
> 
> 
> 
> 
> This message and any attachment are intended solely for the addressee
> 
> and may contain confidential information. If you have received this
> 
> message in error, please send it back to me, and immediately delete it.
> 
> 
> 
> Please do not use, copy or disclose the information contained in this
> 
> message or in any attachment.  Any views or opinions expressed by the
> 
> author of this email do not necessarily reflect the views of the
> 
> University of Nottingham.
> 
> 
> 
> This message has been checked for viruses but the contents of an
> 
> attachment may still contain software viruses which could damage your
> 
> computer system, you are advised to perform your own checks. Email
> 
> communications with the University of Nottingham may be monitored as
> 
> permitted by UK legislation.
> 
> 
> 
> 
> _______________________________________________
> 
> Xerte-dev mailing list
> 
> Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
> 
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
> 
> 
> 
> --
> 
> --
> 
> 
> 
> Tom Reijnders
> 
> TOR Informatica
> 
> Chopinlaan 27
> 
> 5242HM Rosmalen
> 
> Tel: 073 5226191
> 
> Fax: 073 5226196
> 
> 
> 
> 
> 
> 
> This message and any attachment are intended solely for the addressee
> and may contain confidential information. If you have received this
> message in error, please send it back to me, and immediately delete it.
> 
> Please do not use, copy or disclose the information contained in this
> message or in any attachment.  Any views or opinions expressed by the
> author of this email do not necessarily reflect the views of the
> University of Nottingham.
> 
> This message has been checked for viruses but the contents of an
> attachment may still contain software viruses which could damage your
> computer system, you are advised to perform your own checks. Email
> communications with the University of Nottingham may be monitored as
> permitted by UK legislation.
> 
> 
> Glasgow Caledonian University is a registered Scottish charity, number 
> SC021474
> 
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
> 
> 
> 
> 
> This message and any attachment are intended solely for the addressee
> and may contain confidential information. If you have received this
> message in error, please send it back to me, and immediately delete it.
> 
> Please do not use, copy or disclose the information contained in this
> message or in any attachment.  Any views or opinions expressed by the
> author of this email do not necessarily reflect the views of the
> University of Nottingham.
> 
> This message has been checked for viruses but the contents of an
> attachment may still contain software viruses which could damage your
> computer system, you are advised to perform your own checks. Email
> communications with the University of Nottingham may be monitored as
> permitted by UK legislation.

-- 
Pgogy Webstuff
pgogywebstuff.com



More information about the Xerte-dev mailing list