---------------------------------------- > Date: Wed, 24 Feb 2010 08:43:40 +0100 > From: spambox03@xxxxxxx > To: dokuwiki@xxxxxxxxxxxxx > Subject: [dokuwiki] Re: sneaking in a search and replace on all pages before > they're rendered > > Hi, > > j> To keep things simple, I'll have two versions of my wiki - the iPhone one > will NOT be editable > j> and I don't care at all about that functionality. The data files will be > copied from my main > j> wiki every-so-often. > > j> So I need to find and replace "|<60% 50% 50%>|" with "|<100% 50% 50%>|" on > all my pages in my > j> iPhone version every time every page is loaded. > > As I understand it, these are two independent DokuWiki installations (the > main one and > iPhone-tuned). If this is only about the table width, you could modify Table > Width plugin > in your iPhone wiki along the lines (action.php, line 66): > > if ($tableWidth != '-') { > $tableWidth = '100%'; // Force table with to 100% > $table = $this->_styleTable($data[2][0], $tableWidth); > } > > Of course, you could do something more intelligent, for example, check if the > width is > specified as a percentage, scale it up with some multiplier, and then clip it > at 100%. > > if ($tableWidth != '-') { > if (strpos($tableWidth, '%') !== false) { // I didn't test this > $tableWidth = min(intval(intval($tableWidth) * 1.5), 100) . '%'; > } > $table = $this->_styleTable($data[2][0], $tableWidth); > } > > > Mykola > > -- > DokuWiki mailing list - more info at > http://www.dokuwiki.org/mailinglist That solved it for me - easy peasy! Much thanks :D jared > if ($tableWidth != '-') { > $tableWidth = '100%'; // Force table with to 100% > $table = $this->_styleTable($data[2][0], $tableWidth); > } _________________________________________________________________ -- DokuWiki mailing list - more info at http://www.dokuwiki.org/mailinglist