Hint of the Day:
  Looking at Others' Templates

Written 22/01/05 

If you want to see how another Opus site does something using templates then bear in mind is that templates are usually downloadable as they're within the document root and are unprotected by .htaccess and most people, us included, use the templatepath merge field in the page header comments (it's in all the default templates). So for example if you look at the source of http://www.actionpf.org.uk you will see:

    Template: /users/actionpf/www.actionpf.org.uk/php/web/homepage.template.html

Then if, based on that information, you try accessing

    http://www.actionpf.org.uk/php/web/homepage.template.html

you will get a rather odd looking web page. Save that you have the template for that page. Easy as that.

(And hint of the day number 2: if you don't want people to be able to do this then protect your templates via .htaccess!)

<- Newer Older ->