Paul
Paul

Reputation: 1455

Change Admin View in plugin Nopcommerce

I would like to change the view Views/Manufacturer/_CreateOrUpdate.cshtmlfrom within my plugin.

I know that in the public site you just drop your custom view in your theme's View folder however for admin I am not sure how to override an existing view.

Anyone know how to do this?

Upvotes: 1

Views: 1163

Answers (2)

Tommaso
Tommaso

Reputation: 36

There is a fork that allow the override of views in admin zone

http://nopcommerce.codeplex.com/SourceControl/network/forks/magnuskragelund/nopCommerce

Upvotes: 2

Imran Rashid
Imran Rashid

Reputation: 3502

You can put condition in existing view that if user is admin /// your code else default functionality.

if(User.IsInRole("Admin")) { //your code } else { //default code }

Upvotes: 0

Related Questions