[prev in list] [next in list] [prev in thread] [next in thread] 

List:       trac
Subject:    [Trac] Re: Macro for current wiki title
From:       RjOllos <rjollos () gmail ! com>
Date:       2021-10-07 16:57:52
Message-ID: 9905f220-6d01-4905-b793-879db464d89fn () googlegroups ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Thursday, October 7, 2021 at 12:03:45 AM UTC-7 Mo wrote:

> 
> Hi,
> 
> we are working with many Sub Wikis, like
> http://trac/service/customers/foobar/contact
> 
> On every level I like to create a template which should be quite generic 
> like this one:
> 
> ==== [wiki:Service/Customers/Foobar]
> {{{#!box
> [[TitleIndex(./,hideprefix,format=compact,depth=0)]]
> }}}
> 
> The TitleIndex Macro is already generic and shows all subwikis of the next 
> level by using ./.
> Is there any way to generate a generic title showing the current path?
> That would mean I can create all the generic wikis just by creating from 
> template and saving.
> Any idea?
> 
> Best regards, Mo
> 

Creating a macro of WikiProcessor would be fairly straightforward. Wikinfo 
macro would be a good example to follow:

https://trac-hacks.org/wiki/WikinfoPlugin 

Ryan

-- 
You received this message because you are subscribed to the Google Groups "Trac \
Users" group. To unsubscribe from this group and stop receiving emails from it, send \
an email to trac-users+unsubscribe@googlegroups.com. To view this discussion on the \
web visit https://groups.google.com/d/msgid/trac-users/9905f220-6d01-4905-b793-879db464d89fn%40googlegroups.com.



[Attachment #5 (text/html)]

<br><br><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Thursday, \
October 7, 2021 at 12:03:45 AM UTC-7 Mo wrote:<br></div><blockquote \
class="gmail_quote" style="margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, \
204); padding-left: 1ex;"><br>Hi,<br><br>we are working with many Sub Wikis, \
like<br><a href="http://trac/service/customers/foobar/contact" target="_blank" \
rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&amp;q=http://tra \
c/service/customers/foobar/contact&amp;source=gmail&amp;ust=1633709133806000&amp;usg=A \
FQjCNFUNDMSBKnyeSfKMoHNHUIOuxKSJw">http://trac/service/customers/foobar/contact</a><br><br>On \
every level I like to create a template which should be quite generic like this \
one:<br><br>==== [wiki:Service/Customers/Foobar]<br>{{{#!box<br>[[TitleIndex(./,hideprefix,format=compact,depth=0)]]<br>}}}<br><br>The \
TitleIndex Macro is already generic and shows all subwikis of the next level by using \
./.<br>Is there any way to generate a generic title showing the current path?<br>That \
would mean I can create all the generic wikis just by creating from template and \
saving.<br>Any idea?<br><br>Best regards, \
Mo<br></blockquote><div><br></div><div>Creating a macro of WikiProcessor would be \
fairly straightforward. Wikinfo macro would be a good example to \
follow:</div><div><br></div><div>https://trac-hacks.org/wiki/WikinfoPlugin&nbsp;</div><div><br></div><div>Ryan</div></div>


<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &quot;Trac \
Users&quot; group.<br /> To unsubscribe from this group and stop receiving emails \
from it, send an email to <a \
href="mailto:trac-users+unsubscribe@googlegroups.com">trac-users+unsubscribe@googlegroups.com</a>.<br \
/> To view this discussion on the web visit <a \
href="https://groups.google.com/d/msgid/trac-users/9905f220-6d01-4905-b793-879db464d89 \
fn%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/ \
msgid/trac-users/9905f220-6d01-4905-b793-879db464d89fn%40googlegroups.com</a>.<br />



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic