Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Get a List of Related "Categories"
markw
#1 Posted : Wednesday, February 01, 2012 3:34:02 AM(UTC)
Rank: Newbie
Groups: Registered

Joined: 2/1/2012(UTC)
Posts: 2
Location: UK
I'm new to KooBoo so am just trying to do some simple tests of functionality.

The (XML) database content has 2 folders News and Section. The news is related to a one (or more) sections. I've setup some content items and that works fine. In a view I can see how to get the a list of all news articles but I need to be able to list the sections. Eg

TITLE
NEWSBODY
SECTIONS

I was expecting to enumerate something like @Viewbag.Item.Sections, but without any class documentation I'm at a loss.

Anyone any ideas?

Thanks
Mark

jifeng
#2 Posted : Wednesday, February 01, 2012 4:14:56 AM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,555
Location: Xiamen China
Please see the document: http://forum.kooboo.com/...PI-samples.aspx#post3944
Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
markw
#3 Posted : Wednesday, February 01, 2012 11:23:32 AM(UTC)
Rank: Newbie
Groups: Registered

Joined: 2/1/2012(UTC)
Posts: 2
Location: UK
Many thanks

I had tried something similar but had written "Sections" and not Section and I'd managed to create the content folder in the plural. Editing templates using VS2010 gives intellisense which has helped work out the various properties and methods.

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.5.5 | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.163 seconds.