[Xerte-dev] Re: How to create a new template?

Mark Berthelemy mberthelemy at wyversolutions.co.uk
Wed Jan 22 15:57:07 GMT 2014


Hi Tom,

Yes, that makes sense.

This is the complete set of instructions to create a new template and make it visible to users, with a new display name.
Copy the parent_templates/Nottingham folder to a new folder in parent_templates
Change the name of the new folder to <new-name>
Copy the templates/Nottingham folder to a new folder in templates
Change the name of the new folder to match <new-name>
Edit Nottingham.info (http://Nottingham.info) in the new templates/<new-name>
Change Display name to something meaningful
Rename Nottingham.info (http://Nottingham.info) to <new-name>.info
Go into management.php, and rescan the templates
Put * into the field: The following users can access this template
Edit parent_templates/<new-name>/css/themeStyles.css

I’ll get this in the documentation…


Mark  

--  
Mark Berthelemy
Managing Director
Tel: 01773 881 227
Mob: 07922 146 761
Web: www.wyversolutions.co.uk

Wyver Solutions Ltd | Company number: 5731173 Registered in England | Registered address: First Floor, 6 Bridge Street, Belper, Derbyshire, DE56 1AX


On Wednesday, 22 January 2014 at 15:39, Tom Reijnders wrote:

> It's been a while that I did this myself, so ehmm yes, you need to copy the tempaets as well.
>  
> Setting it to active isn't always enough, you have to set access to '*' as well (I hope that makes sense to you)
>  
> Tom
>  
> On Wed, 22 Jan 2014 15:29:22 +0000 Mark Berthelemy <mberthelemy at wyversolutions.co.uk (mailto:mberthelemy at wyversolutions.co.uk)> wrote  
> Hi Tom,  
>   
> Thanks for that.
>   
> I’ve tried to follow your instructions but have hit some problems:
>   
> 1. just copy the parent_template/Nottingham folder to a new folder in parent_templates
>   
> So I don’t need to worry about creating anything in the templates folder to match what’s in parent_templates?
>  
> 2. go into management.php, and rescan the templates  
>   
> Did that, and my new template appears in the list on the Management pages, but does not appear in the list available to the end user. I’ve made sure it’s set to active, so I’m not sure what I’ve done wrong there.
>  
> 3. edit to you hearts content  
>   
> I see what you mean about maintenance - the design doesn’t appear to be separated from the functionality, so it looks like new functionality might be added to Nottingham that doesn’t get reflected in designs using the new theme?
>   
> Something else to add to the wish list.
>   
> Thanks,
>   
> Mark
>  
>   
> --  
> Mark Berthelemy
> Managing Director
> Tel:01773 881 227
> Mob:07922 146 761
> Web:www.wyversolutions.co.uk (http://www.wyversolutions.co.uk)
>   
> Wyver Solutions Ltd | Company number: 5731173 Registered in England | Registered address: First Floor, 6 Bridge Street, Belper, Derbyshire, DE56 1AX
>   
>  
> On Wednesday, 22 January 2014 at 15:20, Tom Reijnders wrote:
> > I think we should try to improve on the process. But there are other aspects of Xerte that are more important (I think) at the moment.
> >  
> > Point is, it's not hard to do:
> >  
> > 1. just copy the parent_template/Nottingham folder to a new folder in parent_templates
> > 2. go into management.php, and rescan the templates
> > 3. edit to you hearts content
> >  
> > The difficulty is the (long-term) maintenance....
> >  
> > Tom
> >  
> > On Wed, 22 Jan 2014 14:42:21 +0000 Mark Berthelemy <mberthelemy at wyversolutions.co.uk (mailto:mberthelemy at wyversolutions.co.uk)> wrote  
> > Hi there,
> >   
> > I need to create a new look and feel for Xerte learning objects that will be used across all new LO’s.
> >   
> > It’s basically going to be the normal Nottingham HTML5 design, but with tweaks to brand it.
> >   
> > Is there a recommended way to do this?
> >   
> > I’m finding it hard to work out which bits of the code-base hold the relevant CSS, and then how to add a new “template(?)” so it can be used by the learning designers.
> >   
> > Thanks,
> >   
> > Mark
> >   
> > --  
> > Mark Berthelemy
> > Managing Director
> > Tel:01773 881 227
> > Mob:07922 146 761
> > Web:www.wyversolutions.co.uk (http://www.wyversolutions.co.uk)
> >   
> > Wyver Solutions Ltd | Company number: 5731173 Registered in England | Registered address: First Floor, 6 Bridge Street, Belper, Derbyshire, DE56 1AX
> >   
> >  
> > =
> >  
> > _______________________________________________
> > 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
> >  
> >  
>  
>   
>  
>  
> _______________________________________________
> 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
>  
>  


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20140122/a0a13d26/attachment.html>


More information about the Xerte-dev mailing list