Main Stories
Slash Boxes

Slash Open Source Project

Slashcode Log In

Log In

[ Create a new account ]

Article Poll

Poll I found this article to be
Very Helpful
Helpful
Not Helpful
Not Very Helpful
[ Results | Polls ]
Comments:0 | Votes:1

Themes how to

posted by Krow on 12:33 PM October 1st, 2002   Printer-friendly   Email story
I have just finished making the HTML templates for a new site and have slash 2.2.5 up and running. How do I make and install these templates as a theme ? How are template-tool, template check and install theme involved in this process ? What is boilerplate ? thanks - Bob
This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login
Loading... please wait.
  • Cool. What is your URL? Are these templates less dense than the standard Slashcode ones?
    --

    --
    It's either on the beat or off the beat, it's that easy.
    • the url for test purposes will be www.kr8.co.uk (I am waiting for the dns info to propagate at the moment and will put the html up then) The templates are very logical and there are less of them so I think the answer is probably yes with regards to the density. The templates are intended to be used for a site that combines product news with the actual products for sale. I am going to try and intergrate it with the interchange e-commerce software, there are probably a number of issues there but I will cross that bridge when a come to it !
  • things to do:

    1. search for relative discussion [slashcode.com] on slashcode.

    2. Read the docs - [slashcode.com]
    HOWTO-Themes - How to write and use Slash themes.

    If I were you, I would make a copy of the slashcode them, call it 'mytheme'. Then I'd edit it's theme file, and put it's new name in there. Then I'd take my templates and put them in the theme's template folder.

    then make install and then use the install-slashsite tool to create a site that uses your theme.

    if that work, then continue customizing from there...
    --
    lottadot [lottadot.com]
    • thanks for the reply, before posting I :

      read the relative discussions
      read the docs and how to themes

      I could find very little short of what you kindly said to actually answer the questions I had. The method you describe seems to be a very convoluted way to make a new theme considering the technologies used to make slash in the first place and the layered programming approach. Having looked at as much documentation as possible with regards to how the actual system functions it seems strange that the only way to make a new theme is to hack away at the old one! (time consuming and unpleasant work) surely this is not the point of content, data abstraction! How was the intitial slash theme made ? how can we use the power of template toolkit to create the necessary templates ? Which parts of the slash code do we need to look at with a view to modifying in order to do this? Before I start the probably long process of examining all the code surely someone can provide pointers to speed this up?

      many thanks - Bob
      • it seems strange that the only way to make a new theme is to hack away at the old one!

        I've done it both ways - the first theme I did, I did it by hand. The second, I copied slashcode, and removed what I didn't want, and the modded away for look and feel (ie the templates).

        Which was easier? Probably the second method.

        Should there be an easier way? I dunno. I don't see a problem with this. Sure, a theme-builder tool would be great, but someone would have to constantly upkeep it to keep up with changes an
        --
        lottadot [lottadot.com]