Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://wiki.cmc.msu.ru/System/VarQUERY?rev=1
Дата изменения: Unknown Дата индексирования: Sun Apr 10 04:25:42 2016 Кодировка: koi8-r |
IF
and SEARCH
statements,
FORMFIELD
macro for most applications.
%QUERY{ "query" }%
style="stylename"
- set the output format (see below)
rev="version"
- operate on the given version of the current topic. Note that this will only affect simple queries that refer to the current topic, such as form.name
. More complex queries that use searches or indirection to refer to other topics always use the latest version of those topics.
Get the name of the form in the current topic: %QUERY{"form.name"}% Get the value of the 'Firstname' form field in the current topic: %QUERY{"fields[name='Firstname'].value"}% Get the value of the 'Firstname' form field in the current topic (shorthand version): %QUERY{"Firstname"}% Get a list of all the names of attachments on the topic 'System.DocumentGraphics': %QUERY{"'System.DocumentGraphics'/attachments.name"}% Get configuration setting {NameFilter}: %QUERY{"{NameFilter}"}%
style
parameter: style="perl"
- generates values as Perl code strings
style="json"
- generates values as JSON strings, suitable for reading by browsers.
{ScriptSuffix}
, {LoginManager}
, {AuthScripts}
, {LoginNameFilterIn}
, {AdminUserLogin}
, {AdminUserWikiName}
, {SuperAdminGroup}
, {UsersTopicName}
, {AuthRealm}
, {MinPasswordLength}
, {Register}{AllowLoginName}
, {Register}{EnableNewUserRegistration}
, {Register}{NeedVerification}
, {Register}{RegistrationAgentWikiName}
, {AllowInlineScript}
, {DenyDotDotInclude}
, {UploadFilter}
, {NameFilter}
, {AccessibleCFG}
, {AntiSpam}{EmailPadding}
, {AntiSpam}{EntityEncode}
, {AntiSpam}{HideUserDetails}
, {AntiSpam}{RobotsAreWelcome}
, {Stats}{TopViews}
, {Stats}{TopContrib}
, {Stats}{TopicName}
, {UserInterfaceInternationalisation}
, {UseLocale}
, {Site}{Locale}
, {Site}{CharSet}
, {DisplayTimeValues}
, {DefaultDateFormat}
, {Site}{LocaleRegexes}
, {UpperNational}
, {LowerNational}
, {PluralToSingular}
, {EnableHierarchicalWebs}
, {WebMasterEmail}
, {WebMasterName}
, {NotifyTopicName}
, {SystemWebName}
, {TrashWebName}
, {SitePrefsTopicName}
, {LocalSitePreferences}
, {HomeTopicName}
, {WebPrefsTopicName}
, {UsersWebName}
, {TemplatePath}
, {LinkProtocolPattern}
, {NumberOfRevisions}
, {MaxRevisionsInADiff}
, {ReplaceIfEditedAgainWithin}
, {LeaseLength}
, {LeaseLengthLessForceful}
, {Plugins}{WebSearchPath}
, {PluginsOrder}
, {Cache}{Enabled}
, {Validation}{Method}
, {Register}{DisablePasswordConfirmation}