logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
Joe Payne2  
#1 Posted : Wednesday, September 22, 2021 10:11:37 AM(UTC)
Joe Payne2

Rank: Advanced Member

Groups: HelpDesk, Developers
Joined: 11/9/2018(UTC)
Posts: 564

Thanks: 122 times
Was thanked: 26 time(s) in 25 post(s)
I've added a custom field to the admin edit-product page. Now I want to utilize your image picker from the Assets controller.

I copied the razor code for the linked folder icon (from the image Advanced Settings page), and adjusted the parameters for what I thought would work for the edit product page. But it just throws an exception when I select an image.

How do I use the asset manager in other areas of the admin like I need to here?

Capture.JPG (15kb) downloaded 0 time(s).


Code:

                                            <a href="@Url.Action("Index", "Assets",
                                                         new
                                                         {
                                                             controllerName = "Product",
                                                             actionName = "EditProduct",
                                                             paramName = "Id",
                                                             paramValue = Model.Id,
                                                             type = "image"
                                                         })">
                                                <i class="fa fa-2x fa-folder-open-o"></i>

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

Users browsing this topic
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.