1
The_DoubleU
Questions about layout and themes/templates
  • 2004/12/1 10:44

  • The_DoubleU

  • Just popping in

  • Posts: 9

  • Since: 2004/11/28


Just started with XOOPS and so far things are running smoothly.
I can install modules and themes and beginning to figure out how I can modify them to my liking.
Ofcourse I want to create my own theme and I have a few questions about this before I proceed with this.

1. Site layout.
Have read Anatomy of the Default Theme I understand that this is the default layout of xoops. But ofcourse this can be modified.
So is it possible to move these blocks around?
So a layout would be.
-------------------
|
Header           |
-------------------
|
Block_left       |
-------------------
|
block   |block   |      
|
right   |center  |
|        |        |
|        |        |
-------------------
|
footer           |
-------------------

Block_left would contain all the menu's for example.
Will XOOPS protest if I leave a block out?
For example I don't want to use blockright at all. And I just make a layout like this.
-------------------
|
Header           |
-------------------
|
Block_left       |
-------------------
|
Block_center     |
|                 |
|                 |
-------------------
|
footer           |
-------------------


If I don't configure any modules to show in the missing block, this should work?

2. Themes and templates.
I have cloned the default theme, according to these instructions, so I can modify the theme to my liking.
I also installed a module, which was cloned also.
When I now change the template file of that module in xoops. Where are these changes saved?
Is it in /modules/modulename/some_template.html
or somewhere else?
I checked in my themes/my_theme folder but couldn't find it there.

Thanks in advance for your reaction.

Willem

2
Herko
Re: Questions about layout and themes/templates
  • 2004/12/1 11:50

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


1. Yes this is possible. All you have to do is call your blocks in the right place in your theme.html file. Practically, you can call the blocks block1,block2 etc. in stead of block_left etc. XOOPS will not complan if you only use one, or two or whatever number. Just make sure that you assign your blocks to the right 'location'.

2. They are saved in the database. That's why you need to edit them in the Template Manager n your system admin.

Herko

3
The_DoubleU
Re: Questions about layout and themes/templates
  • 2004/12/1 12:42

  • The_DoubleU

  • Just popping in

  • Posts: 9

  • Since: 2004/11/28


Quote:

Herko Coomans wrote:
2. They are saved in the database. That's why you need to edit them in the Template Manager n your system admin.

Herko


Thanks Herko for your quick reply.
Your answer to question number 2 has developed a few more questions and would explain why I didn't see any changes after I edit the template files directly on the filesystem.

Is everything of a module saved in the database or only the templates?
If I want to make a modification to mymodule.php. Do I edit this document on the filesystem (/modules/mymodule/mymodule.php) or can you edit this also via template manager?

If module templates are stored in the database, does this mean I can delete them from the module folder?

What exactly is stored in the database and what not?
Is there a link where this is described somewhere?

Thanks again!
Willem.

4
ajaxbr
Re: Questions about layout and themes/templates
  • 2004/12/1 12:54

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


.php files are executed in your webserver, so any changes to them (in the filesystem) takes effect immediately.

What exactly goes to DB? Hmm... templates and data, I guess.

Can you delete the files? Not recommended Updating a module will require the template files, not sure about other situations but it's safe to assume that no harm will come from leaving thoses files right where they are

5
The_DoubleU
Re: Questions about layout and themes/templates
  • 2004/12/1 20:13

  • The_DoubleU

  • Just popping in

  • Posts: 9

  • Since: 2004/11/28


Thanks all for the info!
It is really a nightmare to find out "what is stored where", in the beginning.
But I'm used to work with Lotus Notes, that can be nightmare also :)

Login

Who's Online

216 user(s) are online (121 user(s) are browsing Support Forums)


Members: 0


Guests: 216


more...

Donat-O-Meter

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

Latest GitHub Commits