Thanks Eol, now I am almost there!
Dizzy is the word...the [%lang%] values are for a snippet called EasyLingual, that I just learned, was merely showing off
No, seriously I should have used a stripped example.
The parameter chain is the clause for Dittos &filter parameter, and says "exclude documents whose TV ProductGroup does not contain the pagetitle" in the first page and my idea was to use it to "exclude documents whose TV ProductGroup does not contain thePassedVariable (i.e. the previous pagetitle)" in the landing page. (Which you certainly know already, but for anyone new to Ditto it might be clearer).
Quote from: Eol at May 12, 2009, 04:20 PM
Here is an idea - pass DocumentID from one page to another by URL:
<a href="[~[+id+]~]?fromid=[*id*]">[+pagetitle+]</a></h3>
Yes! Your chunk above was just what needed, I only changed the ?fromid to &fromid (well, actually &frompage in my case, since I want the pagetitle), then it worked. I can now see the output in the URL: //localhost:8888/modx/index.php?id=60&frompage=Pouches
Now I only need to get it into the Ditto call on the landing page.
Could you PLEASE, PLEASE type the whole call, I am so close to the goal now... tried with:
[!Ditto? &parents=`56` &filter=`ProductGroup,$_GET['frompage'],7` &tpl=`ColumnItem` &tplCurrentDocument=`CurrentColumnItem` !]
Didn’t display any documents at all, which the starting page did.
Then I tried with
[!Ditto? &parents=`56` &filter=`enProductGroup,[[Frompage]],7` &tpl=`ColumnItem` &tplCurrentDocument=`CurrentColumnItem`!]
and a snippet
Frompage with the following:
<?php
$_GET['frompage']
?>
Gives a parse error, propably stupid to even try nesting a snippet in a parameter, or what? D’oh! Told you I’m lost...