1
ricland
My First Template Edit
  • 2004/4/19 18:27

  • ricland

  • Just popping in

  • Posts: 28

  • Since: 2003/5/15


This is my first template edit. All I want to do is replace the blue bar/banner going across the top of the default theme with my own header. I suppose I could go into the css and just absolute position my graphic there. I've already uploaded the banner image to the uploads directory.

Was wondering whether I should do something with the template, so I went into system manager, cloned a template then down loaded the .tar file. I expected an html page I could edit, instead I got about 30 template files. I have no idea what to do with them.

I need a step by step way of editing the template -- if indeed, that's what I'm supposed to do in order to place my banner across the top.

2
Herko
Re: My First Template Edit
  • 2004/4/19 18:44

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


It is important you know the difference between the theme and the templates in order to be able to work with them.

The theme file (located in the /themes/ folder) defines the layout and design of your static page. It is the basic design layer of your site. It controls the design and layout of the static elements of your page, and positions the dynamic elements. The theme file is a static file, saved as .html, and contains Smarty tags for the dynamic elements. The static elements of your page you have to edit manually, and then upload to your server, in order for the changes to take effect.

The templates are for designing the dynamic elements. They're made of a set of html files, which are stored in the database, and they contain HTML code and smarty tags for the dynamic elements as well. The templates design a module's output, pages and blocks. Editing templates is done at the template manager, which you have already discovered.

More information can be found here:
http://wiki.xoops.org/wakka.php?wakka=XOOPSThemeDevelopersGuide

(also see the links for the next sections at the bottom of the text!)

Herko

Login

Who's Online

338 user(s) are online (221 user(s) are browsing Support Forums)


Members: 0


Guests: 338


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits