We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

New Extension: nGen File Field for FieldFrame

Development and Programming

Sean C. Smith's avatar
Sean C. Smith
3,818 posts
16 years ago
Sean C. Smith's avatar Sean C. Smith
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.

       
Joobs's avatar
Joobs
362 posts
16 years ago
Joobs's avatar Joobs

Is it possible getting this working with a SAEF?

       
Wes Rice's avatar
Wes Rice
103 posts
16 years ago
Wes Rice's avatar Wes Rice

Game. Over.

Epic Victory. This extension combo will reinvent how I use ExpressionEngine.

       
stinhambo's avatar
stinhambo
1,268 posts
16 years ago
stinhambo's avatar stinhambo

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>
       
Joobs's avatar
Joobs
362 posts
16 years ago
Joobs's avatar Joobs

I get a similar output, can anyone post some code how to convert/format that into html?

ignore

       
stinhambo's avatar
stinhambo
1,268 posts
16 years ago
stinhambo's avatar stinhambo

Mine was because I was using a plugin to pull out the contents. I just used the standard file upload feature. Not as good but I don’t have time to spare on this.

       
Cem Meric's avatar
Cem Meric
210 posts
16 years ago
Cem Meric's avatar Cem Meric
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}
       
stinhambo's avatar
stinhambo
1,268 posts
16 years ago
stinhambo's avatar stinhambo

Thanks Cem. Where the hell is this information in the docs?

       
Cem Meric's avatar
Cem Meric
210 posts
16 years ago
Cem Meric's avatar Cem Meric
Thanks Cem. Where the hell is this information in the docs?

I know, it’s not easy to find.

       
Fred Boyle's avatar
Fred Boyle
73 posts
16 years ago
Fred Boyle's avatar Fred Boyle

@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

       
Matt Weinberg's avatar
Matt Weinberg
489 posts
16 years ago
Matt Weinberg's avatar Matt Weinberg

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….

       
Cem Meric's avatar
Cem Meric
210 posts
16 years ago
Cem Meric's avatar Cem Meric
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….

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

       
Fred Boyle's avatar
Fred Boyle
73 posts
16 years ago
Fred Boyle's avatar Fred Boyle

@slapshotw Could you post or PM me a screenshot of your custom field settings for this field?

       
Matt Weinberg's avatar
Matt Weinberg
489 posts
16 years ago
Matt Weinberg's avatar Matt Weinberg
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

       
Cem Meric's avatar
Cem Meric
210 posts
16 years ago
Cem Meric's avatar Cem Meric
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

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

       
First 2 3 4 5 6 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.