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:0

Template Editing

posted by Krow on 12:30 PM March 4th, 2003   Printer-friendly   Email story
So I've edited the default templates quite a bit in my site, and it displays fine. But, now I want to create my new set of templates as a theme (which seems like the logical thing to do for future installations).

Problem: I can't seem to locate any template files anywhere that contain the edited templates. in /usr/local/slash the only set of templates I can locate are those from the slashcode theme, which are the default ones. And, when I search thru the appropriate site subfolder, there are no files in there that reflect any of the changes either.

Does this mean it's a case of copy/paste from the template editor into new files to make the appropriate files for my theme? Or will the edited template files be somewhere convenient?

PS. I hope this post makes sense...

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.
  • templates are stored in the database.

    so you need to create your theme, and then pull the current templates out of your db and write them all to disk.

    You can use something like template-dump.pl [lottadot.com] to pull your templates out for you, or you might be able to use the template-tool to do it (template-tool -h) for it's options.

    If I were you, I'd

    1) make a copy of the entire slashcode theme
    2) cd mynewtheme/templates
    3) template-dump

    --
    lottadot [lottadot.com]
    • We decided this morning that we would create a theme for a site when the site was first installed. Maybe this would help people out a bit.
      --

      --
      You can't grep a dead tree.
    • Well.. that made things very easy. Thanks for that lottadot! Now I just have to write a couple of plugins and everything should be sweet... I'll advertise YASS when we're up and running ;)