Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Last updated on...... token?Last updated on...... token?
Previous
 
Next
New Post
4/26/2011 11:47 AM
 
I have found loads of threads from 2007/8 asking the same question but nothing more recent so I shall ask again.

We have a client who wishes to display a 'Site Last Updated on: dd Month 2011'  message in the footer of their site.

Is there a DNN token(if not, why not!) that has this functionality or is there a free module that will work it out dynamically ?

It seems silly to create a pane and then ask them to do it manually.

Dave
 
New Post
4/26/2011 12:59 PM
 
You could build something into your skin that looked at the time a page was last updated, this information was added in DNN5 I believe early in the releases. I will see if I can come up with sample code for it.

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
4/26/2011 2:44 PM
 
Hey - this is doing what techies are always accused of - creating a solution without discovering the problem.

The OP actually asked for a *SITE* updated on... message.  What does that mean? 

Is the requirement that *every* page displays when the most recently updated page changed?

Moving to the technical, what does that page last changed data actually model?  Is it updated when any module on the page changes?  What if I change the skin?  That might affect both the page appearance and content...

This whole idea is a minefield, which I think is exactly what we concluded last time it was discussed.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
4/26/2011 3:04 PM
 
I don't know if that last reply was directed at me or the OP, but I came up with code to tell when the page was last updated in the skin (I believe that comes from the last time the page settings were changed, but I am not positive)

The following code is something I just ran through a C# based skin of mine.  I had hoped that the PortalSettings.ActiveTab.LastModifiedOnDate property could be used, but it doesn't look to be populated correctly, so I had to go and get a new tabinfo object based on the TabID from the ActiveTab object.

<%
     
    var tc = new DotNetNuke.Entities.Tabs.TabController();
    var ti = tc.GetTab(PortalSettings.ActiveTab.TabID, PortalSettings.PortalId, false);
 
    Response.Write(ti.LastModifiedOnDate.ToString());
 
 %>

As the reply from Richard states, this may or may not be what you are actually looking for.


This would tell you the last time a particular page was updated, after doing some quick testing that appears to be ONLY when the page settings are updated, not a module/content on the page.

So what you may actually want, is to have the audit information from a module being displayed.

Or come up with a custom module that looks at when any portion of the site changed, and display that date. That would require quite a bit of work though, work meaning looking at all pages, all modules, and figuring out what the most recent date was.

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
4/26/2011 3:15 PM
 
I created an issue in Gemini regarding the ActiveTab not being populated fully


http://support.dotnetnuke.com/issue/V...


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Last updated on...... token?Last updated on...... token?


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