Hello!
Why do I can use
<?php
$output = $modx->documentIdentifier; return $output;
?>
in snippet and can’t in TV (if resource exist)?
@EVAL $output = $modx->documentIdentifier; return $output;
Also I tried $modx->documentObject[’id’]
Evo 1.0.3
P.S. $modx->getDocumentChildren (for example) in TV works well..
I need create TV with list of sub-resources (if there are any). How to do it?
Thanks!
Try $_REQUEST[’id’] to get the current document ID for use in a TV @EVAL statement
-
☆ A M B ☆
- 24,524 Posts
This worked for me
@EVAL return $modx->documentIdentifier;
Thanks, bunk58!
sottwell, what modx version do you use for testing? I’m on Evo 1.0.3 now..
-
☆ A M B ☆
- 24,524 Posts
1.0.3; I update my localhost from SVN every week or so.