Koozali.org: home of the SME Server

Templates and events/actions Questions

Black

Templates and events/actions Questions
« on: July 25, 2005, 05:24:01 PM »
When following the documentation I noticed there's a couple Templates Folders

templates
templates-custom
templates-default
templates.metadata
templates-user
templates-user-custom


My main problem is that the HELP Files everyone seems to point the newbies to Do Not reflect these type of changes.

Why are there so many of those folders?

The help file talk about a Server-Manager Panel AND a Password panel. where is this Password panel?

Why was this removed and why is it still in the help file?

When making a addition to a template how do you go about numbering it? S80, S70, S95?? The manual never really tells you this..

arthurhanlon

Templates and events/actions Questions
« Reply #1 on: July 25, 2005, 07:53:24 PM »
Hi there,

The documentation on this site for the customisation of the templates is pretty extensive and gives you and overview of how to edit and add template fragments. Check the following link http://no.longer.valid/phpwiki/index.php/Key%20concepts (Check also "Architecture Overview" from within this link)

As for the password panel, there is a panel that allows any user to change his/her password at any time they like. This is available at http://server-name/user-password/

Hope this helps,

Arthur

Black

Templates and events/actions Questions
« Reply #2 on: July 25, 2005, 08:11:18 PM »
Thanks for the reply! I didn't see anywhere in the documentation about how to get to the user-passwd webbased setting.

I also didn't see anything about all those template directorys?

I've been combing over and over those papers and it's still confusing about the S80, S85,S90 etc..

What if I wanted to Ban a IP Address coming to my site as an example?

arthurhanlon

Templates and events/actions Questions
« Reply #3 on: July 25, 2005, 11:08:11 PM »
Woah there, you got me.

Never actually had a need to edit any templates myself so couldn't even hazard a guess for fear of you wrecking your server. I dare say that it's not something that can be picked up and it'll need a little trial and error to get the jist.

This is the next step for me, customisation. I got a working server, now it's time to break it  :-x

Arthur

Offline pfloor

  • *****
  • 889
  • +1/-0
Templates and events/actions Questions
« Reply #4 on: July 26, 2005, 02:24:35 AM »
Quote from: "Black"

I also didn't see anything about all those template directorys?

I've been combing over and over those papers and it's still confusing about the S80, S85,S90 etc..


templates > Here is where all the main templates reside DO NOT TOUCH THESE!
templates-custom > Here is where you would put any custom templates that will add to OR override the main templates.
templates-default > These are system default templates. DO NOT TOUCH THESE!
templates-user and templates-user-custom > Don't really know what these are, someone else will have to answer that.

The templates in the template directory control the corosponding configuration files.  The numbers on the template fragments tell the system in what order to place the fragments in the configuration file.  So for instance, if you place a fragment called 93Gallery in /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/ the change would be placed between fragment 92ProxyPassPassword and 95AddType00PHP2ibays that are in the main template directory.

S90 would actually be placed at the end of the configuation file as letters come after numbers and the fragment would start with a letter.

If you name your custom template fragment the same as an existing template fragment, the custom template fragment will totally override the original template fragment.

It's a bit more complex than this but at least this should give you the general idea.

Hope this helps.
In life, you must either "Push, Pull or Get out of the way!"

Offline gordonr

  • *
  • 646
  • +0/-0
    • http://www.smeserver.com.au/
Re: Templates and events/actions Questions
« Reply #5 on: July 26, 2005, 03:48:56 AM »
Quote from: "Black"

templates


Standard templates, installed via RPM. These may either be installed by the normal system install, or by add-on packages which don't conflict with the system installed templates.

The files in this tree should not be modified by hand. The changes will be lost in the next system upgrade.

Contrib developers - your templates should go here, unless they conflict with a standard template. If so, please raise a bug so that the conflict can be resolved. There are cases where the templates should be split, but unless you raise a bug nobody is going to know.

Quote from: "Black"

templates-custom


Hand-installed templates (local hacks) or templates which conflict with/override the system installed templates.

Each template here must be checked for relevance and compatibility with each system upgrade. The overridden template may have changed or ceased to be.

Quote from: "Black"

templates-default


Simple headers/footers for template expansions in various languages - e.g. html, php, etc.

Quote from: "Black"

templates.metadata


Extra configuration parameters for template expansion, when required - e.g. to set ownership, permissions or paths when the defaults aren't sufficient. These are used quite a lot in 7.0 in preference to simple conf-* scripts which just expand a template with specific permissions, ownership, etc. The templates.metadata method is far more efficient.

Quote from: "Black"

templates-user


Templates which expand relative to user's home directories, e.g. /etc/e-smith/templates-user/.qmail

Quote from: "Black"

templates-user-custom


The equivalent of templates-custom for the user templates.

Gordon
............

Black

Templates and events/actions Questions
« Reply #6 on: July 26, 2005, 05:08:55 AM »
Ok thanks. That wasn't explained in any of the manuals I have been reading here. I wish there was a course or some people to get together with and hack in this. I feel like I dont know anything about it and i've been running it for a year :(

Offline gordonr

  • *
  • 646
  • +0/-0
    • http://www.smeserver.com.au/
Templates and events/actions Questions
« Reply #7 on: July 26, 2005, 05:47:49 AM »
Quote from: "Black"
Ok thanks. That wasn't explained in any of the manuals I have been reading here.


Some of this (e.g. templates.metadata) is new in 7.0 development.

Quote from: "Black"
I wish there was a course or some people to get together with and hack in this. I feel like I dont know anything about it and i've been running it for a year :(


I'd be quite happy to run a course, but I'm not in your neighbourhood :-)
............

Black

Templates and events/actions Questions
« Reply #8 on: July 26, 2005, 02:20:46 PM »
What about doing Video Screen Capture on your PC? Like they do on vtc.com :)