From: Reini U. <ru...@x-...> - 2006-11-01 11:42:51
|
Sabri LABBENE schrieb: > I am using phpwiki-1.3.12. I want to make some pages display in other way. > I created a new template for this new look. > I inserted a link that is supposed to take to this new look of wiki pages. When pressed, this link constructs an url with a new parameter. > > What I want to know is how to call the new template once my link is pressed => new URL generated. > > Thanks for your help, > Sabri. There's no parameter supported, like &theme=new which you can add to your url. The url must be constructed differently, pointint to a different starter script which overrides the THEME from config.ini. For example: url /newtheme points to a php script with the content define("THEME", "new"); include("index.php"); include("lib/main.php"); and the wikipage pointing to your page with the new theme must point to this new url. This is no internal link then. I suggest to create an interwiki link for this. -- Reini Urban http://phpwiki.org/ http://murbreak.at/ http://helsinki.at/ http://spacemovie.mur.at/ |