Anyone up for posting a tutorial/screencast?I’ve made a quick demo video using FF Matrix and nGen File Field in ExpressionEngine. I might give you some tips.
Yes, thanks for putting that together.
Not sure if I am just being simple but when I use this I get the following output - # a:1:{s:9:"file_name";s:14:"e-brochure.pdf";} Using this code -<a href="http://{tutorials_file}">{tutorials_file}</a>
I presume {tutorials_file} is your main “Field Name”.
Try using “Col Name” that you’ve put in with the “Matrix Configuration” so, it should be {file_name} instead e.g.
<a href="http://{file_name}">{file_name}</a>
Also If you upload more than one file you can wrap it around the main field name
{tutorials_file}
<a href="http://{file_name}">{file_name}</a>
{/tutorials_file}
Thanks Cem. Where the hell is this information in the docs?
@mmjaeger Please PM me your environment details, EE version, PHP version, Linux or Windows server, and a description of how to recreate the issue.
@Cem Meric Please PM me with your environment details and if there’s a way to reproduce the problem every time.
@stinhambo The documentation you’re looking for is actually specific to FieldFrame and the FF Matrix type. link
Hi,
I’m sorry if I’m missing something completely obvious, but I’m getting a serialized array outputted when trying to use this as a single field (that is, not in a matrix).
My field name is multimedia_screenshot. My code (simplified) is:
{exp:weblog:entries weblog="multimedia" disable="categories|member_data|pagination|trackbacks" dynamic="off"}
<a href="#">{multimedia_screenshot}</a>
{/exp:weblog:entries}
This gets outputted between the anchors: a:1:{s:9:"file_name";s:13:"Picture_6.png";}
I’m on php5. Any idea what could be going wrong here?
Thanks for the great work, Matt
Edited because some of my code was getting dropped from the post….
Hi, I’m sorry if I’m missing something completely obvious, but I’m getting a serialized array outputted when trying to use this as a single field (that is, not in a matrix). My field name is multimedia_screenshot. My code (simplified) is:This gets outputted between the anchors: a:1:{s:9:"file_name";s:13:"Picture_6.png";} I’m on php5. Any idea what could be going wrong here? Thanks for the great work, Matt Edited because some of my code was getting dropped from the post….{exp:weblog:entries weblog="multimedia" disable="categories|member_data|pagination|trackbacks" dynamic="off"} <a href="#">{multimedia_screenshot}</a> {/exp:weblog:entries}
slapshotw try this instead
{exp:weblog:entries weblog="multimedia" disable="categories|member_data|pagination|trackbacks" dynamic="off"}
{multimedia_screenshot}
<a href="#">{file_name}</a>
{/multimedia_screenshot}
{/exp:weblog:entries}
I’ve put an example code here to show how it can be implemented
slapshotw try this instead
Thanks– I try it the loop way and get this outputted:
{multimedia_screenshot}
<a href="#">{file_name}</a>
{/multimedia_screenshot}
@slapshotw Could you post or PM me a screenshot of your custom field settings for this field?
PM sent– thanks!
-Matt
slapshotw try this insteadThanks– I try it the loop way and get this outputted:{multimedia_screenshot} <a href="#">{file_name}</a> {/multimedia_screenshot}
@slapshotw Could you post or PM me a screenshot of your custom field settings for this field?PM sent– thanks! -Matt
Where is says “file_name” should be your sub custom field name. Referring to attachment I use
{exp:weblog:entries weblog="weblog" limit="1"}
<ul>
{image}
<li>
{image_location}
</li>
{/image}
</ul>
{/exp:weblog:entries}
to generate html
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.