Developer forum

Forum » Templates » BasicForum: Get attachments from first post in thread

BasicForum: Get attachments from first post in thread

Martin Christensen
Reply

Hey,

I'm looking to modify the list of threads outputtet by the basic forum module. I want to include the attachments in the list that are affiliated with the original thread (ie. first post). There's a range of information available like Forum:Thread.Body.Resume, but not the attachments/image. There is a loop available for the attachments of the latest reply - but not the first post.

Any ideas on how to accomplish this?

best regards

Martin


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Martin

You should have a Forum:Thread.Files loop...?

 
Martin Christensen
Reply

Thanks for the reply!

I can't seem to find that loop. Is it inside the Threads-loop? There I only have the following loops available:

Forum:Thread.Author.Groups  
Forum:LastReply.Author.Groups  
Forum:LastReply.Images

Outside of the Threads loop I only have the following:

 

Forum:LastActiveThread.Author.Groups  
Forum:LastReply.Author.Groups  
Forum:LastThread.Author.Groups  
Forum:LastThread.Images  
Moderators  
Threads  
DwPaging.LoopAllPages  
DwPaging.LoopPageGroup

 

 
Nicolai Høeg Pedersen
Reply

The loop is only present if there are files along with Forum:Thread.HasFiles.

 
Martin Christensen
Reply

Oh, I'm trying to do this from a ListThread template. Not a ShowThread template. I have the tags that you mention in the showthread, but I want a list of threads with associated images.

 
Nicolai Høeg Pedersen
Reply

ok, I see, and can see that the rendering engine has that limitation built in.

I can remove it.

 
Martin Christensen
Reply

Okay, that sounds great. Let me know if you need anything from me.

Thanks for replying on a late Friday afternoon.

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

TFS#25594, ready with next 8.8.1 hotfix.

Votes for this answer: 1
 
Martin Christensen
Reply

Awesome, thank you so much!

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply
This post has been marked as an answer

Hi Martin

The problem TFS#25594 "Render images on thread overview" has now been fixed in version 8.8.1.15

You are able to find this build in the download section:

http://developer.dynamicweb-cms.com/downloads/dynamicweb-8.aspx

Please contact Dynamicweb Support if you need any additional help regarding this.

Kind Regards

Dynamicweb Support

Kristian Kirkholt

Votes for this answer: 1
 
Martin Christensen
Reply

Great, thanks for responding so quickly with a fix for this!

 

You must be logged in to post in the forum