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 : Friday, July 30, 2021 8:24:28 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'm finding that new references added to the theme.config file are not getting rendered in the page source. I've rebuilt the app. I've started IIS.

Able just won't load the revised theme.config file and I cannot figure out why.

Is there a place to start where I can breakpoint the file being parsed to check what's going on?

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

shaharyar  
#2 Posted : Friday, July 30, 2021 9:30:05 AM(UTC)
shaharyar

Rank: Advanced Member

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

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
I am able to add a new .css file in theme.config and it rendered the file with styles effects without a rebuild or restarting IIS.
Actually, the code invalidates the cache when a theme.config file is changed. So technically there is no need for a restart or a build.

Can you share more details.. Testing in release mode or debug mode. Using Sample theme or customized theme? Version?

Please make sure you are testing on the page that is using the same theme in which you are editing the theme.config
Joe Payne2  
#3 Posted : Friday, July 30, 2021 10:21:03 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)
Never mind. I just figured out what I'm doing wrong.........

The theme has it's own /Content/ and /Scripts/ folders.

I had copied the css and js files into the root folders of the site. But those theme.config references are relative, which means the files need to be the respective subfolders under the theme folder.

Code:
<Include Path="Scripts/toastr/toastr.min.js"/>
Users browsing this topic
Guest
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.