| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | ||
|
Editor: simon
Time: 2009/06/23 10:07:41 GMT-7 |
||
| Note: emphasise lines type for banned_links | ||
added:
NB: do use a lines property, not a text one.
A one-page quick reference for Zwiki. See also HelpPage, configuring and the other docs at FrontPage. For questions and answers, see FrontPage#discussion.
Zwiki provides a number of very useful keyboard shortcuts. See the access keys help.
Here are the page types currently supported. See TextFormattingRules for more about these. Also see Properties below for how to limit the page types that display in the edit form.
(rst) From 2006, the default page type. Applies the docutils project's RestructuredText formatting rules. These are similar to STX, but more precise, better documented, and better suited to documentation. Clashes with Zwiki linking now and then. If enabled, DTML is also allowed and this appears as 'reStructured Text (+ DTML)'; DTML (or HTML) must be quoted in a raw literal block to take effect, eg:
.. raw:: html <b><dtml-var ZopeTime></b>
(stx) Until 2006, the default and best supported Zwiki page type. Applies Zope's StructuredText formatting rules, which also permit HTML. Works smoothly with most Zwiki linking & other features. If enabled, DTML is also allowed and this appears as 'Structured Text (+ DTML)'. May be more convenient when you want to mix in a lot of HTML and DTML.
(html) Allows standard HTML, does not apply any text formatting rules. Useful for pasting in HTML, editing with a real HTML external editor, or editing with Epoz wysiwyg editor. When pasting HTML, any <head> section is ignored for convenience. If Epoz is installed, this appears as 'HTML (WYSIWYG)' and uses the WYSIWYG editor built in to modern browsers. Otherwise DTML may be enabled, in which case this appears as 'HTML (+ DTML)'. (Epoz doesn't prevent DTML from working, but does mess it up when you save the page.) Zwiki comments also tend to get messed up on this kind of page, use another page type if you want those.
(plaintext) Does no text formatting or linking at all; preserves line breaks.
(wwml) Applies the original WikiWikiWebMarkup rules, or something very like them. For wikizens who have those rules hard-wired in their brain.
(moin) Applies MoinMoin's formatting rules, or close to them. Macros/templates are not supported.
Also, unless disabled, all of the above except Plain text do Zwiki-style wiki linking:
Here are (almost) all the ways you can make a hyperlink in a zwiki page.
The classic wiki link. Just write a WikiName, naming a page which may or may not exist yet. Zwiki's allow one-letter words and digits on the end.
WikiName AName WikiNamePlus001
A simple syntax for linking to free-form page names, now used on many wikis. Zwiki's bracket links are fuzzy - they ignore capitalization, whitespace and punctuation.
[free-form name]
Same as the above, but less likely to occur in ordinary text, and familiar to wikipedia users (but don't support all wikipedia's syntax). Not often used.
[[free-form name]]
As above, but a different link text can be specified after a | separator. Makes the wiki structure less clear but sometimes useful.
[[free-form name|show this instead] [[WikiName|show this instead]
A convenient shortcut for linking to IssueTracker issue pages by number: write # followed by the number.
#1 #0001
Bare urls
http://some/where ftp://some/where mailto:someone@there etc.
Standard HTML hyperlinks, on page types which allow HTML tags (Structured Text, HTML, reStructured Text with ..raw, etc.).
<a href="http://some/where">link text</a>
reStructured Text has a plethora of linking methods. See the RestructuredText docs. Here's the simplest
`some text <http://url>`_
Structured Text hyperlink syntax. Only allows ASCII characters.
"link text":http://some/where
Structured Text footnote links.
[1] (any number) .. [1] footnote text.. something like that
A shortcut for linking to frequently-used other wikis or sites; see RemoteWikiLinks. The local page defines a partial url for a remote wiki or other site.
LocalWikiPage:RemoteWikiPage LocalWikiPage:someotherthing
You can disable any of these by prepending a ! character, or start a line with ! to escape all links.
Here are the current Zwiki and Zwiki-related permissions. You grant or deny these to various user roles in the ZMI Security tab for your wiki folder (the folder containing your wiki pages). You can also set permissions on a parent folder to be acquired by more than one wiki, or on an individual page.
The following optional properties may be added in the ZMI to configure Zwiki's behaviour. You usually add these to the wiki folder's Properties tab, to configure the whole wiki. Or, you can set them on a parent folder (eg the root folder) to influence all wikis below that point. Many will also work as page properties, to control a single page (use this sparingly to avoid excess work). Also: Plone users can use ZWikiFolder to get a nicer UI for these properties, if you don't mind using a special folder type for your wikis. Properties are of the string type unless otherwise noted.
only these page types will be offered in the edit form. Have a look at HowToLimitAvailablePageTypes for newbie friendly detail. See page types above, but note you must enter page type ids here, not the friendly names. These are:
stx rst moin wwml html plaintext
Remark: The first of the lines, in the example above "stx" is also the default page type which is used when creating a new page.
customizes the colour coding for issues - see plugins/tracker/__init__.py for default value and instructions.
Note: after changing issue_ properties, you'll probably need to visit SOMEPAGE/setupTracker again to make sure the correct data appears in tracker listings.
In addition, every zwiki page has or can have these standard properties. Most of these can not or should not be changed directly in the ZMI, as it will (mildly) confuse Zwiki. The exception is subscriber_list, which can be convenient to edit directly.
Here are the page templates/dtml methods you can install in the ZODB in order to customize Zwiki's user interface. See customizing appearance or CustomizingTheSkin or HowZwikiSkinsWork or HowTos for more on how to do this.
Here is the list of skin templates (copied from the latest code). All but a few of these are used in both the standard and CMF/Plone skins.
| accesskeys.pt | defines the quick Access keys |
| addwikiform.dtml | the ZMI 'Add ZWiki' form |
| addwikipageform.dtml | the ZMI 'Add ZWiki Page' form |
| backlinks.pt | the backlinks form, accessed by clicking the page title or alt-b |
| badtemplate.pt | displayed when a custom template is broken |
| blank_star.png | used in ratingform |
| commentform.pt | the comment form |
| content.pt | the main content area, used by wikipage |
| contentspage.pt | the wiki contents view, alt-c |
| denied.pt | displayed in some not permitted situations |
| diffform.pt |
the edit history browser, accessed by clicking a timestamp or alt-d |
| editform.pt | the page edit form, alt-e. Also the page creation form. One of the more complicated templates. |
| head.pt | the html head used in all views |
| hierarchylinks.pt | hierarchy next/prev/up navigation links, disabled by default |
| links.pt | wiki navigation links, usually at top right |
| maintemplate.pt | the wrapper for all views when using the standard Zwiki skin. A good place to customize the global layout, eg to integrate your wiki with an existing site. When using the CMF/Plone skin, however, their main_template is used instead. |
| pageheader.pt | the wiki logo, page title, parents, search box etc., used by wikipage. Enable the COMPACT_PARENTS flag to list parents on one line. |
| pagemanagementform.pt | the quick page management form, usually at the bottom of the main page view |
| RecentChanges.dtml_ | DTML implementation of the recent changes view; also the prototype for installing as a wiki page |
| recentchanges.pt | wraps the above in the standard skin, alt-r |
| SearchPage.dtml_ | DTML implementation of the search form; also the prototype for installing as a wiki page |
| searchwiki.pt | wraps the above in the standard skin |
| siteheader.pt | an optional site header displayed at the top of all views |
| star.png | used by ratingform |
| stylesheet.css | the CSS used by all views in the standard Zwiki skin. Includes general Zwiki and also reStructured Text-specific styles. Probably the first thing you'll want to customize. This may be a File, DTMLMethod, wiki page or whatever; the first is best for caching, the last is best for easy editing. In the CMF/Plone skin, however, their styles are used instead. |
| subscribeform.pt | the mail subscription form, alt-m |
| subtopics_board.dtml | an alternate message-board-style subtopics layout |
| subtopics_outline.dtml | the default outline-style subtopics layout |
| UserOptions.dtml_ | DTML implementation of the options form; also the prototype for installing as a wiki page. |
| useroptions.pt | wraps the above in the standard skin, alt-o |
| wikipage_icon.gif | used as generic Zwiki page icon, favicon and wiki logo |
| wikipage.pt | the main wiki page view, alt-v. A good place to rearrange the layout of wiki page elements. |
Additional templates defined by Zwiki plugins:
| ratingform.pt | displays the rating form, usually at top right; used by wikipage |
| FilterIssues.dtml_ | DTML implementation of the filter issues form; also the prototype for installing as a wiki page |
| filterissues.pt | wraps the above in the standard skin |
| IssueBrowser.dtml_ | DTML implementation of the issue browser form; also the prototype for installing as a wiki page |
| issuebrowser.pt | wraps the above in the standard skin |
| issuepropertiesform.dtml | the issue properties form displayed at the top of all issue pages |
| IssueTracker.dtml_ | DTML implementation of the issue tracker form; also the prototype for installing as a wiki page |
| issuetracker.pt | wraps the above in the standard skin, alt-t |