Hi Lukas,
I am struggling to see how components can register sub-components as children. One of my components has a header/footer fields which are rendered using wiki format. Unfortunately embedding components in this format does not work and I am trying to find a way to fix it. any thoughts? Keith _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
No worries I have plan B.
Keith > Hi Lukas, > > I am struggling to see how components can register sub-components as > children. > > One of my components has a header/footer fields which are rendered using > wiki format. > Unfortunately embedding components in this format does not work and I am > trying to find a way to fix it. > > any thoughts? > > Keith > > _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
In reply to this post by keith1y
I have managed to render wiki formatted text as a PRDocument in my
component. When rendering I have to set the owner of the document to 'context structure'. However as soon as I embed the component in another page, links that are relative to the original component do not resolve. I seem unable to find any way of obtaining the parent PRComponent (i.e. the owner) of a PRWidget, am I missing something? Keith > Hi Lukas, > > I am struggling to see how components can register sub-components as > children. > > One of my components has a header/footer fields which are rendered using > wiki format. > Unfortunately embedding components in this format does not work and I am > trying to find a way to fix it. > > any thoughts? > > Keith > _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
> I have managed to render wiki formatted text as a PRDocument in my
> component. When rendering I have to set the owner of the document to > 'context structure'. However as soon as I embed the component in > another > page, links that are relative to the original component do not > resolve. > > I seem unable to find any way of obtaining the parent PRComponent > (i.e. > the owner) of a PRWidget, am I missing something? #owner: should only be called after a document is parsed. It is used to resolve the links relative to the structure given as argument. Lukas > > Keith > >> Hi Lukas, >> >> I am struggling to see how components can register sub-components as >> children. >> >> One of my components has a header/footer fields which are rendered >> using >> wiki format. >> Unfortunately embedding components in this format does not work >> and I am >> trying to find a way to fix it. >> >> any thoughts? >> >> Keith >> > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
I have parsed some text in my widget, and from that I have a PRDocument,
I want to call owner: upon it as you say, but since this is a widget it does not have access to the component in which it is being rendered. The two options I have come up with are to do 'context renderer lastVisited' and/or to have PRComponent-component call PRWidget structure: self. regards Keith >> I have managed to render wiki formatted text as a PRDocument in my >> component. When rendering I have to set the owner of the document to >> 'context structure'. However as soon as I embed the component in >> another >> page, links that are relative to the original component do not >> resolve. >> >> I seem unable to find any way of obtaining the parent PRComponent >> (i.e. >> the owner) of a PRWidget, am I missing something? >> > > #owner: should only be called after a document is parsed. It is used > to resolve the links relative to the structure given as argument. > > Lukas > > _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
In reply to this post by keith1y
Well, I am sorry, but what you request doesn't seem to be easily
possible with the current model. Maybe we need to have sort of a registration mechanism? Lukas On 25 Oct 2007, at 16:36, Keith Hodges wrote: > No worries I have plan B. > > Keith > > >> Hi Lukas, >> >> I am struggling to see how components can register sub-components as >> children. >> >> One of my components has a header/footer fields which are rendered >> using >> wiki format. >> Unfortunately embedding components in this format does not work >> and I am >> trying to find a way to fix it. >> >> any thoughts? >> >> Keith >> >> > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
Free forum by Nabble | Edit this page |