Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Hot answers tagged

6 votes
Accepted

EE3 - When image description is blank, use title field

Try this: <li class="large-4 small-3 columns"> {right_image_1} {if description} <img class="avatar w-alt" alt="{description}" src="{url}" /> {if:else} <img ...
user avatar
4 votes

PHP fileinfo and MimeType.php

EllisLab addresses this issue on a blog post. Part of it: If you encounter problems with uploading files check the following: Login to your CP and go to Tools, then Utilities, then PHP Info. If you ...
user avatar
  • 6,108
3 votes

Error Number: 1052 Column 'site_id' in where clause is ambiguous

Thanks for the heads up, Robson. I'm pretty sure they're running into this bug: https://support.ellislab.com/bugs/detail/20414 It's fixed up for the next release. Those weird queries can happen if ...
user avatar
2 votes
Accepted

Conditional based on file extension

Just use the Contains and the Concatenation operators to check if the file extension appears on the list: {section_1_files} {section_1_files:file} {if "|jpg|JPG|jpeg|JPEG|png|PNG|gif|GIF|" *= "|...
user avatar
  • 6,108
2 votes

Conditional based on file extension

change {if {extension} == 'jpg|JPG|jpeg|JPEG|png|PNG|gif|GIF'} to {if section_1_files:extension== 'jpg' || section_1_files:extension=='JPG' ...
user avatar
2 votes

Need to turn off thumbnail recreation when synchronizing files - possible?

I haven't tried myself it yet, but looking at the code I'm 99% sure this will do the trick: Open system/expressionengine/controllers/cp/content_files.php Navigate to function do_sync_files() Find the ...
user avatar
  • 2,831
2 votes

Error Syncing File

Even though the files were uploading ok, I needed to reference it in system/ee/EllisLab/ExpressionEngine/Config/mimes.php file. 'text/x-vcard', // .vcf - vCard
user avatar
  • 742
1 vote
Accepted

What's the best way to search for specific terms in files?

I got some feedback from the developer of Stash (Thanks again, Mark!) on this via Twitter, and he advised not to do it this way. So I went back to the drawing board. I ended up having our programmer ...
user avatar
1 vote

Can I link an entry to an Assets folder, instead of adding files?

I could not find a solution, so I wrote a fieldtype that allows linking an entry to an Assets folder. You can now create multiple folders and sub-folders, then link an entry to different parent ...
user avatar
1 vote

php error Filename: helpers/form_helper.php

Can you provide a bit more information to what you are doing? e.g. are you creating an add-on and calling form open? Or are you using a template tag that shows a form? The issue is (if you look at ...
user avatar
  • 2,157
1 vote
Accepted

Easy creation of new file upload directory per entry instead of per channel?

If you want to upload a slideshow images per entry and you want separate directories per entry. You can simply use channel images plugin. It will create separate directories for each entry and you can ...
user avatar
1 vote
Accepted

How to get file_id of file uploaded in Grid field

Have you tried a variable pair and the {file_id} variable inside it? But, by this way, you already have access to the mime type, using the {mime_type} variable. {gallery} <figure> {...
user avatar
  • 6,108
1 vote
Accepted

ExpressionEngine 3 photo file and signature file settings?

After a lot of research, I found the default array saved in database that save those settings. I created my own setting form to update those settings. If anyone wants to do so you can use this plugin:...
user avatar
1 vote
Accepted

Word separator for file names

The easiest workaround seems to be using CE_Image. It offers a filename parameter. We chose to use the url_title of the article, in combination with a counter (or other unique string). That solved ...
user avatar
  • 437
1 vote

Word separator for file names

I'm gonna say it's way more complex. It's possible that it's simply matter of replacing all filename handlers and actions with ones to suite your needs (replace with dashes instead of underscores), ...
user avatar
  • 5,900
1 vote
Accepted

Cannot upload Adobe InDesign file

What version of EE are you using? Modern (2+) use an array to identify mime type allowances. In my version I'm looking at (2.9.2), it looks like this: $mimes = array( 'ai' => '...
user avatar
  • 5,900
1 vote

Grid conditional for a file(s) - If file exists display content (file)

Do it exactly like you think. {my_grid_field} {if my_grid_field:column}{my_grid_field:column}{/if} {/my_grid_field}
user avatar
  • 7,176
1 vote
Accepted

File names with special characters

This is a bug, and a solution from EllisLab can be found at https://support.ellislab.com/bugs/detail/20972
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible