From: Erik G. <er...@bo...> - 2004-03-22 12:15:35
|
m=E5n 2004-03-22 klockan 12.32 skrev Boris Zentner: > Hi Erik, >=20 > I think on your suggestions, but so far I do not get it all. >=20 > Am Sonntag, 21. M=E4rz 2004 18:56 schrieb Erik G=FCnther: > > The reason to not to generate a hole link are as shown in the example > > that pagekit might not be the have control over the hole site (In my > > site I have two apache servers, one with and one without mod_perl). > > >=20 > Does uri_prefix in Config.xml slove or ease your problem? I just test it = and=20 > there is a bug that is fixed with the attached patch. Yes... or somewhat.That whould get the correct links. But the links will still get all over the place. Due to the fact that som links gets pressentet first (before <html>) and other where the call for a commponent are. And the layout I have om my page the links will get placed under some (non transparent) layers and over other edit-links. Therefore I would like to collect all the edit links and place them whitin the layout. And the PKIT_EDIT_PLACEHOLER whould do the trick for me. I'm open for other sullotions that do about the same thing (like the MESSAGE and ERROR but I do like the MESSAGE aproche better.) If you have a simpel layout it dosen't matter that mutch but in a more advanced it does. And I plan to use the edit-links quite active so it whould help my do a niceer page.=20 If you like to see I can send you a file containing a page with edit-links, showing my problem. But that will be to night, my time :) =20 And I have no problem with applaying this diff. (I acctually use pkit_output_filter now and check if I'm within pkit_admin mode :) ) PS And with the PKIT_EDIT_PALCEHOLDER-tagg I can have pages that are valid XHTML1.1 even when pkit_admin=3Don ;) DS =20 >=20 > ie: >=20 > ### This looks like your old setup #### >=20 > <Perl> > use Apache::PageKit(); > Apache::PageKit->startup('/apache/htdocs/whatever','staging'); > </Perl> >=20 > <Location /> > SetHandler perl-script > PerlSetVar PKIT_ROOT /apache/htdocs/whatever > PerlSetVar PKIT_SERVER staging > PerlHandler +Apache::PageKit > </Location> >=20 > ################################################### > ### _NEW_ SETUP httpd.conf ### >=20 > <Perl> > use Apache::PageKit(); > Apache::PageKit->startup('/apache/htdocs/whatever','staging'); > </Perl> >=20 > <Location /pagekit> > SetHandler perl-script > PerlSetVar PKIT_ROOT /apache/htdocs/whatever > PerlSetVar PKIT_SERVER staging > PerlHandler +Apache::PageKit > </Location> >=20 > #### _NEW_ Config.xml > # add uri_prefix =3D 'pagekit' to the global part of your Config.xml >=20 > uri_prefix =3D 'pagekit' >=20 >=20 > Then your site should work as before. Just the edit links do not work, bu= t=20 > this is fixed with the applied fix. If you prefer a full .tar.gz just let= me=20 > know what perl and apache you use and I build one for you. >=20 > > Second; pkit_edit asume that it are the sole server and not as in my > > place on a different server and are called with /pagekit/ as a prefix. > > The sugested sulotion above fix that. --=20 /erikg=20 =20 Erik G=FCnther eri...@bo... System Developer Bokus AB +46 (0)40 - 35 21 19 icq: 160744619 = =20 =20 Fortune: Never keep up with the Joneses. Drag them down to your level. -- Quentin Crisp |