This project is read-only.

To list the pages posted by admin

Topics: General
Sep 14, 2011 at 11:51 AM
Edited Sep 14, 2011 at 5:33 PM

Hi Friends,

I have a link named admin..if i click the link it should list all the pages posted by admin...i brought the link by this template


@using Orchard.ContentManagement;
@using Orchard.Core.Common.Models;
@using Orchard.Security;
    CommonPart commonPart = Model.ContentPart;
    // owner isn't really who last modified this, is it?
    IUser owner = commonPart.As<CommonPart>() == null ? null : commonPart.As<CommonPart>().Owner;

<span class="author">
@T("{0} //", owner == null ? "<null>" : owner.UserName)


I am breaking my head for long time..please help me..please do this helpfull.please anybody can give solution for this problem.



Sep 14, 2011 at 10:15 PM

Well, you did not explain what doesn't work. In any case, you should build a controller action for that, make a proper query into content manager and return a shape result with a list shape in it. Examples abound, for example in Blog.

Sep 15, 2011 at 9:19 AM


I will show my screen shot, after that you will clearly understand my problem..please say how to add print screen image in this.



Sep 15, 2011 at 6:36 PM

You can't. You will need to upload that to a public image site and then link to it.