Click here to register.
      
IRC banner


     Etcetera

SQLReport

User rene
Date 4/18/2008 2:29 am
Views 726
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



Recent Discussions Color Key

Design:

Development:

Et Cetera:

Install/Upgrade:  

Smoketest:

Template Group:


Re: Shortcut of a thread by knowmad - Thu @ 07:33am

Re: Synopsis search results by knowmad - Thu @ 07:21am

Re: Templates workspace site by rogier - Thu @ 04:24am

Re: Templates workspace site by rogier - Thu @ 02:59am

Re: Shortcut of a thread by perlDreamer - Wed @ 11:46pm

Re: Ubuntu Load on Startup by SteveD - Wed @ 04:37pm

Shortcut of a thread by arjan - Wed @ 04:11pm

Re: preventing email spam mailto by lrobinson - Wed @ 03:51pm

preventing email spam mailto by sandraqu - Wed @ 03:39pm

Re: Data Form and Form Controls by martink - Tue @ 11:05am

Re: Synopsis search results by marieken - Tue @ 06:10am

Re: Übersetzungen vor dem nächsten Treffen by koen - Tue @ 04:24am

Re: Übersetzungen vor dem nächsten Treffen - Translations to be done before the next meeting will take place. by bernd - Tue @ 01:15am