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

outline4's avatar
outline4
271 posts
16 years ago
outline4's avatar outline4

does anybody know how to replace MH file with this solution without loosing the entries? I have several file fields with multiple uploads enabled…

here’s the existing code ({ueber-bilder} is the MH file field)

{ueber-bilder}
        <li>{file_url}</li>
{/ueber-bilder}

So I guess, I would have to create a new FF Matrix field and name it “ueber-bilder” then, I would have to put two fields in the matrix: 1) ngfile field and name it “file_url” 2) a text field and name it “file_name”

and then I would have to delete the mh file field… then - woodoo - it would display just the same?? am I right in doing so? anybody has any experience?

cheers stefan

       
Gfive(tm)'s avatar
Gfive(tm)
40 posts
16 years ago
Gfive(tm)'s avatar Gfive(tm)

I noticed an error. This error occurred when I use nGen File field. pressing on “update”

“The following errors were encountered

There was no category provided. Please go back and provide a category.”

When i uninstall it the error is gone. I reinstalled the latest version and the error is back.

I use FF Matrix with: 1 x text area 2 x nGen File field

       
Jim Pannell's avatar
Jim Pannell
187 posts
16 years ago
Jim Pannell's avatar Jim Pannell

Correction: This DOES work with the FF Matrix field type on an MSM site. The only issue I can see is that the thumbnails you see in the edit entries screen aren’t reflecting the path of the MSM site I’m looking at.

Tracked the problem down to (maybe) the function _create_thumbnail in ft.ngen_file_field.php. Can anyone help with this?

$server_path = $file_info['dirname'];
$thumb_path = $server_path . "/thumbs/";

UPDATE: Fred has now resolved this and all is groovy with MSM and Ngen File Field.

Cheers

Jim

       
Nick Foxall's avatar
Nick Foxall
189 posts
16 years ago
Nick Foxall's avatar Nick Foxall

This is working well for a small photo gallery I’m building. The photo gallery page itself is fine: a combination of nGen File Field / Field Frame / the imgsizer plugin / and jQuery Fancybox works beautifully.

However, I’m also trying to create a gallery overview or index page, which lists all the galleries on the site. For each gallery listed, I just want to show the title, a brief description, and ONE image pulled from the gallery weblog entry. Each weblog entry for the photo gallery might have 8, 12 or more images in. But on the overview page, I just want to show the FIRST image in the set.

The {count} variable used to work with Mark Huot’s File extension…..

{studioimage}{if count == 1}
            <a href="http://{title_permalink=English/artistdetails}">{file_thumb_url}</a>{/if}{/studioimage}

…. but that doesn’t work with FF Matrix. I tried this…..

{photo_set}
        {if count == 1}
    <a href="/index.php/English/photogallerydetails" title="Click for full gallery">{exp:imgsizer:size image="{photo_file}" width="135" height="85" alt="{title}"id="img_5334" class="alignright" quality="60"}</a>
        {/if}    
        {/photo_set}

…. but no luck. {photo_set} is the custom field name for my FF Matrix field. And it contains two columns: {photo_file} and {photo_caption}.

Anyone have any ideas? Nik

       
outline4's avatar
outline4
271 posts
16 years ago
outline4's avatar outline4
This is working well for a small photo gallery I’m building. The photo gallery page itself is fine: a combination of nGen File Field / Field Frame / the imgsizer plugin / and jQuery Fancybox works beautifully. However, I’m also trying to create a gallery overview or index page, which lists all the galleries on the site. For each gallery listed, I just want to show the title, a brief description, and ONE image pulled from the gallery weblog entry. Each weblog entry for the photo gallery might have 8, 12 or more images in. But on the overview page, I just want to show the FIRST image in the set. The {count} variable used to work with Mark Huot’s File extension…..
{studioimage}{if count == 1}
            <a href="http://{title_permalink=English/artistdetails}">{file_thumb_url}</a>{/if}{/studioimage}
…. but that doesn’t work with FF Matrix. I tried this…..
{photo_set}
        {if count == 1}
    <a href="/index.php/English/photogallerydetails" title="Click for full gallery">{exp:imgsizer:size image="{photo_file}" width="135" height="85" alt="{title}"id="img_5334" class="alignright" quality="60"}</a>
        {/if}    
        {/photo_set}
…. but no luck. {photo_set} is the custom field name for my FF Matrix field. And it contains two columns: {photo_file} and {photo_caption}. Anyone have any ideas? Nik

good morning!

try this:

{if {row_count} == 1}...{/if}

I tend to find this very useful:

{if {row_count} == {total_rows}} class="pad_bottom"{if:else} class="pad_border"{/if}

