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...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

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
{Scanned} SpeckCMS and Documents   Message List  
Reply | Forward Message #709 of 832 |
RE: [speckcms] {Scanned} SpeckCMS and Documents

Hi Graham,

>I am working on creating a News Article section within one of the
>applications that is powered by SpeckCMS. My question is how do I get
>the path location on the hard drive out of the UUID which is stored
>within the spId of my Document Table. I am wanting to link do users will
>be able to download the file within this UUID Directory.

Assuming you are using a picker property to create a collection of
documents which are "related" to an article, you should be able to just
call cf_spContentGet with type="Document" and id="<list of picked ids>" to
get back a query containing paths to the files. These are paths that are
expected to be accessed via a web browser, they are not the physical paths
to the files on the server, but it sounds like that's what you want.

Some background info...
Most Speck property values are simply stored in the database, but asset
property values (i.e. files) are stored on the filesystem. The asset
property type has a contentGet method, which Speck calls when it needs to
get asset property values. This method checks that the file exists on the
filesystem, and returns a path to the asset which can be used as a download
or view link on a web page. So, when you call either sp_content or
sp_contentGet to retrieve content items of a type that has one or more
assets, Speck magically returns a download/view path to the assets, even
though that path isn't actually stored in the database (in fact, we just
store the current version number in the database).


Regards

Mark


--------------------------------------------------------------------
mail2web LIVE – Free email based on Microsoft® Exchange technology -
http://link.mail2web.com/LIVE





Sat Feb 24, 2007 9:50 pm

markthickpaddy
Offline Offline
Send Email Send Email

Forward
Message #709 of 832 |
Expand Messages Author Sort by Date

... Hash: SHA1 I am working on creating a News Article section within one of the applications that is powered by SpeckCMS. My question is how do I get the path...
Graham Pearson
gspearson69
Offline Send Email
Feb 23, 2007
5:59 pm

Hi Graham, ... Assuming you are using a picker property to create a collection of documents which are "related" to an article, you should be able to just call...
mwoods@...
markthickpaddy
Offline Send Email
Feb 24, 2007
9:50 pm
Advanced

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