Re: showoutput_multiselect template

"[email protected]" <[email protected]>
Newsgroups gmane.comp.cms.xaraya.user
Organization Xaraya
Message-ID <[email protected]>
Tim Stalker wrote:
> I'd like to setup the multiselect property to show related articles 
> based on pubtype id. I have no problem setting it up, but each pubtype 
> uses the same showoutput_multiselect.xt template. Is there a way to have 
> separate templates for the multiselect for each of my pubtypes? I've 
> tried showoutput_multiselect-pubtypename.xt and it won't work. The 
> template is in the base/properties folder of my theme. I need 5 
> templates to use instead on the one.
> 
> Thanks all
> 
Why do you need 5 templates? Each multiselect to show only the articles 
of a specific pubtype?
If so just create an array of articles with the same pubtype with the 
structure being

$options = array(
     array('id' => [articleid], 'name' => [articlename]),
     ....
)

  and set that as an attribute in your tag

<xar:data-output name="..." type="multiselect" options="$options" />

Not exactly sure how you get the array of articles in the first place. 
Presumably the getall function?

HTH
Marc
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.