1
barryc
Template for morphogenesis theme
  • 2009/3/22 8:08

  • barryc

  • Just can't stay away

  • Posts: 480

  • Since: 2004/3/20


I'm trying to set up a theme based on morphogenesis 2. There are smarty codes in the html files with the theme, but I don't know where the template files are to define those. The theme is zen ocean.

Can someone explain to a morphogenesis beginner how and where the template files are installed?

Barry Cooper
Sweet Home, Oregon

2
Burning
Re: Template for morphogenesis theme
  • 2009/3/22 11:51

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

There is a little documentation here. I hope it helps.

About templates :
- theme templates are in /xotpl folder
- overrided templates are in /modules/module-name/ folder

... but I don't know how Zen ocean theme is made
Still learning CSS and... english

3
barryc
Re: Template for morphogenesis theme
  • 2009/3/22 15:47

  • barryc

  • Just can't stay away

  • Posts: 480

  • Since: 2004/3/20


Sorry, but the link you gave does not work. 404 error.

To clarify what I'm asking, in the morphogenesis type themes (such as zetagenesis, supplied with xoops) there are calls like <{$smarty.const._THEME_PROFILE}. One must have to define what is placed in the page for THEME_PROFILE, as an example. I am trying to figure out where that information is kept.


BC
Barry Cooper
Sweet Home, Oregon

4
Burning
Re: Template for morphogenesis theme
  • 2009/3/22 16:06

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


oups! it works now
Still learning CSS and... english

5
Mamba
Re: Template for morphogenesis theme
  • 2009/3/22 16:15

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Quote:
but I don't know how Zen ocean theme is made

It's one of Kris' themes (see here)
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

6
Burning
Re: Template for morphogenesis theme
  • 2009/3/22 16:22

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


Quote:
It's one of Kris' themes

I know that, I usually copy all his work

But I haven't opened this one...
Still learning CSS and... english

7
barryc
Re: Template for morphogenesis theme
  • 2009/3/23 16:23

  • barryc

  • Just can't stay away

  • Posts: 480

  • Since: 2004/3/20


Well, I finally figured this out myself. After doing quite a bit of reading from various places I did not find any direct reference to where the values for Smarty variables are kept. I did learn someting about Smarty, though. I knew that variables in modules are kept in language/english/main.php. Therefore I decided to try making a dir structure like that within the theme directory. Then I created a PHP file, main.php, and entered the define statements.

That worked! I was surprised almost, but pleased. I now wonder if these definitions could be put in XOOPS_ROOT/language/english/main.php and still work. Some time I'll try it, but my instinct was to keep the theme Smarty definitions separate, as indicated above.

Perhaps this will help someone else. It might be a good idea to put something in the readme file to the effect that one needs to enter define statements for the Smarty variables (whereever is the best place to keep them).

Barry Cooper
Barry Cooper
Sweet Home, Oregon

Login

Who's Online

218 user(s) are online (154 user(s) are browsing Support Forums)


Members: 0


Guests: 218


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