From: Martin F. <ma...@ne...> - 2006-06-10 01:02:07
|
Hi Chris, Thanks for pointing this out and well done on the detailed explanation. You're correct. The components will provide "global" href's if they are=20 called with the "main" option set to true, but otherwise they will=20 provide additive href's. However as you point out this is not always desirable; we only designed=20 it to work with the site layout for connotea.org that we had=20 contemplated at the time. The simplest fix that I can think of right now is this. Open=20 Bibliotech/DBI.pm and search for this line: my $href_type; Change to: my $href_type =3D $self->options->{href_type} ?=20 'href_search_'.$self->options->{href_type} : undef; (That can all go on one line, it will wrap in this email.) Then in your template change: ${component:ListOfActiveTags} to: ${component:ListOfActiveTags(href_type=3Dglobal)} That should do it. I reserve the right to change the option name before=20 next release. Well heck I reserve the right to change anything. ;-) But=20 href_search_global() and $href_type are the sort of variable names that=20 we are currently looking to refactor. Too geeky. ;-) Cheers, Martin Chris Bucchere wrote: > I=92ve found an interesting issue with the ListOfActiveTags component. >=20 > =20 >=20 > I=92ve added a reference to ListOfActiveTags to the default template on= =20 > one of my connotea implementations. I=92m guessing it wasn=92t meant to= be=20 > used that way because when you click on a tag (say =93foo=94) it takes = you=20 > to http://www.mysite.com/tag/foo but then if you click on recent tag=20 > =93bar=94 you end up at http://www.mysite.com/tag/foo/bar instead of=20 > http://www.mysite.com/tag/bar. I need to =93absolutize=94 the URL prefi= x to=20 > Just http://www.mysite.com/tag so that when people click on a tag name,= =20 > it always prepends http://www.mysite.com/tag, not the current request U= RL. >=20 > =20 >=20 > The problem is that I don=92t know the code well enough to figure out w= hat=20 > to change. >=20 > =20 >=20 > Any suggestions? >=20 > =20 >=20 > Thanks! >=20 > Chris >=20 > =20 >=20 >=20 > -----------------------------------------------------------------------= - >=20 > _______________________________________________ > Connotea-code-devel mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/connotea-code-devel |