Click here to register.
      
IRC banner


     Etcetera > SQLReport

SQLReport

User rene
Date 4/18/2008 2:29 am
Views 615
Rating 0    Rate [
|
]
Previous · Next
User Message
rene

Hi there,
I made a collaboration system (weblog style). I can post messages with text and images.
From this weblog i've made a SQL report to show these posts.
But i can't get the select images (in sql query) to show these pictures. Somebody please help me with this topic.

the query

"select ad.title, ad.url, CONCAT(SUBSTRING(ad.synopsis,1,300),'...') AS synopsis from asset a, assetData ad where a.parentId='-9bCVvj2Ubm7QpfZclIFgA' and a.assetId=ad.assetId
and ad.status='approved'
and ad.isHidden=0
group by ad.title, ad.url
order by ad.revisionDate DESC
limit 1,3;" 

My question is what should i use to get the images and witch template var i must use to show the pictures om the webpage.

Many Thanks,

Rene

 

--- (Edited on 4/18/2008 2:29 am [GMT-0500] by rene) ---



Back to Top
Rate [
|
]
 
 
preaction

To continue with the way you're doing it, you would have to grab the storageId column from the Post table, and use a macro to grab the file from the storage location using the WebGUI::Storage API.

Or, you could make a shortcut to your Collaboration System and override the template to make things look the way you want. Easier than using an SQLReport and no development required.

--- (Edited on 4/18/2008 2:43 am [GMT-0500] by preaction) ---



Back to Top
Rate [
|
]
 
 
     Etcetera > SQLReport




Error in log. by pvanthony - Fri @ 12:46pm

Re: Goals by JT - Fri @ 12:31pm

Re: Images in RSS-Syndicated asset by elnino - Fri @ 12:25pm

Re: Password Recovery info wrong by dwittenberg - Fri @ 12:04pm

Re: Password Recovery info wrong by dwittenberg - Fri @ 12:03pm

Re: WebGUI::Crypt by JT - Fri @ 11:56am

Re: Images in RSS-Syndicated asset by ehab - Fri @ 11:52am

Re: Images in RSS-Syndicated asset by elnino - Fri @ 11:47am

Re: Password Recovery info wrong by knowmad - Fri @ 11:18am

Re: Password Recovery info wrong by dwittenberg - Fri @ 11:11am

Re: Password Recovery info wrong by bartjol - Fri @ 10:56am

Password Recovery info wrong by dwittenberg - Fri @ 10:22am

Re: Conventions for German translation by bartjol - Fri @ 07:24am

Smoketest For nightly_2008-10-10 by Visitor - Fri @ 01:55am