On 12/18/2009 06:16 PM, Daniel Johansson wrote:
> I'd like to customize the dashboard and add News category items from the 
> blog. I have tried some examples but none of them seem to work. In the 
> manuals there are mentions of macros in the blog but I can't seem to find any 
> reference. What's the easiest way to include blog content in pages outside 
> the blog? I'm using Xwiki 2.04.

You could try this:

- Edit the Main.Dashboard document in wiki mode
- Add this at the start of the content (before the {{velocity line):
{{include document="Blog.CategoriesCode"/}}
- Add this where you want the blog posts to be displayed:
             {{html wiki="true"}}
             #getEntriesForCategory('Blog.News' $entries $total)
             #displayBlog($entries 'category' true)
             {{/html}}

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to