By marcus_who on
HI
Ive have used mambo, and then i could open the php templates in dreamweaver, but now with dupral i have no ide how to change the theme. Is there no program that can read the theme files?
HI
Ive have used mambo, and then i could open the php templates in dreamweaver, but now with dupral i have no ide how to change the theme. Is there no program that can read the theme files?
Comments
quick answer..
Hi Marcus,
the quick answer is the phptemplates come with a style.css style sheet file that you can open in mostly any text editor or CSS stylesheet editing programme.
There are also template.tpl.php files...which are text files that have PHP instructions that pieces your pages together. They are essentially HTML files with PHP instructions that pulls content from your database and constructs the pages.
You don't need to be a PHP whizz to edit the tpl.php files. I'm not and I was, gradually, able to work out how to move something or remove a tag. I used an open source programme called crimson editor to do the editing. It's like a text editor, but, it highlights the PHP tags for you so it's easier to see what you're doing.
Recommend you bookmark or have a quick look at the phptemplate handbook section for guidelines.
There are some handy modules you can download to help design your templates. Click through to the DOWNLOAD - >> MODULES section.
I hope that helps. Don't be too dissapointed that you can't edit the tpl.php files in dreamweaver..I used to use homesite editor before moving to Drupal and have found the templating to be much more powerful the way they have done it. Albeit a little different in terms of editing, tweaking etc.
Dub
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate
You have several types of
You have several types of themes, the most common use php and css.
You can edit both php and css files with dreamweaver (although I think it's not the best application you can use).
I should advise you to read the following: http://drupal.org/node/509
and more specificaly this: http://drupal.org/phptemplate
You could also use the Drupal Theme Generator version 2.2 (based on ms excel):
http://drupal.org/node/36302
example
Thanks for the fast replies
Example
on the bluemarine theme the usermenu on the left is gray, how would i change the color.
style sheet
in the stylesheet you can change the colours of text/divs etc. the file is called style.css and you should find it under your /THEMES/BLUEMARINE/ folder.
There is another "base" style sheet you should know about as well, called drupal.css which is in the /MISC/ folder.
hope that helps
Dub
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate
But in the code what is the
But in the code what is the left menu grey background called, and the codes for colors used, are not the same as HTML so is there a list of what colors they are?
Play
when I started with drupal I spent some time playing with the stylesheet. If you see a color in the stylesheet and you don't know what it is, change it (I usually use a bold color like yellow or red) and then view the site to see what changed. I also changed any height on a property I didn't know to some usually large value.
You'll need to spend some time doing this to really understand what controls what.
(and in bluemarine, it's probably #sidebar-left or .sidebar-left or somesuch. I usually use box_grey, so I'm not 100% sure about bluemarine).
silverwing
is it called?
is it called "left-blocks" or "container left" or something like that?
there is a theme design helper module that displays the DIVS in a page for you. Have you tried that?
If you're in Internet explorer, you can click on view source to see what the DIVs are called and then edit them in the Style.css.
Alternatively if you have a decent style sheet editor (CSS editor) it usually gives you a preview of what the tags look like.
Hope that helps..
Dub
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate
These modules maybe
These modules maybe useful:
Theme Editor
Allows users to edit themes without access to the file system, entirely through a web-based admin interface. Editing begins by making a copy of a currently installed theme, then allows users to edit template files, and css files, as well as upload new graphics.
Themedev
Provides several diagnostic CSS stylesheets which can be used to reveal the structure of a site. Particularly useful for anyone developing a theme or customizing an existing theme to suit a different site. Viewing of the themedev CSS can be restricted to specific user roles.
Dub
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate
wow it works, great feeling
wow it works, great feeling it was sidebar-left, and the width was easy to change too. I got a bit stressed i guess i just have to work with it before i get used to it.
Thanks all, this forum seems really awake and with nice inhabitants.