-
- 90 Posts
First: Thank you very much for writing this snippet. It’s just what I needed.
Second: In the usage instructions on the Repository page, in the example for specifying a docid parameter, the example omits the question mark:
[[FirstChildRedirect &docid=`12`]] <-- as written
[[FirstChildRedirect? &docid=`12`]] <-- corrected
It’s a little thing but it had me, as a beginner, tearing my hair out for a short while.
Thanks for reporting the typo. I have corrected the instructions in the repository.
-
- 5 Posts
There’s a bug in this snippet. it’s got:
if (isset ($docid)) {
$docid= $modx->documentIdentifier;
}
when surely what we want is !isset(), ie.
if (!isset ($docid)) {
$docid= $modx->documentIdentifier;
}
so that if a $docid is not passed, it assumes the current document is the folder.
-
- 1,215 Posts
I have documents in folder that sorted by TV (datestamp). Is it possible to add more options to snippet call? For example
[!FirstChildRedirect?&sortby=`parm` &sortdir=`DESC`!]
where "sortby" is document field or TV.
And redirect user to first document in list of documents, sorted by this way.
Thanks.
DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. |
DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.
Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.
[PLUGIN] DirectResize - as Maxigallery but for single images ::
Download :: [url=
http://modxcms.com/forums/index.php/topic,21490]
-
- 573 Posts
Using the snippet i get a Redirection limit for this url is exceeded error message in firefox. any fix for that?