Philippe helped me to find the problem, which was that
I did not
write the visitor method to render it. So, now I have a
PRViewRenderer>>visitMyStructure: that renders it.
That's it. By default the PRRenderVisitor is used to generate the
output. This visitor is also aware of circularities and is able to
avoid them.
Other views can currently not be embedded, but we could allow a syntax
like the following one in the future:
+RSS>/blog|view=PBRssView+
I do not know if this is the right way, but if it is
then I would say
we could by default, in visitStructure:, just forward the rendering
to the HtmlView. The problem there is that the View needs the
context, and I do not know how to get it from the Visitor.
Just ask the visitor for the current context, he knows how to get it:
self context
Cheers,
Lukas
Cheers,
Doru
On Nov 17, 2007, at 12:07 PM, Tudor Girba wrote:
Hi,
There are no problems with the rights. If I link to it with */
linktomystructure* it works, but if I embed it nothing gets
displayed.
Also, if I just view mystructure it works. I thought that when I am
embedding it, it should use the same code as when I am viewing it.
That is what puzzles me.
Cheers,
Dory
On Nov 17, 2007, at 11:57 AM, Keith Hodges wrote:
Tudor Girba wrote:
Hi,
I have a special structure and everything looks just fine, except
that when I include (+/linktomystructure+) it in another page
nothing
gets rendered.
What can be the possible causes for that?
Doru
If the destination does not exist then it should render
"/linktomystructure" in red.
If you do not have permission to view that structure then it will
not
render at all.
Try */linktomystructure*, if that renders as a disabled (greyed out)
link then it would be a permissions problem.
Keith
_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
--
www.tudorgirba.com
www.tudorgirba.com/blog
"Every successful trip needs a suitable vehicle."
_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
--
www.tudorgirba.com
www.tudorgirba.com/blog
"Value is always contextual."
_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
--
Lukas Renggli
http://www.lukas-renggli.ch