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

"Bruno Reis" <[email protected]>
Newsgroups gmane.comp.cms.xaraya.user
Message-ID <[email protected]>
Thanks a lot Ryan

I think I'm getting used to these 'xarayan' way of things.
I had found an answer over the web either. If anyone here needs, here it is:

http://lists.xaraya.com/pipermail/xaraya_knowledge-base/2004-July/000009.html

Please excuse me for asking before searching on the net. I should have
searched first. (it was the first result on google).

Bruno

*One thing that is not helping is that the search on the official site
is broken.

2007/3/14, Ryan Walker <[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.
>
> _______________________________________________
> Xaraya_user mailing list
> [email protected]
> http://xaraya.com/mailman/listinfo/xaraya_user
>
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.