Customize admin view of content product

Topics: Customizing Orchard
Oct 26, 2011 at 9:31 AM

Hi,

I have created content product. When i login as admin i can see edit link in each product. I want customize edit link. From where can i edit that?

 

lakmal

 

 

Oct 26, 2011 at 6:28 PM

Hi,

I found place

@using Orchard.ContentManagement;
@using Orchard.Core.Contents;
@if (AuthorizedFor(Permissions.EditContent) && Model.ContentItem.Id > 0) {
    <div class="content-control">
        <div class="manage-actions">@Html.ItemEditLinkWithReturnUrl(T("Edit").Text, (ContentItem)Model.ContentItem)</div>
    @Display(Model.Child)
    </div>
}
else {
    @Display(Model.Child)
}

Now i have another problem. I want edit   

ItemEditLinkWithReturnUrl

Where is that?

Coordinator
Oct 26, 2011 at 11:17 PM
Do a search on the code and you'll find it.

Sent from my TI-99/4A

From: galgodage
Sent: 10/26/2011 10:31 AM
To: Bertrand Le Roy
Subject: Re: Customize admin view of content product [orchard:277232]

From: galgodage

Hi,

I found place

@using Orchard.ContentManagement;
@using Orchard.Core.Contents;
@if (AuthorizedFor(Permissions.EditContent) && Model.ContentItem.Id > 0) {
    <div class="content-control">
        <div class="manage-actions">@Html.ItemEditLinkWithReturnUrl(T("Edit").Text, (ContentItem)Model.ContentItem)</div>
    @Display(Model.Child)
    </div>
}
else {
    @Display(Model.Child)
}

Now i have another problem. I want edit

ItemEditLinkWithReturnUrl

Where is that?