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

Notification

Icon
Error

Query schema from datarule
Hrvoje_86
#1 Posted : Tuesday, November 22, 2011 11:21:16 PM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 1/28/2011(UTC)
Posts: 157
Location: Croatia
I have an article schema which i use in multiple folders but all the contents of that schema should be displayed in one view.
The problem is if i use schema api to query the content i can't set the html title because it executes before the view.
And if i use a data rule to find the current article it only works for one folder.
What is the best way around this?
jifeng
#2 Posted : Wednesday, November 23, 2011 2:07:37 AM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,555
Location: Xiamen China
Hi

You can create a page plugin for using the schema query api. In the page plugin, enable you to set the html title (Set the html title value into ViewData, render it in the layout).

Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
1 user thanked jifeng for this useful post.
Hrvoje_86 on 11/23/2011(UTC)
Hrvoje_86
#3 Posted : Wednesday, November 23, 2011 10:29:04 AM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 1/28/2011(UTC)
Posts: 157
Location: Croatia
That sounds like a good solution.
Thanks.
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.233 seconds.