I created my own content type using flexinode in which i added ability to upload an image file and another file (meant to be a video). I am trying to create videocasting site using drupal. I have run into two problems. One the flexinode fails to display the image (thumbnail). Second i dont know how to change the layout of the nodes content. I ead through the posts here and one of them had a recipe that required printing node->flexinode_n type of fields. How do i know what is the field number. Also how do i play the video file uploaded

Any help will be greatly appreciated.

Thanks

sk

Comments

Dublin Drupaller’s picture

2 quick tips...

(a) do you have the image.module enabled? (Logged in as admin go to CREATE CONTENT -> IMAGE and try and uploading an image normally) That might explain why the thumbnails are not being displayed...oif it is enabled, go to ADMINISTER -> SETTINGS -> IMAGE to make sure the /IMAGE/ and /THUMBS/ folders are working properly.

(b) Instead of using flexinode (which is not a bad idea) to do what you want...it might be worth having a quick look at the Video module for your videocasting site....which supports various player types including Windows Media, Quicktime, Real media, Flash FLV and YouTube.com.

Flexinode.module is great....but, even when you start playing around with custom flexinode-n.tpl.php layout files to play video..you will come up against the problem of working out the format of the video..which player to use...etc. The video.module is designed to handle all that for you.

Hope that makes sense and is of use..

Dub

Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate

sakdrupal’s picture

Hi,

I do have image module installed. I uploaded a trial image but could not get a thumbnail. Also for some reason i get this message when setting the settings for the image module
"Make sure you have a working image toolkit installed and enabled, for more information see"

Any reason why?

I am looking into installing the video module. Will let you know how that goes

Sk

jodo’s picture

Work your way down admin - content - content types. There you will see your flexinode(s). Run your mouse over the (edit field) in the field list and in your browser's "active bar" it will show you the flexinode number ... field/1 field/2 etc.

Hope that makes sense.

As to getting images to work with a node-flexinode-n.tpl.php file I am striking out myself.
Using views without a node-flexinode-n.tpl.php file I can get a "full nodes" page listing that shows the image. But with every permutation I can find for use in a node-flexinode-n.tpl.php file of the
form: <img src="/ <?php print $node->flexinode_n->filepath ?> "
or: <img src="/<? print file_create_url($node->flexinode_n->filepath) ?>"
I get no image field.

What am I missing? Could someone post their "working in 4.7" with images node-flexinode-n.tpl.php file? I could sure use the help.

joe

Dublin Drupaller’s picture

Hi Joe,

Just noticed this from the flexinode.module page..

Note for 4.7: Though flexinode itself has been released, we doid not yet release any form fields (the .incs). We would love your input. If you have tested (and optionally fixed) a field on a 4.7 installation, lpease tell us your findings. Once we have a well enough tested field, it will be released. One by one!

I haven't tried the latest version yet..but perhaps the cck.module might be better to use rather than flexinode.module. AFAIK...the cck.module was a bottom-up project to supercede and improve upon the flexinode.module. As I say..I haven't tried it out fully..but there is a cck.module version for 4.7 that might be worth trying.

hope that helps

Dub

Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate

jodo’s picture

Thanks, Dub.

I will look at cck again, but my understanding is cck does not currently have an image field / component. Please correct me if wrong. I probably should install cck anyway because many are saying it is the future.

joe

sakdrupal’s picture

Yes, CCk has no image field and for that matter i think it does not even have a file upload field. do you guys know of a module that allows users more felxible ways to create content type and ways to display it

sk