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
judy at Web2Market  
#1 Posted : Wednesday, September 23, 2020 1:48:53 PM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 286

Thanks: 21 times
Was thanked: 5 time(s) in 5 post(s)
I'm trying to add a new admin page for a custom class, passing in an id as a parameter to pull up an object to edit. I can get the page to come up via the url and show the correct data, but can't figure out how to have it display AC admin styles and admin header. How can I get it to do that?
(I tried doing it as a popup on the Edit User page, but couldn't get that to work, although I did get two other Edit something popups to work.)
Thanks

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

shari  
#2 Posted : Friday, September 25, 2020 8:47:00 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 703

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
Hi Judy,

Can you please confirm if you are working in a plugin or you are creating a page directly in the application?

Also, if possible, can you share the view file so I can suggest if something is missing.

Thanks
judy at Web2Market  
#3 Posted : Monday, September 28, 2020 6:06:14 AM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 286

Thanks: 21 times
Was thanked: 5 time(s) in 5 post(s)
This isn't a plugin. Let me work on it some more. Maybe it's because I created a partial view to try to use as modal popup. I've since created another admin page that I access via a menu link and it shows AC admin styles OK. Is it this that adds the admin header and styles?
<div class="wrapper wrapper-content animated fadeInRight">

etc

shari  
#4 Posted : Wednesday, September 30, 2020 6:15:15 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 703

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
Quote:
<div class="wrapper wrapper-content animated fadeInRight">


This is the parent container classes for the content area of an admin page. The header and styles comes from the parent/master layout that is, in our case, placed in \Website\Areas\Admin\Views\Shared\_Layout.cshtml
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.