[pmwiki-users] (:if exists PageName#from#to:)
JB
jbit at ev1.net
Fri Apr 28 04:09:51 CDT 2006
I see that we now have a way to tell if a page exists.
(:if exists PAGENAME:)
Can it also determine if a/an from/to anchor exists?
(:if exists PageName#from#:)
(:if exists PageName#from#to:)
(:if exists PageName##to:)
(:if exists PageName#from:)
Or even Lines?
(:include PageName lines=10:)
(:include PageName lines=5..10:)
(:include PageName lines=5..:)
-------------------------------------------------------
Seems like this can be a pathway to allow verification that
an included page/page section exists and to allow an
error message to be displayed.
Maybe it could say "the page exists but the lines "17-23" do not exist",
or maybe "the page exists but the anchor "from" does not exist,
http://www.pmwiki.org/wiki/PITS/00652
Add capability to display error message when an include fails.
Something like:
Include failure: "(:include PageName:)"
check to see if the page exists and that you
have the proper access/password to it.
Admins could turn this on in the local/config.php file.
# set $DisplayIncludeErrors to 'on' if you want
# an error message displayed when an include fails
# default value is "off"
#$DisplayIncludeErrors='on';
More information about the pmwiki-users
mailing list