@Nick Foxall Try using the FF Matrix {row_count} variable to set that up. So you would have:
{photo_set}
{if row_count = 1}
{exp:imgsizer:size image="{photo_file}" width="543" alt="{photo_caption}" id="img_5334" class="entry_img" quality="75"}
{if:else}
{exp:imgsizer:size image="{photo_file}" width="20" alt="{photo_caption}" id="img_5334" class="entry_img" quality="75"}
{/if}
{photo_caption}
{/photo_set}
Something like that.
@Nick Foxall
Posted my way of doing a pictgallery with FF Matrix / imgsizer / ngen file a couple of days ago. I think it might be roughly what you want.
If you (or others) have some tips to optimise the code or the number of queries, please feel free to do so.
hi again,
I get some wierd errors after installing publish tweeks again: (this is after deleting a file permanently)
Warning: unlink(/home/xxx/public_html/images/uploads/thumbs/fahrplan_thumb.jpg) [function.unlink]: No such file or directory in /home/xxx/public_html/backend/extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 391
Warning: Cannot modify header information - headers already sent by (output started at /home/xxx/public_html/backend/extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php:391) in /home/xxx/public_html/backend/extensions/ext.publish_tweeks.php on line 194
anyone experience the same?
cheers stefan
I’ve run into a problem with nGFF - it was working perfectly last time I checked, but this morning, when trying to upload a file along with an entry, I get this;
Warning: unlink(C:/Program Files/xampplite/htdocs/images/uploads/a) [function.unlink]: No such file or directory in C:\Program Files\xampplite\htdocs\application\extensions\fieldtypes\ngen_file_field\ft.ngen_file_field.php on line 249
Fatal error: Cannot unset string offsets in C:\Program Files\xampplite\htdocs\application\extensions\fieldtypes\ngen_file_field\ft.ngen_file_field.php on line 254
Anyone got any idea what would cause that? I don’t think I’ve added any other extensions since. It does this with or without a file…
Thanks,
I am getting a similar exif message on pages with existing MH upload info in the converted field.Warning: exif_imagetype(---path---/images/articles/TFNC_logo_webcolors_NR_1.jpg ) [function.exif-imagetype]: failed to open stream: No such file or directory in /---path---/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 693
Any resolutions to this? I seem to be getting something similar:
Fatal error: Call to undefined function exif_imagetype() in /home/xxxxxx/domains/domain.com/public_html/system/extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 693
Running 0.9.6. Prior to this, didn’t seem to have issues in my sandbox, but not entirely sure.
New release v0.9.7!
http://www.ngenworks.com/software/ee/ngen-file-field
CHANGELOG
• Moved text into language file • Improved thumbnail creation/detection • Removed accidental dependency on PHP v5.2+ • Trash dialog now uses file/image wording based on filetype • Allow for uppercase file extensions when creating thumbnails • Only show current site’s upload locations • Exclude files that start with “.” for the existing files list • Improve MH File compatibility • Backup, if EXIF is not enabled, for exif_imagetype function
FYI,
I was having conflicts between this extension and both the Related Categories and Primary Categories extensions by Solspace. I updated both of them to the latest versions and applied Max’s change to the js file and BOOYAH! Everything is clickin’ along great thanks Max for figuring this out! Fred, might I humbly suggest this be added in to the next release of this fantastic plugin. Thanks for all your hard work.
open file jquery.ngen_file_field.js and put (function($){ at the begin and })(jQuery); at the end of the file. So you will have something like this:(function($){ $('.ngen-file-delete-button').click( function() { if (confirm(nGenFile.lang.confirmDeleteFile) ) { $(this).parent().next().children("input:last").val( $(this).parent().next().children("input:last").prev().val() ); $(this).parent().next().children("input:last").prev().val(""); $(this).parent().next().show(); $(this).parent().remove(); } return false; }); nGenFile = {}; nGenFile.lang = {}; })(jQuery);
New release v0.9.7! http://www.ngenworks.com/software/ee/ngen-file-field CHANGELOG • Moved text into language file • Improved thumbnail creation/detection • Removed accidental dependency on PHP v5.2+ • Trash dialog now uses file/image wording based on filetype • Allow for uppercase file extensions when creating thumbnails • Only show current site’s upload locations • Exclude files that start with “.” for the existing files list • Improve MH File compatibility • Backup, if EXIF is not enabled, for exif_imagetype function
I just like to say thank you Travis for including “or use an existing file” option. Made my day.
I’ve run into a problem with nGFF - it was working perfectly last time I checked, but this morning, when trying to upload a file along with an entry, I get this;Warning: unlink(C:/Program Files/xampplite/htdocs/images/uploads/a) [function.unlink]: No such file or directory in C:\Program Files\xampplite\htdocs\application\extensions\fieldtypes\ngen_file_field\ft.ngen_file_field.php on line 249 Fatal error: Cannot unset string offsets in C:\Program Files\xampplite\htdocs\application\extensions\fieldtypes\ngen_file_field\ft.ngen_file_field.php on line 254
0.9.7 fixed this problem for me. Good work!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.