Attachment 'ChildPage.py'

Download

   1 # -*- coding: iso-8859-1 -*-
   2 """
   3     MoinMoin - Link to a child page
   4 """
   5 
   6 def execute(macro, text):
   7     url = '%s/%s'  % (macro.formatter.page.page_name, text)
   8     html = '''
   9 	<a href="/%s">%s</a>
  10     ''' % (url, text)
  11     return html
  12 

New Attachment

File to upload
Rename to
Overwrite existing attachment of same name
Name our soccer team

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.