can i change theme names? (2.2)

can i change theme names? (2.2)

از sue sugizaki در
Number of replies: 11

Hi,

re: Aaardvark_postit and Fadeback,

Q: would it be possible to change the theme names???

میانگین امتیازات:  -
In reply to sue sugizaki

Re: can i change theme names? (2.2)

از suman bogati در
In reply to suman bogati

Re: can i change theme names? (2.2) + Cloning for category reuse

از Derek Chirnside در

OK, so it is possible to rename a theme.

I'm interested in this because we would like to have themes at the category level, but you if you use theme X somewhere (and maybe make a logo change) you cannot then use this theme in another category with a different logo.  Can you imagine a Moodle where each category has a radically different theme? متعجب

I've talked to our provider recently to see what the cost would be to clone a theme like Boxxie_Main and then create Boxxie_Lib_Arts, Boxie_sci (etc)

Question: could you write a script to do the steps in http://docs.moodle.org/dev/Themes_2.0_how_to_clone_a_Moodle_2.0_theme with a fighting chance of success to do the renaming?

Say Run Clone Boxxie_Main Boxxie_lib_arts,Boxxie_Sci (etc)

Optimistic as usual.

-Derek

In reply to Derek Chirnside

Re: can i change theme names? (2.2) + Cloning for category reuse

از Richard Oelmann در
عکس Core developers عکس Plugin developers عکس Testers

As Mary says - yes لبخند

But consider whether it may be easier to use child themes based on Boxxie (or any other 'main' theme) if all you are doing is making a few small changes to logo/colour schemes. Those should be easier to maintain as any fixes/developments to Boxxie would automatically cascade into the child themes, rather than needing to be reworked into a clone.

In terms of a script - I've posted previosuly that you can do most (not all, as it doesn't rename file names, just everything inside them) with a 1 line command in Linux - see here. I appreciate not everyone here (in fact probably a small minority) is a Linux user, but if you can find a friendly penguin to do it for you (preferably not one kidnapped from an Australian theme park!), or if you are prepared to try out a free live dvd or virtual box, this could be a useful tool لبخند

HTH

Rich

PS with respect to a moodle with vastly different themes for different categories - yes لبخند In the past I had to add a community family centre to a school moodle site, but they wanted their own look and feel not use the school one. There are a number of instances where one moodle site serves more than one user group/client/etc. :D

In reply to Derek Chirnside

Re: can i change theme names? (2.2) + Cloning for category reuse

از Mary Evans در

Just to add to what Richard has just posted, do pleas remeber that theme name need to be in lowercase letters and NOT the way you have listed your theme names earlier.

Cheers

Mary

In reply to Mary Evans

Re: can i change theme names? (2.2) + Cloning for category reuse

از suman bogati در

If you are not linux techie we can use the text editor software  like 'notepad++' or 'textwrangler' etc for rename process.

In reply to suman bogati

Re: can i change theme names? (2.2) + Cloning for category reuse

از Richard Oelmann در
عکس Core developers عکس Plugin developers عکس Testers

Hi Suman,

Yes, the 'normal' way of doing it is to use something like notepad (When I'm on Windows I use notepad++ as you mentioned) and edit each file manually - usually using Find and Replace.

I'm not sure about how (although I'm sure it can be done) you would go about writing a script to do the name changes in Windows (as Derek had asked about) and whether this is possible in something like notepad++ or any other Windows tool, or whether you'd have to write some kind of mini-program in python/perl or some such to achieve it.

My comment was merely a reference to one possible option for those developers who do use Linux as a quick one liner which does 95% of the work - although in all honesty, I'm still at the stage using it where I tend to go through every file and check manually anyway! lol! I haven't found any failures yet, including all the javascript files, etc.! (not sure about Mac - as that is also derived from Unix, the same or similar code line might work on there???)

Although I have to use Windows as my main desktop OS in work, I keep a Linux virtualbox on the system for doing little things like this as i find it speeds up my workflow - but I will happily acknowledge that the reason for that is that I am primarily a Linux user outside work so i am familiar with some of the tools, while this would not necessarily be beneficial to someone who is 100% Windows based لبخند

 

Richard

In reply to Richard Oelmann

Re: can i change theme names? (2.2) + Cloning for category reuse

از suman bogati در

Richard...

There is no need to write scrpt for this work, I simply can use the 'notpad++' to do this job.

In 'notepad++' when you click the 'contro+f' then the dialogue box will be opened, Option "Replace in files" under the  'find in files' tab let you do the rename job in all your files of theme in just one click.

As I mentioned in previous post this is suitable for only window based user.

In reply to suman bogati

Re: can i change theme names? (2.2) + Cloning for category reuse

از Richard Oelmann در
عکس Core developers عکس Plugin developers عکس Testers
Thanks suman. That's a feature I hadn't come across yet لبخند a very useful one for any windows based theme creators. Thanks for pointing it out to me. Richard From my HTC android phone
In reply to suman bogati

Re: can i change theme names? (2.2) + Cloning for category reuse

از Mary Evans در

Hi Suman,

What Derek is wanting to do, is to change multple themes with different theme names which is quite complicated.