“top” parameter in {cms_filepicker} changes output path?
Posted: Fri Apr 19, 2024 2:36 pm
So, I have hero images in a directory called “hero” inside the uploads directory. I’m using this template tag:
Since ECB2 is just extending the default FilePicker module, I can use the “top” parameter of {cms_filepicker} to specify a top directory, and this works on the admin side but the output of that tag doesn’t seem to take that into account. If I echo
I’m just getting the file name, no path prepended. If I leave the top parameter out I can/have to change the directories while selecting a file and then it prints the proper file path with parent directories. Am I missing something? I would assume it should always print the complete file path relative to the uploads directory and the top parameter only specifies the topmost browsable directory in admin?
Code: Select all
{content_module module='ECB2' block='filepicker' field='file_picker' top='hero' assign='hero'}
Code: Select all
{$hero}