Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsToday Events on First PageToday Events on First Page
Previous
 
Next
New Post
4/30/2009 8:03 AM
 

In version 4.0.2 you need Mid, ItemID and selecteddate. I don't think tabid is vital, but I'm not 100% sure on that. In version 5.0.0 you won't need the date any more, because recurring events are handled differently - every occurrence of the event is unique, whilst in 4.0.2 they were represented by a single record in the Events table.

Cheers
Roger

 


DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
New Post
4/30/2009 10:00 AM
 

Roger Selwyn wrote
 

In version 4.0.2 you need Mid, ItemID and selecteddate. I don't think tabid is vital, but I'm not 100% sure on that. In version 5.0.0 you won't need the date any more, because recurring events are handled differently - every occurrence of the event is unique, whilst in 4.0.2 they were represented by a single record in the Events table.

Cheers
Roger

 

Hi,

But where I have the Mid? And other thing, in database, in event store the image like this, "FileID=number", who I get only the "number", to show the image?

Thank you, João Rosa

 
New Post
4/30/2009 1:07 PM
 

Mid is ModuleID which should be available in the Events table. You will need to look up the file location from the DNN Files table. You may find this blog post useful, it shows how I have handled FileID in  other modules for an RSS feed -

http://www.thedivingclub.co.uk/Information/DNNBlog/tabid/368/articleType/ArticleView/articleId/80/categoryId/5/Whats-New-for-the-members.aspx

Roger


DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
New Post
5/2/2009 4:29 PM
 

Roger Selwyn wrote
 

Mid is ModuleID which should be available in the Events table. You will need to look up the file location from the DNN Files table. You may find this blog post useful, it shows how I have handled FileID in  other modules for an RSS feed -

http://www.thedivingclub.co.uk/Information/DNNBlog/tabid/368/articleType/ArticleView/articleId/80/categoryId/5/Whats-New-for-the-members.aspx

Roger

Hi Roger.

Thank for your incansabel help... But I can't do the sql to retrive only the number saved in imageurl. Can you help me?

Another thing, can I change the module to show the count of the events in one day, and when click go to a list view?

Cheers, João Rosa

 
New Post
5/3/2009 12:05 PM
Accepted Answer 

Hi João,

Try this. You may need to change the URL structure to suit your site. Or if  your are putting together the hyperlink in XML, then you can split it apart.

SELECT     TOP (5) '<a href="/tabid/' + CONVERT(varchar, TabModules.TabID) + '/ctl/Details/Mid/' + CONVERT(varchar, Events.ModuleID)
                      + '/ItemID/' + CONVERT(varChar, Events.EventID) + '/Default.aspx"><img src="' + CASE LEFT(ImageUrl, 6)
                      WHEN 'FileID' THEN '/Portals/' + CONVERT(varchar, Files.PortalID) + '/' + Folder + FileName ELSE ImageUrl END + '"></a>' AS LINK
FROM         Events LEFT OUTER JOIN
                      TabModules ON Events.ModuleID = TabModules.ModuleID LEFT OUTER JOIN
                      Files ON RIGHT(Events.ImageURL, CASE LEFT(imageurl, 6) WHEN 'FileID' THEN len(ImageUrl) ELSE 7 END - 7) = CONVERT(varchar, Files.FileId)
WHERE     (Events.ImageURL IS NOT NULL) AND (Events.EventTimeBegin > GETDATE())
ORDER BY Events.EventTimeBegin

This bit creates the ImageURL -

CASE LEFT(ImageUrl, 6) WHEN 'FileID' THEN '/Portals/' + CONVERT(varchar, Files.PortalID) + '/' + Folder + FileName ELSE ImageUrl END

Cheers
Roger


DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsToday Events on First PageToday Events on First Page


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out