現在、Ektron CMSを使用して、私はリンクがクリックされた場合、ユーザーがログインする必要がある保護された/プライベートのコンテンツの横にlock.jpgを配置しようとしています。
私はこれをどのように開始するか、これで行くのか分からないのですか?
これを達成するためのアイデアやスニペットは感謝します。
ありがとう、 ロン
ContentDataオブジェクトには、あなたが見ることができるIsPrivateプロパティがあります。最新(v8.5)では、私は次のようにします。コードの背後にある:
ContentManager contentManager = new ContentManager();
ContentCriteria criteria = new ContentCriteria();
criteria.AddFilter(ContentProperty.FolderId,
CriteriaFilterOperator.EqualTo,
folderId);
List list = contentManager.GetList(criteria);
Listview1.DataSource = list;
Listview1.DataBind();
ステートメントを使用するには、次のものが必要です。
using Ektron.Cms;
using Ektron.Cms.Common;
using Ektron.Cms.Framework;
using Ektron.Cms.Content;
using Ektron.Cms.Framework.Content;
ASP.NETテンプレートでは、標準のASP.NET ListView Server Controlを使用します。
.jpg" /><%#Eval("Title") %>
That'll get you heading in the right direction. For more information on the v8.5 Framework API, see this webinar http://www.ektron.com/Resources/Webinars/Framework-API/