Thank you all for your replies =)
@Matt: Thanks, is good to know that I'm not getting it too wrong.
@Helder: Yes, I could use the Load Module plugin. But then my client
would have to use the {loadposition} structure on every article. I'm
looking for a more transparent solution because the module isn't
related to the article's content at all. It's more like a layout
widget.
@Mark: That could do the job, but the module would be displayed on
every article on the site, and I want to use it just when some
category's articles are shown. So I would have to check the category
id too. I could set the category id as a parameter on the template
style, so I wouldn't have to hard-code it on the IF statement.
Anyways thanks for all your help.
While I was trying to solve this, I couldn't help by thinking that
would be an interesting feature to be able to set an alternative
layout for articles at category level.
What do you think?
kind regards,
dami
On Jan 27, 9:44 pm, Mark Dexter <
dextercow...@gmail.com> wrote:
> You can also make module positions conditional in the template's index.php.
> For example, something like:
>
> if(JRequest::getCmd('component' == 'com_content' &&
> JRequest::getCmd('view') == 'article')
> {
> <jdoc:include type="modules" name="position-2" />
>
> };
>
> That way, the position only exists when the component and view match. So
> you can assign the module to all menu items, but it will only show on
> article layouts. Mark
>
> On Fri, Jan 27, 2012 at 12:48 PM, Helder Garcia <
helder.gar...@webify.com.br
>
>
>
>
>
>
>
> > wrote:
> > If I understand your need, the simplest solution I see is to use in your
> > articles:
>
> > {loadposition custom_name}
>
> > The custom_name is a name you create. Then in your module configuration
> > you set the position to custom_name. You don't select anything on the drop
> > down list, you just type it on the field.
> > The plugin Content - Load Module must be enabled.
>
> > --
> > Helder Garcia
> >
helder.gar...@webify.com.br