Thursday, December 6, 2007

Umbraco + Display Latest Page Updates

Here is a little code snippet showing how to displayed the latest n updated pages on your Umbraco site. It shows all updated pages in the same tree structure.

First of all create a new XSLT file and create a matching macro. Copy the following code into the XSLT file and save.

Okay i just spent the last 10 minutes trying to figure out how to add an XSLT to Blogger and failed miserably so just get the code here

Go to the Macro you created and create two new parameters called updateCount (number) and showDate(bool). Also in Macro properties click "use in editor" so then you can use the macro in the editor. You should be done, go to the editor and add the macro to any pages you wish.

No comments: