Hello partners, I created a marketing catalog with easy 2 gallery and basically users can navigate and request the file the choose and get the file name into a form that emails to someone into marketing.
How ever we have the snippet working and everytime someone request a file the file gets printed on the form
here is the snippet:
<?php
if( !function_exists('eformGetFilename') ) {
function eformGetFilename(){
global $modx;
$file = strip_tags($_REQUEST['filename']);
$modx->setPlaceholder('filename', $file);
return true;
}
}
return '';
?>
What do I need is, instead just the file name be printed on the form. I want to be the link or URL location to the image. is this doable?
-
☆ A M B ☆
- 3,112 Posts
and where is this snippet placed around E2G?
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.