On my website I want one a of links generated from a db-table, the call to the list is in the template. On another part of the page I want to use some data from the link clicked. I've used code copied from the new parsechunk tutorial to generate the list of links, fiddled with it to meet my demands, and it works perfectly. On the other part of the page I use a similar snippet to GET one record out of the table (based on link/url) and use the data to fill some fields in a form. That part also works.
My problem is, the one record pulled with the GET is the first one in my list of links; after that the complete list from the query in the list-snippet is added. As I plan to use both the list and the code in a multitude of snippets (and chunks) it's pretty annoying. My current attempt to drop the contents of the $etomite->resultset end up in errors or no notable change. My l33t code-fiddling-skills seems to lack in a certain way.
Things I tried:
- unset($etomite->resultset); in both snippets (the list and the form), both top and bottom of the code.
- renaming the $etomite->resultset to $etomite->resultset_x in one of the snippets
Anyone got any suggestions on how to clear the resultset or change the code in such a way it'll 'work' the second run on the same page?
Edited by invi, 14 October 2010 - 03:58 PM.











