template for faulty URL references
Is it possible to define a page template for references to non- existent articles? (as in many other wikis, e.g. mediawiki > http:// en.wikipedia.org/wiki/NonExistantPage ) The behavior on xwiki.org itself is not consistent; e.g. http://www.xwiki.org/xwiki/bin/view/Main/null shows an empty page whereas http://www.xwiki.org/xwiki/bin/view/null gives a stacktrace. ~dk
The easiest way seems to be to check for $doc.isNew() and include a different template then. ~dk David V. Kocher wrote:
Is it possible to define a page template for references to non-existent articles? (as in many other wikis, e.g. mediawiki > http://en.wikipedia.org/wiki/NonExistantPage )
The behavior on xwiki.org itself is not consistent; e.g. http://www.xwiki.org/xwiki/bin/view/Main/null shows an empty page whereas http://www.xwiki.org/xwiki/bin/view/null gives a stacktrace.
~dk
------------------------------------------------------------------------
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Exactly.. checking for that in the view.vm template does the trick.. Concerning http://www.xwiki.org/xwiki/bin/view/null this would be an invalid URL and not a non existing document.. We need to check for this in the code and setup better error handling in these cases Ludovic David V. Kocher wrote:
The easiest way seems to be to check for $doc.isNew() and include a different template then.
~dk
David V. Kocher wrote:
Is it possible to define a page template for references to non-existent articles? (as in many other wikis, e.g. mediawiki > http://en.wikipedia.org/wiki/NonExistantPage )
The behavior on xwiki.org itself is not consistent; e.g. http://www.xwiki.org/xwiki/bin/view/Main/null shows an empty page whereas http://www.xwiki.org/xwiki/bin/view/null gives a stacktrace.
~dk
------------------------------------------------------------------------
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
------------------------------------------------------------------------
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
participants (2)
-
David V. Kocher -
Ludovic Dubost