Hi all,
I am exhausted from trying to sort this out on my own without any success so I would appreciate any help.
I have created a TV I will use on each document to specify a name (this will be a folder name).
I created a chunk to get the value of this TV so I can access it later on from a different TV which is the one executing the Snippet I created for this.
I am trying this code:
@EVAL return $modx->runSnippet("ImageSlideTags", array ("sld_fld" => @CHUNK sld_foldr_path ));
If I try
It works perfectly, it displays me the folder name I want. If I try:
@EVAL return $modx->runSnippet("ImageSlideTags", array ("sld_fld" => "somevalue" ));
The snippet executes correctly and works as expected. I just have not been able to get them to work together so I can achieve what I want.
Basically I created a small snippet that searches for a list of images within a folder. These images are used to dynamically generate a slideshow for each section of the website.
What I want is to only require from my customer to enter a folder name and everything done automatically. Already achieved it by hardcoding the values, I just need to get the @EVAL to read the Chunk value so it can work. Or if there is a way to get the TV value from another TV even better.
I appreciate any assistance.
Regards,
Jose R. Lopez