Hi,
re: Aaardvark_postit and Fadeback,
Q: would it be possible to change the theme names???
Sue... this link may helps to you http://docs.moodle.org/dev/Themes_2.0_how_to_clone_a_Moodle_2.0_theme
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
Yes to all of that Derek. How many themes do you need?
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
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
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
If you are not linux techie we can use the text editor software like 'notepad++' or 'textwrangler' etc for rename process.
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
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.
Hi Suman,
What Derek is wanting to do, is to change multple themes with different theme names which is quite complicated.
Thanx Mary and Richards..
@Richards, I'll definityly try your linux code for renaming themes