Hi there,
I have done something similar with NextGen and the CFT.
I used a select drop down that grabs the NextGen Gallery data. This code is from a previous project I worked on, I'll share it with you:
Template:
[gallery]
hideKey = true
label = Select Gallery for this page. <br /> <a href=/wp-admin/admin.php?page=nggallery-manage-gallery>Click here</a> to modify the order of your gallery.
type = select
code = 0'
Code Block 0
global $wpdb;
$values = array();
$attachments = $wpdb->get_results('SELECT gid,title,path FROM wp_ngg_gallery');
foreach ($attachments as $attachment) {
$str = '[' . $attachment->gid . ']----->'.$attachment->title .'<-----!!' .$attachment->path . '!!';
$values[] = $str;
}
That will make a drop down containing the gallery id [id] the name of the gallery and the !!path!! to the gallery folder. I put them in delimeters so as to be able to extract them in the template. I think I needed both !!path!! and [id] to get it working. You can adjust the $str to how you want it displayed to your editor.
You may just want to have the shortcode [nggallery id=x] being used in the field. That edit will be easy to make:
$str = '[ngggallery id=' . $attachment->gid . ']';
In you template you will just have to apply filters on that custom field that you've made so it outputs the gallery.
In your template:
<?php
$unprocessedfield = get_post_meta($post->ID, 'nameofyourcustomfield',true);
$processedfield = apply_filters('the_content', $unprocessedfield );
echo $processedfield;
?>
That should get you moving in the right direction.