Re: How to show blocks on some areas and not in another ?

Ryan Walker <[email protected]>
Newsgroups gmane.comp.cms.xaraya.user
Message-ID <[email protected]>
Bruno,
You can reference individual blocks in your templates like so...

<xar:block instance="mynewsblock" />

That would insert a block whose name is mynewsblock.

As for how to position the block on your homepage, one way would be to 
set up a different page template specifically for your homepage.  You 
can do this at  Admin > Base > Modify Config
It's the field that says "alternate page template name."  You could 
write 'homepage' in there, and then create a template at 
themes/<yourtheme>/pages  called homepage.xt. 

Another way:  Sometimes I'll set the base module as my default module 
and not use the base module for any other pages.  In that case, anything 
you put in themes/<yourtheme>/pages/base.xt  is only going to show up on 
your homepage. 

-Ryan



Bruno Reis wrote:
> Hi all,
>
> How do I do to show the blocks only in some areas of the site?
>
> Let's say I have a news block on the right that I want to show on
> front page but not to show on the calendar module.
>
> Bruno
> _______________________________________________
> Xaraya_user mailing list
> [email protected]
> http://xaraya.com/mailman/listinfo/xaraya_user
>
>
>   


-- 
Ryan Walker
www.WebCommunicate.net:
Insights and resources for effective websites.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.