Opened 7 years ago
Last modified 7 years ago
#12633 closed enhancement
TracIni macro should have a way to specify exact section and option names to render — at Initial Version
Reported by: | Jun Omae | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 1.2.1 |
Component: | wiki system | Version: | |
Severity: | normal | Keywords: | trac.ini |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
[[TracIni(notification)]]
and [[TracIni(notification-subscriber)]]
are used in TracNotification page. However, [notification-subscriber]
section is rendered twice.
It is caused by [[TracIni(notification)]]
rendering both notification
and notification-subscriber
sections. I think it is intend to render only notification
section.
Then, the macro should have a way to specify exact section and option names to render, e.g.:
[[TracIni(section=notification)]]
: rendernotification
section[[TracIni(section=notification-*)]]
: render sections matchednotification-*
pattern[[TracIni(option=smtp_enabled)]]
: rendersmtp_enabled
options in any sections[[TracIni(option=smtp_*)]]
: render options matchedsmtp_*
pattern in any sections[[TracIni(section=notification,option=mime_encoding)]]
: render[notification] mime_encoding
Note:
See TracTickets
for help on using tickets.