Commit 009babfd authored by Amos Latteier's avatar Amos Latteier

Fine tuning the ZPT help system stuff.

  * There is now a ZPT Reference to go along with the DTML and API
    references in the online help system.

  * I changed the titles of some TAL and METAL help topics to make
    them look better in the help system.
parent aaca3476
......@@ -324,6 +324,7 @@ class ProductHelp(Acquisition.Implicit, ObjectManager, Item, Persistent):
topics=[]
apitopics=[]
dtmltopics=[]
zpttopics=[]
for topic in self.objectValues('Help Topic'):
if hasattr(topic,'isAPIHelpTopic') and topic.isAPIHelpTopic:
apitopics.append(topic)
......@@ -334,12 +335,17 @@ class ProductHelp(Acquisition.Implicit, ObjectManager, Item, Persistent):
id=topic.id
if id[:5]=='dtml-':
dtmltopics.append(topic)
if (id[:5] in ('metal', 'tales') and id[5] in ('.', '-')) or \
(id[:3]=='tal' and id[3] in ('.', '-')):
zpttopics.append(topic)
else:
topics.append(topic)
if dtmltopics:
topics = topics + [TreeCollection(' DTML Reference', dtmltopics)]
if apitopics:
topics = topics + [TreeCollection(' API Reference', apitopics)]
if zpttopics:
topics = topics + [TreeCollection(' ZPT Reference', zpttopics)]
return topics
def all_meta_types(self):
......
metal:define-macro - Define a macro
define-macro: Define a macro
Syntax
......
metal:define-slot - Define a macro customization point
define-slot: Define a macro customization point
Syntax
......
metal:fill-slot - Customize a macro
fill-slot: Customize a macro
Syntax
......
metal:use-macro - Use a macro
use-macro: Use a macro
Syntax
......
tal:attributes - Replace element attributes
attributes: Replace element attributes
Syntax
......
tal:condition - Conditionally insert or remove an element
condition: Conditionally insert or remove an element
Syntax
......
tal:content - replace the content of an element
content: Replace the content of an element
Syntax
......
tal:define - Define variables
define: Define variables
Syntax
......
tal:omit-tag - Remove an element, leaving its contents
omit-tag: Remove an element, leaving its contents
Syntax
......
tal:on-error - Handle errors
on-error: Handle errors
Syntax
......
tal:repeat - Repeat an element
repeat: Repeat an element
Syntax
......
tal:replace - Replace an element
replace: Replace an element
Syntax
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment