Gaaaah. Or sumtin.
Been trying to get this Widget to work, but all I get is a MODx parser error.
« `[[GetGalleryI` is not numeric and may not be passed to makeUrl() »
I have followed everything to the letter. (I’m quite new to MODx so it took me some time to get everything into place)
BUT, I can’t get it to work.
ManagerManager works as it should, and it also creates the Edit Gallery tab so the widget and the chunk must be ok.
I put this in an empty document, with only [[MaxiGallery? &manage_gallery=`[[GetGalleryID]]`]] in it.
I also created the document as suggested.
The snippet GetGalleryID:
<?php
if (isset($_GET['mmgal_id']))
{
$id = $_GET['mmgal_id'];
session_start();
$_SESSION['mmgal_id'] = $id;
}
else
{
$id = $_SESSION['mmgal_id'];
}
return $id;
?>
I’m all out if ideas.
And I would really really like to get this working.
Just don’t know how.
Suggestions anyone?
Cheers
Amrit