This topic like commit through forum
One day i’d need draw links for documents who stored in same level as current document, i.e. something like "neighbours".
And hadn’t find better way that add this in snippet Wayfinder (snippet itself, database stored one)
BEFORE (about 40 line):
Insert this:
// improved by Azrael (azrael.com at gmail.com)
if (!strcasecmp($startId, 'parent')) {
$startId = array_shift(mysql_fetch_row($modx->db->select('parent', $modx->db->config['table_prefix'] . 'site_content', 'id = ' . $modx->documentIdentifier)));
}
// -END-
Now if you call snippet like:
[[Wayfinder? &startId=`parent`]]
you’ll get menu with documents, who have same parent, as current document, including itself. Case insensitive.
I:
- don’t read all forum and if this already been, i dont care. ignore it
- dont care about comments, just for search and diff
- would glad if Kyle Jaebker or Ryan Thrash feedback this post, email better
- would glad if anyone commit to svn if project still live
- sorry for english, bad school, you know..
Full code in attach