Share » Forums » Developer » 'enhancedezbinaryfile' Extension :...

'enhancedezbinaryfile' Extension : problem with file url

'enhancedezbinaryfile' Extension : problem with file url

Friday 05 September 2008 2:06:40 am - 2 replies

Author Message

Steven E. Bailey

Monday 08 September 2008 2:28:04 am

If you modify:

standard/templates/content/datatype/result/info/enhancedezbinaryfile.tpl

like this:

{section show=$:attribute.data_text}
<a href={$:attribute.data_text|parsexml("Filename")|ezroot}>
{$:attribute.data_text|parsexml("OriginalFilename")}</a> {'succesfully uploaded.'|i18n( 'design/standard/content/datatype' )}
{*'File succesfully uploaded.'|i18n( 'design/standard/content/datatype' )*}
{/section}

You'll see the file link in the results.

However, the person uploading the file will also see it on the results page, which may not be desirable unless the extension is restricted. Otherwise, you'll probably want to wrap that with some kind of authentication such as was done with the ez4 version of the datatype - take a look at: http://projects.ez.no/enhancedezbinaryfile

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

Anthony M.

Tuesday 09 September 2008 1:43:58 am

thanks a lot, it works fine now !!

Anthony

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu