Search the web
Sign In
New User? Sign Up
speckcms · Speck CMS
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Using Images   Message List  
Reply | Forward Message #779 of 830 |
Re: [speckcms] Re: Using Images


> When I use the Asset as the type for the cf_spProperty where I would
> like to give the individual the ability to select a photo, I get a
> Number stored in that field in the database. If I use Picker instead,
> then I get a UUID value in the field of the database. When the type is
> Picker, then the image gets uploaded to the server and within the Edit
> Screen of the admin.cfm I am able to view the picture even though it is
> 3456 x 2500 pixels in size. If I use the Asset value I do not view the
> picture in this edit screen.

If you use the Asset as the type when calling cf_spProperty, you should
see a number stored in the database. This is the revision number of the
containing content item, at which that version of asset was added (we do
this to support content versioning without having to store multiple
copies of each file). You should also see the uploaded picture displayed
in the edit window (as long as it's gif, jpg or png). There is something
wrong if you aren't seeing the image.

When you use a picker, a list of UUIDs is stored in the database field,
these are the ids of the picked content items, in this case instances of
the Image content type. When you use a picker, I'm assuming you can see
the images in the edit screen for the Image content type. The original
and thumbnail properties of the Image content type are asset properties.
The asset property is responsible for rendering the form field, and
displaying the image under the form field, and it appears to be working
as expected. Compare your call to cf_spProperty to define an asset
property to store images with those in the Image content type.

> I am currently on the 20070706 version of SpeckCMS.

I've just checked and there is no default maxWidth set for the original
property of the Image content type in that version, so the system is
working as expected when it is saving the image as is, without resizing.
To set a maxWidth with this version, you need to create a types
configuration file as explained in my previous email.

BTW, this is a very old version of Speck and there have been numerous
improvements and bug fixes since then. I highly recommend upgrading
(though, since you have such an old version, you should test that the
upgrade goes smoothly on a development machine first).

Mark



Fri Jul 10, 2009 7:31 am

markthickpaddy
Offline Offline
Send Email Send Email

Forward
Message #779 of 830 |
Expand Messages Author Sort by Date

For the first time since I have been using speck I am in need to working with images for a staff directory. I am looking at the code of the content type of...
gspearson69
Offline Send Email
Jul 8, 2009
4:10 pm

Hi Graham, ... You shouldn't need to resize within the contentPut method - the asset property will automagically resize images for you if you tell it what the...
Mark Woods
markthickpaddy
Offline Send Email
Jul 8, 2009
5:16 pm

When I use the Asset as the type for the cf_spProperty where I would like to give the individual the ability to select a photo, I get a Number stored in that...
gspearson69
Offline Send Email
Jul 9, 2009
5:47 pm

... If you use the Asset as the type when calling cf_spProperty, you should see a number stored in the database. This is the revision number of the containing...
Mark Woods
markthickpaddy
Offline Send Email
Jul 10, 2009
7:32 am

Mark, After performing an API update the Assets and Picker are entering the information into the database as you mentioned in the message. Now I think I have...
gspearson69
Offline Send Email
Jul 14, 2009
12:51 pm

Hi Graham, ... When you save changes in the add image window, the id of the new image should be appended to the list of picked ids in the opener window, then ...
Mark Woods
markthickpaddy
Offline Send Email
Jul 14, 2009
2:10 pm

Adter I sent the message, I was able to add cfdump code to resolve the issue and looking over some SVN Repository changes also helped in this. Now I think my...
gspearson69
Offline Send Email
Jul 14, 2009
2:22 pm

Well On Windows 2000 Professional with CF7 MultiServer with a computer that has IE8 installed, if I was to upload a picture I get a Red X. Now if I move to...
gspearson69
Offline Send Email
Jul 14, 2009
2:28 pm

... It sounds like it's just an IE8 issue, but it's only affecting the copy of IE8 on the win2K machine, not your other copy. Could you check the security...
Mark Woods
markthickpaddy
Offline Send Email
Jul 14, 2009
3:16 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help