For more examples see the Overview to the Blocks module
(Click Overview on
the Blocks admin section in your site, or read it on
xaraya.com) which also
has a section called:
"Templating Blocks and Blockgroups.
It says fairly clearly there i think how to create and
override template for
your blocks.
Jo
"Mark Frawley" <markfrawley gmail.com> wrote in message
news:mailman.274.1157030878.5576.xaraya_devel xaraya.com...
> In particular the part I had trouble with and had to
delve into the code
> to
> understand is as follows:
> 1. I created a new block instance of the comments
latestcomments block in
> the admin interface and named it
"blogcomments".
> 2. I created a xaraya block tag
> <xar:block instance="blog_comments"
template=";blog" />
> 3. I created a file called blog.xt in my
> themes/(themename)/comments/blocks/
> dir. This did not work. After much cursing and code
reading I discovered
> that the base part of the name (which I had left blank)
was defaulting to
> the instance name of the block. So I renamed my
override template to "
> latestcommentsblock-blog.xt" and hey presto it
works!
> The RFC does not indicate anywhere how to use the
template parameter of
> the
> block tag when using a block instance and it really
really needs to.
>
> Thanks,
> Mark
_______________________________________________
Xaraya_devel mailing list
Xaraya_devel xaraya.com
http:
//xaraya.com/mailman/listinfo/xaraya_devel
|