-
☆ A M B ☆
- 3,112 Posts
Alright, that could do.
But anyway, why don't you just use
getResources snippet?
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
That was one of my options, certainly. In this case, though, I'm building a jQuery.cycle-style carousel with side navigation. I could use getResources, but it would take two calls to build it, plus two templates. With a custom snippet I can do it in one. The only issue right now is that I have to pass &start=`[[*id]]` as a parameter, since the snippet calls to get the ID of the current document are consistently wrong on my setup.
-
☆ A M B ☆
- 3,141 Posts
You're not toying around with symlinks are you?
The snippet you posted a few posts back works perfect on my own 2.2.6 site. The only thing I can imagine is either a very weirdly botched site/database, or the parent resource you are loading (3) is a symlink to another resource (1)...
No, sorry - it's a regular old document resource, not a symlink. I upgraded from 2.2.5 to 2.2.6 in hopes of resolving this. I haven't tried a fresh install to see what happens there - the project in question is due today, so I'm trying to stay focused. Later, I will try to test it on a fresh site.
I agree with Mark. I'd try repairing all tables in PhpMyAdmin and deleting all files in the core/cache directory. If that doesn't work, take a close look at the modx_site_content table to see if the resources look like they should, though I can't imagine any circumstance where they would show up correctly in the tree and not return the proper children.
I'm glad you got it sorted. Thanks for reporting back.