[Pmwiki-users] Re: Re: [[include: ... ]] part of a page

Christian Ridderström chr
Tue May 4 08:17:54 CDT 2004


On Mon, 3 May 2004, Patrick R. Michaud wrote:

> An open question is what should happen with [[include:SomePage#from]] if
> [[#from]] doesn't exist in SomePage-- should nothing be included?

I think either nothing or an error message... preferably the admin should 
be able to control the outcome. E.g. by setting $WarnAboutEmptyInclude=1;

This reminds me a minor thing... the current behaviour of
[[include:SomePage]] when 'SomePage' doesn't exist isn't so good IMO.
Right now you get:

	Describe PageThatDoNotExist? here.

I think I at least would prefer a warning, or an error message, e.g.

	Warning: The included page 'PageThatDoNotExist?' does not exist!

Then I suppose there are times when you'd prefer to get absolutely nothing
if the page doesn't exist... maybe the admin could define the warning 
message? E.g.
	$IncludePageNotFound = 'Warning $page does not exist!';

/Christian

-- 
Christian Ridderstr?m                           http://www.md.kth.se/~chr





More information about the pmwiki-users mailing list