| Home | Podcasts | 

My blockview: personal templates in #Chisimba
66 days ago

There is a new module in Chisimba that I wrote at the airport on my way to Madrid. It is very simple, and it only exists to demonstrate the power of dynamic templates. However, it could be expanded to provide for a system of user created templates that allow users to create their own look and feel. The module is myblockview (My block view).

To use it, a user may create a templates directory on a Chisimba server using file manager. In that directory, then create a new directory, one for each template, and load into it a file called template.txt file containing a typical dynamic template of the same kind you would use in a module powered by dynamic templates.

Let's say you create a directory called templates, and then in it you create a directory called default. Then you would create a template contianing the three column divs that you would expect in Chisimba as follows.

 <div id="Canvas_Content_Body_Region1">
    Put some content here for the left column
    </div>
    <div id="Canvas_Content_Body_Region3">
        Put some content here for the right column
    </div>
    <div id="Canvas_Content_Body_Region2">
        Put some content here for the wider, middle column.
    </div>
</div>

Of course, this is not very powerful in itself, but if you combine this form of dynamic canvas with the dynamic blocks specified using JSON, then you can have your own design for a Chisimba interface very quickly.

This module is just a proof of concept to show the power of the dynamic canvas approach to templates. Took me <30 minutes to make it, sitting in the airport. Hopefully, this can stimulate some other ideas.  To use it, install the myblockview module and play around with creating your own templates as described above. At the time of writing, there is little or no error trapping or checking, so if you use it, be warned, it is developer grade code, not yet ready for unleashing on users.



Tags for this post

         
Bookmark this post Trackback URL  No trackbacks were found for this post Comments 1 Attribution Share Alike

toryburch - Mon, 06 Sep 2010 05:51:42 +0200

http://www.toryburch-outlet.com/ ; http://www.antishoes-uk.com ; http://www.discountcolumbias.com  href="http://www.toryburch-store.com/">http://www.toryburch-store.com/ _fck_bookmark="1" style="display: none"> 

Trackbacks for this post

No trackbacks were found for this post

Add a comment

* Required
To prevent abuse, please enter the code as shown below. If you are unable to view the code, click on "Redraw" for a new one.
This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)
* Required Redraw
Weblog of: Derek Keats
Login




Remember me

Forgot your password?
HELP

toggle Twitter
You cannot tweet unless you are logged in, and on your own page.
Follow me on Twitter Follow me on Twitter
Friend me on Facebook Add me on Facebook
Chisimba Facebook group Chisimba Facebook group





Afrigator