This question may be related to a resolved thread.
This question may be related to this thread as well.
Has anyone been able to solve this problem (while keeping both extensions active?)
Ahhh. This was already answered here.
The Gallery Extended module/extensions is just that; a module AND an extension. I wasn’t even using the extension, so I disabled it. Back on track now.
Here, I got the solution (a module hack)
The hack is based on the assumption that if there is a field of File type in the form, there is no linked gallery. That is, if among the fields for the entry edited there is a cusom field of File type - the Gallery Extended extension is not processed.
So, in the file mod.gallery_extended.php find (approx. line 1319) <pre><code>$this->data = array();
foreach ( $_FILES as $key => $val )
{
if ( preg_match( "/image(\d+)$/s", $key, $match ) )
{
if ( $_FILES[ $match['0'] ]['name'] == '' ) continue;[/code]
and change to <pre><code>$this->data = array();
foreach ( $_FILES as $key => $val )
{
// If the form has our custom Mark Huot's File field
// do not process the Gallery Extended
if ($key=="field_id_8") {
return FALSE;
}
if ( preg_match( "/image(\d+)$/s", $key, $match ) )[/code]
In the replacing code change field_id_8 to “techical” (from the database) name of your File custom field (might also need to add _img suffix - cannot tell as I’m using a modifiled version of File extension)
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.