Fieldtype

Developer
Supported

Nolan

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From iain

     

You must be logged in to post.

Channel Form (SAEF) Support?

General

Mike Stecker
Mike Stecker

Does Nolan support Channel Forms (SAEF)? I need to build a front-end input with a format like Nolan provides. Is this possible? I will be purchasing ASAP if so.

Thanks!

Mike Stecker
# 1
Mike Stecker

Just a little bump on this thread. I know we just had Thanksgiving but I have a client requesting this on a site I am building. Thanks!

iain
# 2
Developer
iain

Hi Mike, sorry for the slow response.

To be honest I haven’t used the add-on with Channel forms. I don’t see any reason why it wouldn’t work, though. You’ll just need to include the nolan javascript files and there’s a dependancy on jQuery UI’s sortable plugin. I’m not sure if that will get autoloaded as the add-on calls that in the CP from EE’s core libraries.

All I can recommend is you give it a shot, Devot:ee offers you a 30 day refund so no worries if it doesn’t do what you need.

Cheers
Iain

Mike Stecker
# 3
Mike Stecker
iain - 01 December 2014 04:59 AM

Hi Mike, sorry for the slow response.

To be honest I haven’t used the add-on with Channel forms. I don’t see any reason why it wouldn’t work, though. You’ll just need to include the nolan javascript files and there’s a dependancy on jQuery UI’s sortable plugin. I’m not sure if that will get autoloaded as the add-on calls that in the CP from EE’s core libraries.

All I can recommend is you give it a shot, Devot:ee offers you a 30 day refund so no worries if it doesn’t do what you need.

Cheers
Iain

Thanks, I went ahead and purchased Nolan. The main problem I’m having is the following error:

[Error] TypeErrorundefined is not an object (evaluating '$.ee_filebrowser.add_trigger')
 
setup_nolan (nolan.jsline 41)
 (
anonymous function) (nolan.jsline 60)
 
(jquery.min.jsline 2)
 
fireWith (jquery.min.jsline 2)
 
ready (jquery.min.jsline 2)
 
(jquery.min.jsline 2

I’m not using the file upload field type with Nolan, so I don’t think it needs to initialize. I was going to play around with checking for the presence of ‘.nolan_thumbnail_trigger’ before running $ee_filebrowser.add_trigger.

EDIT:

Doing what I mentioned above worked, here is the $ee_filebrowser.add_trigger block wrapped in a conditional:

if( $('.nolan_thumbnail_trigger').length {
    
   
$.ee_filebrowser.add_trigger('.nolan_thumbnail_trigger'".nolan_thumbnail_trigger"{content_type"all"}, function(filefield
    
    dir_id  
file["upload_location_id"];
    
thumb  file["thumb"];
    
file_name file["file_name"];
    
    $(
this).closest("td").find(".nolan_filename_holder input").val("{filedir_" dir_id "}" file_name);
    if(
file.is_image{
     
$(this).closest("td").find(".nolan_thumb_holder").html("<img  />");
    
}else {
     
$(this).closest("td").find(".nolan_thumb_holder").html('<img src="'+EE.PATH_CP_GBL_IMG+'default.png" alt="'+EE.PATH_CP_GBL_IMG+'default.png" width="40" /><br />' file_name);
    
}
    
    
   }
);
    


Do you think this is the correct solution?

iain
# 4
Developer
iain

Yeah that’s fine. I’ll update it for the next release to include the trigger method if there is a file field being used, server side not client side.

Cheers
Iain

carstennewmedia
# 5
carstennewmedia

Hello Iain - first off thanks, this add-on is exactly what I’ve needed several times and had to hack together with workarounds.

I’m having an issue with Channel Forms as well. When testing channel forms on the same entry (one with a nolan field and one with only standard fields) I get the following error

A PHP Error was encountered

Severity: Notice
Message: Undefined property: EE::$view
Filename: libraries/File_field.php
Line Number: 704
Fatal error: Call to a member function head_link() on a non-object in {file_path}/libraries/File_field.php on line 704

This is using the {field:grid_field} tag - and the grid without Nolan fields displays properly in the front end. Any help is greatly appreciated!