Ts
|
| Posted: 07/26/2003, 6:14 AM |
|
Is it possible to create your own CSS styles and use them with CSS?
I'm using TOPSTYLE, but certain elements like buttons are very difficult to affect?
Any help would be appreciated.
Thanx
|
|
|
 |
Tom
|
| Posted: 07/26/2003, 2:30 PM |
|
Yes right within CCS you can modify and add your own elements. Under Tools\Themes.
I usually start out with one of their standard themes and copy it and modify from there.
|
|
|
 |
Ts
|
| Posted: 07/27/2003, 1:11 AM |
|
Thanx Tom, but I was hoping to create an independent CSS file which could be easily replaced (by the user)to affect the whole site.
I can do it. It's just elements like buttons that I can't identify. CCS is too sophisticated for me in the way it implements CSS.
Thanx again.
|
|
|
 |
lneisius
|
| Posted: 07/27/2003, 9:26 AM |
|
CCS has a very simple way to work with user selectable themes. I create all the pages using a standard theme from the ones provided and then use the set tag action to replace all the theme info.
1. Create pages using a theme.
2. In html search and replace theme with tag.
ie. replace TOPSTYYLE with {Theme}
3. In events before show right click and set tag.
ie. Tag Name-> Theme
Expression-> Session("Theme")
4. Create a way for the user to select the theme, I use a listbox in the header of all my pages and then when the user selects the theme the Session is set and the page refreshed.
It would be nice if there was a global set tag but theres not so all pages using the system above require the set tag action in the before show event.
|
|
|
 |
Headhunter
|
| Posted: 07/27/2003, 12:20 PM |
|
Mysql + php
I have my settings stored in the db, that is inderted by a selection in a listbox
In my project I have a theme for the newspage and a theme per user where they log in to manage newsitems etc.
You can view it at http://www.dbweaver.com/weavernews_demo
Login is at the bottom of the page
Login: admin
Password: admin
//Custom theme:
global $Tpl;
global $DBweavernews;
//retrieve setting from db
$Theme = CCGetDBValue("select theme from settings where id = 0", $DBweavernews);
//set template
$Tpl->SetVar("Theme", $Theme);
In your html change the theme folder to "{Theme}" (without quotes)
So it look like this:
<link rel="stylesheet" type="text/css" href="Themes/{Theme}/Style.css">
hope this helps.
Regards.
http://www.dbweaver.com
|
|
|
 |
Ts
|
| Posted: 07/28/2003, 12:57 AM |
|
lneisius: I set no theme in my project and I load CSS properties into my header, this then affects all pages and works fine, easy!. My probelm is that I would like a little more design control over the elements, such as the buttons. I think, as I said before, I'm gona have to learn more about CSS.
Thanx for your help
|
|
|
 |