Hello,

I have two development questions, where my knowledge is missing:

1) I want to add new links to a page:
Currently I have in the tmeplate file:

<div class="nav">
  ${prevnext_nav('Page')}
</div>

and in code:

add_link(req, 'prev', req.href.admin(cat, page, page=pagenum, num=pagesize), 
'Previous Page')
add_link(req, 'next', req.href.admin(cat, page, page=pagenum+2, num=pagesize), 
'Next Page')

I now want up to 4 additional links in front of the prev links:
add_link(req, '15', req.href.admin(cat, page, page=num15, num=15), '15')
add_link(req, '25', req.href.admin(cat, page, page=num25, num=25), '25')
add_link(req, '50', req.href.admin(cat, page, page=num25, num=50), '50')
add_link(req, '100', req.href.admin(cat, page, page=num25, num=100), '100')

What do I need to add in template to get this done?



2) I use authentication plugin with a htpasswd file. Now I have a case, where a Java applet is used which works fine when logged in previously. But I want the plugin to allow login. What do I need to do to take the basic authentication send by the plugin and convert it into a proper login for trac? This is site specific, so I can rely on authentication plugin being installed.

Ciao
--
http://www.dstoecker.eu/ (PGP key available)

--
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
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-dev?hl=en.

Reply via email to