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/templates/wiki_view.html?rev=7314d62ffa43031d19d3b941d03e9ebac2e56474

99<http://trac.edgewall.org/demo-1.0/browser/trac.git/trac/wiki/templates/wiki_view.html?rev=7314d62ffa43031d19d3b941d03e9ebac2e56474#L99>
  
                      <select 
name="template">100<http://trac.edgewall.org/demo-1.0/browser/trac.git/trac/wiki/templates/wiki_view.html?rev=7314d62ffa43031d19d3b941d03e9ebac2e56474#L100>
  
                        <option selected="${not default_template in 
templates or 
None}"101<http://trac.edgewall.org/demo-1.0/browser/trac.git/trac/wiki/templates/wiki_view.html?rev=7314d62ffa43031d19d3b941d03e9ebac2e56474#L101>
  
                                value="">(blank 
page)</option>102<http://trac.edgewall.org/demo-1.0/browser/trac.git/trac/wiki/templates/wiki_view.html?rev=7314d62ffa43031d19d3b941d03e9ebac2e56474#L102>
  
                        <option py:for="t in sorted(templates)" value="$t"
103<http://trac.edgewall.org/demo-1.0/browser/trac.git/trac/wiki/templates/wiki_view.html?rev=7314d62ffa43031d19d3b941d03e9ebac2e56474#L103>
  
                                selected="${t == default_template or 
None}">$t</option>104<http://trac.edgewall.org/demo-1.0/browser/trac.git/trac/wiki/templates/wiki_view.html?rev=7314d62ffa43031d19d3b941d03e9ebac2e56474#L104>
  
                      </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 received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/trac-users/-/CiSmHRrI2p8J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to