By stephtek on
What is the best way to add an area where an image can be displayed in a custom content type.
OR
Is there a way to add a WYSIWYG with image resize automatically? If so what WYSIWYG would you recommend.
What is the best way to add an area where an image can be displayed in a custom content type.
OR
Is there a way to add a WYSIWYG with image resize automatically? If so what WYSIWYG would you recommend.
Comments
imagefield
You should look at the imagefield module...
http://drupal.org/project/imagefield
-Mike Goodwin
http://www.not2us.net
http://www.redleafmedia.com
I attempted that but without
I attempted that but without any Views 2 Drupal 6 documentation or a walkthrough of how to do it I couldn't figure it out! Has anyone done this that might be able to give me a basic tutorial??? It would be super appreciated!
...
You dont need Views, views has nothing to do with this.
You'll want 3 modules however:
Imagecache
Imagefield
Filefield
Install all modules, configure some Imagecache presets, then add an Imagefield to your content type, and be sure to set the Display settings to show the right imagecache preset (you can have many different preset sizes set in Imagecache).
You can also use Lightbox2 to build a simple gallery in each node or show a large version of the image when its clicked.
Need help with IE?
Learn basic XHTML and CSS first.
Get smart with web specs.
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.
OK I have done all this. Is
OK I have done all this. Is there a way to insert these images into my post now?
...
Is the Upload Image field appearing in the node form (when you create or edit a node, do you see a field/buttom where you can upload an image)?
Try to give more information about what you have done, what happens when you try to upload an image, what theme you are using etc etc. At the moment we are "running blind" and have to guess what might be wrong.
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.
I am getting the upload
I am getting the upload image field in the mode form. And am able to upload an image... when i publish that node the image does not appear. I can email someone some screen captures of my configuration if they are willing to help?
Maybe I am overcomplicating things? I just want images to be able to be posted into my blog entries in a Custom Content Type blog format.
...
Again, what theme are you using???
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.
I am using a custom theme I
I am using a custom theme I developed. Lol, that makes things more difficult.
...
are you printing the $content variable in node.tpl.php or have you modified it?
paste your node.tpl.php file here
Is the image actually getting saved on the server?
What Display setting did you set for the image in teaser/full node views? (in the content type display settings)
I have to say this, squeezing these details out one by one is getting pretty tired.
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.
Here is my CCK node template
Here is my CCK node template file: node-pgblog.tpl.php
It looks like my images are getting posted to the sites > default > files folder. There is an image cache folder with a "thumbnail" folder and a "large" folder inside it but my images are on the root level of that directory.
I set the display setting for teaser to thumbnail and the full node to large.
So "thumbnail" and "large"
So "thumbnail" and "large" are imagecache presets you configured earlier?
Hitting a dead end here, btw where did you get the node.tpl.php file - looks like Bluemarine but the version has me stumped?
Anything in the HTML like and empty img tag (view source on the page in your browser), the other trick is to pull up the image with your browser (type in the full path to the image), to see if the imagecache derivative gets generated.
Getting to the point where I need to see a live site.
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.
!!!
Seriously i really appreciate your help! I am so stumped!
The dev site is http://www.ruins.ca/new and the blog part I am having trouble with is http://www.ruins.ca/new/blogs/pgblog.
OMG.. sorry but i just ran update.php and it started working!! My only concern about how these are posted, is there a way to put them throughout the body of the full node?
I just found this tutorial
I just found this tutorial (http://www.anelloconsulting.com/trying_out_lightbox2_imagecache_and_imag...) but it is a bit to advanced for me. Could use a few more steps for configuration etc... if anyone can help!
...
I just cant seem to get it right... i must be missing something!
WYSIWYG
Is there a way to add a WYSIWYG with image resize automatically? If so what WYSIWYG would you recommend.
You can do it with FCKeditor. It is even quite clever, you can drag & drop images from elsewhere on the same page, resize with the mouse etc.
I can't quite make up my mind if I would recommend it or not. On my localhost it gets confused about paths sometimes & it can run a bit slow.
It is one of the few WYSIWYG editors that goes with D6. Read the installation instructions carefully as you have to download it in two parts.
Great, I will try that if
Great, I will try that if this doesn't pan out. I did briefly try FCK but it didn't show up for me.
Read the readme file
If it doesn't work. You have to install the javascript separately from the rest of the module