1
trspice
What is the purpose of the Template editor in admin? It doesn't edit.
  • 2007/5/16 3:43

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


I tried to edit the template files for modules using the admin 'Template Edit' but there is no submit button. What is the purpose of this feature? Is there a code to edit to enable this?
There's nothing but science....
The Reggae Album

2
BlueStocking
Re: What is the purpose of the Template editor in admin? It doesn't edit.

by trspice on 2007/5/15 22:43:38 - I tried to edit the template files for modules using the admin 'Template Edit' but there is no submit button. What is the purpose of this feature? Is there a code to edit to enable this?
_______________________________________
You CAN NOT edit the DEFAULT theme.
You MUST CLONE the template BEFORE you will get an edit button, then you can edit the clone.

I saw this, but I guess I didn't believe it because I even went into the MySQL and tried to edit from there. Again on the default theme and it just won't work that way.

Go to the admin/system/templates and make a clone for the default theme and you will be in business.

Good luck,
BlueStocking
https://xoops.org/modules/repository .. It is time to get involved - XOOPS.ORG

3
snow77
Re: What is the purpose of the Template editor in admin? It doesn't edit.
  • 2007/5/16 4:10

  • snow77

  • Just can't stay away

  • Posts: 864

  • Since: 2003/7/23


My recommended option is to use the Template Overriding technique instead of template cloning.
www.polymorphee.com
www.xoopsdesign.com

4
gestroud
Re: What is the purpose of the Template editor in admin? It doesnt edit.
  • 2007/5/16 4:59

  • gestroud

  • Home away from home

  • Posts: 1538

  • Since: 2004/12/22


I could be wrong, but I think that trspice may not be asking about editing the default theme. I have a feeling that the question has more to do with editing module templates.

Quote:
I tried to edit the template files for modules using the admin 'Template Edit' but there is no submit button.


I've always wondered the same thing about that feature, as well as the template editor that you can view when we work with blocks.

5
snow77
Re: What is the purpose of the Template editor in admin? It doesnt edit.
  • 2007/5/16 5:07

  • snow77

  • Just can't stay away

  • Posts: 864

  • Since: 2003/7/23


Quote:
I could be wrong, but I think that trspice may not be asking about editing the default theme. I have a feeling that the question has more to do with editing module templates.


Template overriding is used to place an edited module template inside the themes folder and create your own "template set", it's not to do with the theme itself, it just keeps the templates in one accessible place inside the theme folder. I find it as a "safer" way to keep control over module template editing.

Also with the module XOOPSinfo you can keep track of which templates are being overridden.
www.polymorphee.com
www.xoopsdesign.com

6
MadFish
Re: What is the purpose of the Template editor in admin? It doesnt edit.
  • 2007/5/16 7:23

  • MadFish

  • Friend of XOOPS

  • Posts: 1056

  • Since: 2003/9/27


You cannot edit the default template set through the admin interface. You have to clone it, and then edit the clone (and edit button is visible for the clone).

The idea is that if you mess up, you can always fall back onto the default set again.

7
mboyden
Re: What is the purpose of the Template editor in admin? It doesnt edit.
  • 2007/6/7 19:29

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


There is also Option 3 - Use GIJoe's excellent System Administration module to manage and edit templates and template sets. This is what I setup for my clients and it has some advanced functionality to see where templates kick in and out if you're having a hard time finding it in the code.

I have a hard enough time getting clients to just put a single theme on their website, not to mention wanting to develop several, so that works for me. However, if you want to develop several working themes for your website, then I do recommend Option 2 with theme overriding.

Good luck.
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development

Login

Who's Online

211 user(s) are online (126 user(s) are browsing Support Forums)


Members: 0


Guests: 211


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