Re: Re: HOWTO: Handle 1:n relationshiops between Article pubtypes in 0.9.10

Manosucias <[email protected]> Sat, 23 Oct 2004 16:27:54 +0200
Newsgroups gmane.comp.cms.xaraya.knowledge-base
Organization Xaraya
Message-ID <[email protected]>
Michael Cortez wrote:

>>>This sounds like just what I am looking for.  Can someone 
>>>point me to 
>>>the original Michael Cortez explanation referenced here?
>>>
> 
> 
> Hrm, I used to be able to find references to it using google -- but now I
> can't find it.
> 
> Looks like it's time for me to write it up again.
> 
> The brief summary (for advanced user's that will understand my short-hand):
> 
> 1. Add a "ParentID" field to the child pubtype using the DD List property
> 
> 2. Populate that list using xarModAPIFunc('articles','user','dropdownlist',
> array('ptid'=>9)), where '9' is the pubtype id of the parent
> 
> 3. In the display template of child, use the articles api function for
> generating a link to the parent article
> 
> 4. In the display template of the parent, use DD's getitems() function to
> get a list of the children, and then use xarModURL() to build links to them.
> 
> 
> I'll try to find another copy of my easier to understand steps and post it,
> or post a URL to someone elses copy of it.
> 
> --
> Mike C.
> 
> 
Can you post an example about howto use xarModURL() to build links on 
this items please?

Thanks