cheers stefan

       
Nick Foxall's avatar
Nick Foxall
189 posts
16 years ago
Nick Foxall's avatar Nick Foxall

Urgh… you’re brilliant!! I was trying row_count before, but had it set up wrongly.

Thanks a lot, stefan! 😊

       
Che's avatar
Che
7 posts
16 years ago
Che's avatar Che

I’m having a strange little problem with 0.9.7

When I click the trashcan icon, i get the popup bubble, but nothing in it except the “close” cross. So I can’t delete an image.

Any ideas? Have I upgraded from 0.9 incorrectly?

UPDATE

I had mucked up, and failed to upgrade the language file. My bad.

I do have another issue, but have left it in subsequent comment a few posts down.

       
leadsuccess's avatar
leadsuccess
408 posts
16 years ago
leadsuccess's avatar leadsuccess

It might be and I am not sure but make certain the theme folder is not in the /system directory but in main directory, you will see another themes folder there.

       
Gfive(tm)'s avatar
Gfive(tm)
40 posts
16 years ago
Gfive(tm)'s avatar Gfive(tm)

nGen File field. is still giving me. When i disable it I can save my entry. If I enable it error is back.

“The following errors were encountered

There was no category provided. Please go back and provide a category.”

Please help…..

       
Che's avatar
Che
7 posts
16 years ago
Che's avatar Che

When I have an nGen File Field in my publish form, any sumbission errors (eg: not filling in a required field) causes some kind of error that leaves a blank page.

Let’s say I have a file field…

If I submit with no title, and nothing in the nGen field, I get a normal Publish page error.

If I submit with no title, and a new file selected for upload, I get a blank page (but the file uploads!)

If I submit with no title, and an existing file selected , I get a blank page.

I have a fresh install, with minimal add-ons (jQuery for CP, Field Frame, nGne FF, Structure Module and Extension)

       
Peter Lewis's avatar
Peter Lewis
280 posts
16 years ago
Peter Lewis's avatar Peter Lewis

I’m getting a blank publish page 😖. Disabling File Field displays the page (I’m using File Field in a Matrix with a textfield and textarea).

Using v0.9.7 of file field and v1.0.8 of FieldFrame

Previously in this thread there were a couple of posts regarding a blank page when you click on publish, but I couldn’t see how this was resolved…?

Luckily I’ve got v0.9 of File Field and this works fine! Any ideas why v0.9.7 fails to work?

       
Gfive(tm)'s avatar
Gfive(tm)
40 posts
16 years ago
Gfive(tm)'s avatar Gfive(tm)

Ah Twobelowzero good one, I tried version 0.9, but still got “There was no category provided. Please go back and provide a category.”

So version 0.9 and 0.9.7 are giving me the error. Please fix, please help

Regards Martijn

       
trif3cta's avatar
trif3cta
148 posts
16 years ago
trif3cta's avatar trif3cta
@shinka + @Sean C. Smith If you still have a publish/edit blank page, what is the limit memory for PHP. Fred suggesetd turning on the PHP errors and in my casr it was clear that the default 8M memory_limit was the couse of the error. The extension requested amore than. TO check the PHP memory_limit go to CP Home › Admin › Utilities › PHP Info and search for memory_limit.

Thanks elemental! This was my issue as well using MAMP.

Just increase the memory limit in your php.ini config file.

Applications > MAMP > conf > php5 > php.ini

Line 232: memory_limit = 8M; Maximum amount of memory a script may consume (8MB)

Bump it up, restart MAMP for the settings to take hold and the Publish screen should come back.

Thanks to Brandon and nGen for putting this stuff out there, these are fabulous additions.

       
leadsuccess's avatar
leadsuccess
408 posts
16 years ago
leadsuccess's avatar leadsuccess

If you don’t already know FF is now SAEF aware! I try to use File Field from my saef and nothing gets on to the server side, In other words the field in the entry is blank and the image is not on the server after I submitted through saef, all other info is there. Any idea what could be causing this?

UPDATE: The function works if I pick an existing file, just not uploading.

       
Danny T.'s avatar
Danny T.
426 posts
16 years ago
Danny T.'s avatar Danny T.
If you don’t already know FF is now SAEF aware! I try to use File Field from my saef and nothing gets on to the server side, In other words the field in the entry is blank and the image is not on the server after I submitted through saef, all other info is there. Any idea what could be causing this? UPDATE: The function works if I pick an existing file, just not uploading.

FF Matrix is not SAEF compatible yet, hence nGen File Field as well.

       
First 10 11 12 13 14 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.