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
Not Helpful
Not Very Helpful
[ Results | Polls ]
Comments:0 | Votes:0

Changing Boxes in a Template

posted by Krow on 12:58 PM March 7th, 2003   Printer-friendly   Email story
A similar question to my one about templates earlier, but I've created specific QuickLinks boxes and things I'd like to make part of my template. Is there any way these can be grabbed from the database as well, and used as my boxes?

Actually, now that I think about it, would it be better to just delete any (perhaps all) of the boxes, and just create my own, putting them in appropriate locations myself.

If I choose to do the latter, can I make specific boxes a part of my template? Or would I need to create a new Boxes plugin or something that can put them in my site for me?

I know I keep firing questions off to you guys about what probably seems to be simple stuff, but if nothing else it's at least providing some info about what might be handy to have available in the future for simpler customisation.

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.
More | Login
Loading... please wait.
  • Here's what you do.

    Create the boxes. Personally, I find it easiest to create these with the html interface.

    Then, via the mysql command line, either:

    1. dump them out of the database to a file, ie:

    mysqldump -u slash --tables blocks --where bid='mynewblock'

    do that for each block, and then concat all that to your theme's mysql_dump file.


    2. dump the entire contents of the blocks table with something like

    mysqldump -u slash --add-drop-table --tables blocks

    then edit that, and remove any blocks you don't want. then concat that file to your theme's mysql_dump.

    And there you go. Your new blocks are in your theme.
    lottadot []