Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Setting different default Wiki Pagetemplate
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dillon Bussert  
View profile  
 More options Nov 6 2012, 9:29 am
From: Dillon Bussert <dbuss...@gmail.com>
Date: Tue, 6 Nov 2012 06:29:19 -0800 (PST)
Local: Tues, Nov 6 2012 9:29 am
Subject: Setting different default Wiki Pagetemplate

Does anyone know if you can set the default new Wiki page template to
something other than than "(blank page)"?  I would like to have a custom
template selected in the dropdown for every new page.  From looking at the
source, the selected option is choosen programmatically

http://trac.edgewall.org/demo-1.0/browser/trac.git/trac/wiki/template...

99<http://trac.edgewall.org/demo-1.0/browser/trac.git/trac/wiki/template...>  
                      <select name="template">100<http://trac.edgewall.org/demo-1.0/browser/trac.git/trac/wiki/template...>  
                        <option selected="${not default_template in
templates or None}"101<http://trac.edgewall.org/demo-1.0/browser/trac.git/trac/wiki/template...>  
                                value="">(blank page)</option>102<http://trac.edgewall.org/demo-1.0/browser/trac.git/trac/wiki/template...>  
                        <option py:for="t in sorted(templates)" value="$t"
103<http://trac.edgewall.org/demo-1.0/browser/trac.git/trac/wiki/template...>  
                                selected="${t == default_template or
None}">$t</option>104<http://trac.edgewall.org/demo-1.0/browser/trac.git/trac/wiki/template...>  
                      </select>
templates is the list of wiki pages in PageTemplates, but I do not know how
to set "default_template".  I tried adding it to my trac.ini configuration,
but it didn't change anything.  Anyone know?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.