[ewiki] Re: mpi: mpi_insert.php bug?
- From: Mario Salzer <mario@xxxxxxxxxxxxx>
- To: ewiki@xxxxxxxxxxxxx
- Date: Thu, 26 Feb 2004 14:47:45 +0100
> I included the mpi-plugin. mpi_embed works e.g. with PowerSearch. But when I
> want to use mpi_insert by
> I get is the non-existing page "_ 0id", which is what your get when you[...]
> Is my setup messed up that the CVS-version doesn't work or is it a bug?
That's just a bug I recently introduced by changing the mpi argument
parsing. The $args paramater now always contains:
$args = array(
"_" => " full params string... ",
0 => "FirstParamOrPageName",
"namedparameters" => "as usual",
);
That's why the implode("",) now yielded "_0id" for some plugins. Those
plugins just need an updated to now use either $args["_"] or $args[0]
or the $args["id"] explicetely reserved for that purpose.
This cahnge was also to allow:
<?plugin insert id="PageName" ?>
besides
<?plugin insert PageName ?>
I'm going to update all the mpi plugins in CVS until tomorrow.
> What I'd like as additional feature in mpi_insert is the ability to switch of
> the pages footer (i.e. define("EWIKI_CONTROL_LINE", 0); - but just for the
> inserted page and not the main page).
Is it there? For dynamic pages, you should always use mpi "embed" then.
But this feature could eventually be added by copying any other parameters
into $ewiki_config then. For example:
<?plugin insert PageName control_line=0 split_title=1 ?>
would temporarily change some settings.
- References:
- [ewiki] mpi: mpi_insert.php bug?
- From: massenmensch
Other related posts:
- » [ewiki] mpi: mpi_insert.php bug?
- » [ewiki] Re: mpi: mpi_insert.php bug?
- [ewiki] mpi: mpi_insert.php bug?
- From: massenmensch