General Actions:
Log-in
Register
Wiki:
XWiki.org
▼
:
Document Index
»
Space:
FAQ
▼
:
Document Index
»
Page:
HowtoDetermineMode
Search
Home
About XWiki
News & Blog
Roadmap
Releases Notes
References
Projects
XWiki Enterprise
XWiki Enterprise Manager
XWiki Office
XWiki Eclipse
All projects
Extensions
Documentation
Download & Play
XWiki Enterprise
XWiki Enterprise Manager
XWiki Office
XWiki Eclipse
Playground
MyXWiki farm
Contribute
Get Involved
Development
Translations
Support
FAQs
Community Support
Professional Support
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Wiki Home
»
FAQ
»
HowtoDetermineMode
HowtoDetermineMode
Last modified by
Vincent Massol
on 2006/12/10
Comments
(0)
·
Annotations
(0)
·
Attachments
(0)
·
History
·
Information
Question
How do you tell (from script) which mode a document is in? (view, edit, inline, etc....)
Answer
Use the $context.getAction() function. It will return a string such as "inline"
Tags:
Created by starwed on 2006/01/15
Comments
(0)
Annotations
(0)
Attachments
(0)
History
Information
Quick Links
News & Blog
Screenshots
XWiki References
Support
FAQ
Releases Notes
Roadmap/Issues
External Links
Supporters
License
Media Resources
XWiki Logo
Download XWiki
Download
XWiki
Let us know
What you think of our website?