Modify

Opened 5 years ago

Closed 4 years ago

#10246 closed enhancement (worksforme)

PageTemplate

Reported by: anonymous Owned by: Steffen Hoffmann
Priority: normal Component: WikiCalendarMacro
Severity: normal Keywords: template
Cc: Sam Halliday Trac Release: 0.11

Description

Great plugin! I had it penned as "might be nice" and its fast becoming "essential" to my workflow :-)

I'm using it with 0.11.7 but I would really love it if I could create wiki pages that are based on a PageTemplate ... can you add support for that please?

Attachments (0)

Change History (7)

comment:1 Changed 5 years ago by Sam Halliday

Cc: Sam Halliday added; anonymous removed

sorry, that was me who submitted the RFE

comment:2 Changed 5 years ago by Steffen Hoffmann

Keywords: template added
Status: newassigned
Type: defectenhancement

First, thanks for your interest in this macro and your encouraging feedback.

You may have missed latest development in the trunk branch. As advertised at the wiki page, I've re-united the former fork, WikiTicketCalendarMacro, and with that you can get the template preselection. This was implemented in [11749], but better use a fixed version from [11800] onwards.

I'll close this ticket with the next stable release.

comment:3 Changed 5 years ago by Sam Halliday

Good stuff! I can't build trunk at the moment due to the following build error

Some googling shows that it might be to do with some changes in the subversion 1.7 file format - but I don't see why that should even be a consideration...

$ python setup.py bdist_egg

running bdist_egg
Traceback (most recent call last):
  File "setup.py", line 95, in <module>
    **extra
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 971, in run_command
    cmd_obj.ensure_finalized()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized
    self.finalize_options()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools-0.6c12dev_r88846-py2.7.egg/setuptools/command/bdist_egg.py", line 94, in finalize_options
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 312, in get_finalized_command
    cmd_obj.ensure_finalized()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized
    self.finalize_options()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools-0.6c12dev_r88846-py2.7.egg/setuptools/command/egg_info.py", line 85, in finalize_options
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools-0.6c12dev_r88846-py2.7.egg/setuptools/command/egg_info.py", line 185, in tags
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools-0.6c12dev_r88846-py2.7.egg/setuptools/command/egg_info.py", line 233, in get_svn_revision
IndexError: list index out of range

comment:4 Changed 5 years ago by Sam Halliday

I've updated easy_install and now it's worked OK.

Can you please send me an example of how I can use this new functionality?

comment:5 Changed 5 years ago by Steffen Hoffmann

As I told you, this has been added to WikiTicketCalendarMacro before, where you already can find relevant documentation, i.e. here: WikiTicketCalendarMacro#Arguments.

In short it should be as easy as writing

[[WikiCalendar(base=MyTemplate)]]

for using PageTemplates/MyTemplate with any wiki new page created via a calendar link. Btw, the existence of that template is checked on each Wiki(Ticket)Calendar macro call, even if I found, that Trac would ignore an actually missing template as argument gracefully - tested for Trac 0.11 and later.

comment:6 Changed 5 years ago by Sam Halliday

excellent! That works.

comment:7 Changed 4 years ago by Steffen Hoffmann

Resolution: worksforme
Status: assignedclosed

Great, seems like this has already been resolved a while ago.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Steffen Hoffmann.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.