AndyGB4
Posts: 122
|
| Posted: 11/28/2012, 1:50 PM |
|
Hi everyone,
i recently converted a project from CCS4 to CCS5, but here's my problem:
The Custom Styles that I had created followed over in the project folder, which is great.
But when I try to create a new page and want to select my Custom Style, it's not in the list.
When I go check in CCS5's program files, there's no folder for the Custom Style, so I guess it makes sense that it's not on the list.
The real problem is here:
Before the conversion, my boss also changed my computer's OS from Windows XP to Windows 8, which means I needed to reinstall both CodeCharge Studios (4&5). Which also means that the Custom Styles saved in the CCS4's program files no longer exist!
The only thing I have left of them is what CCS puts inside the actual project folder.
Is there any way to get the style back so I can select it for a new page?
Or am I doomed to trying and recreate all the Custom Style, or even worse, go through the HTML and change all the paths to the old custom style?
Any help is appreciated!
|
 |
 |
andrewi
Posts: 162
|
| Posted: 11/30/2012, 4:13 AM |
|
No you don't have to recreate them!
Every upgrade so far has required custom styles to be manually imported to the new version.
You can try the export/import solution : http://forums.codecharge.com/posts.php?post_id=117815 if you still have CCS4 running.
I normally end up copying the custom style folders from the old install (under the codecharge program files folder - in components sub folder I think) - there could, I suppose be, format change in CCS5 that makes the export/import route better, though strikes me as unlikely.
For a long time I've backed up these custom files separately - realising the pain that would be involved in re-creating them.
|
 |
 |
AndyGB4
Posts: 122
|
| Posted: 11/30/2012, 6:19 AM |
|
Thanks for the quick reply,
unfortunately, when my boss installed Windows 8, my CCS4 program files were deleted (and nothing was backed up..), so I cant go get the style folder that was in the program files.
All I'm left with is the Style folder that they add to your actual project, which I'm afraid is not enough to properly import it back to CCS.
|
 |
 |
andrewi
Posts: 162
|
| Posted: 11/30/2012, 11:34 AM |
|
All wrong - see next message
Ah, that is a pity.
It looks like there are two files in Components\Styles\StyleName\ folder that you'll need but that don't get published.
1 -Thumbnail.bmp : which you could copy from any other style
2 - [name of style].cct : ...
[/i
|
 |
 |
andrewi
Posts: 162
|
| Posted: 11/30/2012, 12:16 PM |
|
Good news - CCS just uses the CCS and image files for the style - so you have all the files you need in your working website.
There is a .cct file in the styles folder - but that just contains the setting for the deprecated CCS "Themes" - so its actual contents aren't relevant for Styles. However the file has to exist in the folder. Here''s what to do
- Open CCS5 and create a new CCS style called MyNewStyle.
- Find the Styles folder on your site (or project folder), choose one of your styles and grab all the files : that's a few css files and the "images" subfolder.
- locate your new CCS5 MyNewFile folder. On Windows 7 and possibly 8 it will be in "C:\Users\YourUserName\AppData\Local\VirtualStore\Program Files (x86)\CodeChargeStudio5\Components\Styles\MyNewStyle"
- delete everything from this folder EXCEPT MyNewStyle.cct, and paste your .css and images folder over the top.
- Reopen CCS5 and browse styles. MyNewStyle should have all your style settings. There'll be no thumbnail image - this is probably regenerated on any change to the style.
So, it's very easy. Good old codecharge - it works very sensibly in this respect.
Andrew
|
 |
 |
AndyGB4
Posts: 122
|
| Posted: 11/30/2012, 12:19 PM |
|
Wow! thats great news!
When I did my own research I noticed those exact files were missing, but didn't know what I could possibly do to make it work.
I'm going to give your solution a try!
Thanks so much for the help!
I'll post back here with the results.
|
 |
 |
andrewi
Posts: 162
|
| Posted: 11/30/2012, 12:45 PM |
|
Bear in mind that because you are changing the style contents outside of CCS, you've got to force CCS to pick up the files you've copied. I find I've had to do this in previous versions occasionally.
- If you had the project open while you created MyNewStyle, find the style folder in the Project Explorer within CCS itself (it'll be Pages /Styles / MyNewStyle.) and delete the MyNewStyle node.
- Create a page and apply MyNewStyle to the page. That will cause the MyNewStyle folder to be re-created and the new pasted-in css will then be available.
----
However: bad news - I've noticed that as soon as you try to edit the style it reverts to the original that you chose for MyNewStyle. More work needed here I fear -perhaps the cct file is needed after all.
Andrew
|
 |
 |
AndyGB4
Posts: 122
|
| Posted: 11/30/2012, 1:57 PM |
|
Well i tried what you said and it all worked perfectly, so that's great.
But unfortunately, as you just mentioned, I'm not able to modify it.
Luckily, my style will most likely stay this way so that's fine with me in this case.
But yeah, it would be great to find out how to fix it for good.
Thanks again for everything! You really helped me out a lot!
|
 |
 |
|