-
- 209 Posts
I guess that you are using "Text" input type for your image TV and, subsequently, you are manually filling in value for your image, for example, as: "someimage.jpg", but please consider that the snippet needs to know both correct path of the image and image’s name itself -- otherwise, the image does not exist from the point of snippet’s view. All snippets in MODx are parsed by main index.php file located in root folder and from this perspective images are seen by all snippets. So, correct value for image TV -- when manually inserted -- should be "assets/images/someimage.jpg" (provided that you are keeping them in standard folder). Or, alternatively, simply use "Image" input type for your TV thus allowing MODx to take care of providing TV’s value with correct path for your image.
-
- 11 Posts
Hi Alik,
Thanks for you post, but I’m using the image widget not a text path. the image widget automates the thumbnail creation so I don’t think it is this, unless of course I’m missing something?
-
- 788 Posts
If you have the widget type set to image, that may be your problem. With just the TV set as Image and no widget, the TV value will only be the path (and the thumbnails are created upon upload), which is what this snippet looks for. Adding the Image type widget param adds <img src=""> around the TV value automatically and probably causes the snippet to fail.
-
- 209 Posts
2Breezer
That’s correct. Extra code returned by the widget causes that the snippet is unable to find image (let alone its thumbnail).
-
- 25 Posts
The thumbs that are created are 96x96 pixels. Is it possible to get them bigger somehow?
-
- 2,877 Posts
-
- 22 Posts
Quote from: Breezer at Nov 05, 2009, 07:25 PM
If you have the widget type set to image, that may be your problem. With just the TV set as Image and no widget, the TV value will only be the path (and the thumbnails are created upon upload), which is what this snippet looks for. Adding the Image type widget param adds <img src=""> around the TV value automatically and probably causes the snippet to fail.
Thank you Breezer. I was trying out this snippet you’re right, it’s not working with Image set as widget.
I’d like to ask: Can I still use this snippet even with the Image Widget turned on? Thanks in advance guys.
An aspiring web designer & front-end web developer who is very much interested on the modern web.
www.andrewabogado.com
-
- 79 Posts
Quote from: eddygrove at Oct 20, 2009, 11:08 AM
Hi all,
Has anyone got a quick’n’dirty solution for accessing the thumbnails generated by fckeditor/the file manager?
I didn’t even know that the file manager could generate thumbnails! How do you get it to do this?
Every image that I have uploaded (to the assets/images folder) using the file manager, only shows with a built-in MODx "camera" icon/thumbnail when using the editor "Insert image" requester.
(I’m using MODx 1.0.2)
Please don't PM me unless it's absolutely essential: if a technical question is worth asking, it's worth asking in public, so that others can share their experience, and so that all can learn from the answers.
-
- 209 Posts
Mentioned thumbnails are generated by MODx when you access file folder via TV of input type "image".