Hot answers tagged

6

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 class="avatar wo-alt" alt="{title}" src="{url}" /> {/if} {/right_image_1} </li>


4

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 see --disable-fileinfo on that page (I recommend using your browser’s search function) then you will need to contact your host and have them provide a version ...


4

I think it's a bug, look at this bug report: https://support.ellislab.com/bugs/detail/19732 Francois


3

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 the query cache isn't cleared out when it should be.


3

If you have command line access on the server, you can setup a Symbolic Link: http://www.wallpaperama.com/forums/linking-files-with-symbolic-links-linux-unix-shell-command-tutorial-guides-t479.html Apparently you can also set up a Symbolic Link without command line access using PHP: http://perishablepress.com/use-php-to-create-symbolic-links-without-shell-...


3

A quick Google search seems to indicate that it's the thumbnail icons that Coda continually regenerates, which will render the HTML (including your Google Analytics code). See this thread The solution they offered is to collapse the preview thumbnails into text. I don't have a copy of Coda, so I don't know exactly how to do that, but it sounds pretty ...


3

Your syntax is not following the user guide's instructions. http://ellislab.com/expressionengine/user-guide/modules/channel/grid.html#template-tags You need to add the prefix for each column. {images} <img src="{images:file_url}" alt="{images:caption}" title="{images:caption}" /> {/images}


2

You could use Channel Files or Assets and have all of those documents attached to 1 single entry. Avoid using raw PHP in templates. If you must use PHP, extract it to a plugin.


2

I normally use a shared database between development and staging servers and a separate database for the live one. This prevents issues like this from happening and makes sure that your changes only go live when you intend them to. Of course, this also introduces the age-old database sync issue, forcing you to manually replicate database changes across ...


2

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|" *= "|" . extension . "|" } <figure> <img src="{url}" alt="{section_1_files:label}" /> </figure> {if:else} <div ...


2

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


2

Yes, it is that easy, I've done this many times. In some earlier versions of Assets I had some issues doing this on a couple of sites, but later versions smoothed out the bumps. As always, do this on a dev copy of the site first - or at the veery least, take a full DB backup first.


2

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 portion of code that says $thumb_created = $this->filemanager->create_thumb (line 1320 and following ones in EE 2.9.2) Change FALSE // Overwrite ...


1

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 folders, then using Asset tags retrieve the sub-folder list based on the entry's asset folder id. https://github.com/amityweb/assets_folder


1

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> {gallery:image} <img src="{url}" height="{height}" width="{width}"> <figcaption>mime type of file {file_id}: {mime_type}</...


1

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: https://devot-ee.com/add-ons/zeal-smart-members Still, Let me know if you have any other solutions.


1

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 our issue.


1

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), but it might involve some deep core modification. Also, anytime you install a new addon that has any file functionality, you'll need to scan it in case it ...


1

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' => 'application/postscript', 'aif' => 'audio/x-aiff', 'aifc' => 'audio/x-aiff', 'aiff' => 'audio/x-...


1

Do it exactly like you think. {my_grid_field} {if my_grid_field:column}{my_grid_field:column}{/if} {/my_grid_field}


1

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


1

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 line 345 form_helper) that you/it is trying to pass an array in a $key or $val to output a form_select option="" html tag.


1

I was doing just this last week on a few thousand entries. Assets works really well at converting. First make sure Assets is synchronised with your upload paths. Assets creates a reference to all the files in exp_assets_files. EE File fieldtype stores it's data in the format {filedir_x}your-file.ext, where x is the reference to upload paths config. When ...


1

The better approach would be to exclude your development IP address/machines from Google Analytics. This has the added advantage that your testing/use of the site won't account towards your analytical tracking data.


1

this is a known bug and will be fixed in a release shortly. This happened due to changes to Safecracker in EE 2.7 and the subsequent removal of Safecracker File.


1

It would be better to use any mathematics plugin which to calculate megabytes from bytes. You can use Simple Math plugin and use tag like {exp:simple_math calculate="{file_size} / 1024"}


1

Sounds like a permissions issue with your upload folders. Make sure in file manager > file upload preferences that your new member group has access.


1

You could also achieve this using the Files module and File Entries tags. The Files module works much like Entries but you don't have to create them. Simply create an upload directory and put the files in there. Then sync the directory. To add a file to the directory you can use the File upload feature of the CP.


1

It can be possible with the PHP code within the template. Just create a template with "Allow PHP?" as "Yes" and use following code example: $library_dir = "/library/directory/path/"; $pdfs = glob($library_dir . "*.pdf"); foreach($pdfs as $pdf) { echo "<a href='[YOUR SITE URL]".$pdf."'>".$pdf."</a><br />"; } I hope, it would help you....


1

This is more a question about servers, than about EECMS. If you're using Apache, add this to the .htaccess file of your dev website: Options FollowSymlinks You can read more about this at the documentation of Apache.


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