DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

DNN 9.11.3 - Modifying Skin .ascx files

 15 Replies
 4 Subscribed to this topic
 21 Subscribed to this forum
Sort:
Page 1 of 212 > >>
Author
Messages
New Around Here
Posts: 19
New Around Here

Hello,

We recently upgraded from 9.5 to 9.11.3 and noticed when trying to modify a skin ascx file (directly on the server) that the changes weren't taking affect until incrementing the version in CRM.

I don't remember having to do this in older versions.

Is there a way to turn that off?

Thanks

It makes it difficult to test skin modifications when having to increment the version after each change.

Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!

Hello: 

I don't recall the theme file itself being impacted by that feature.  🤔

I'm not sure that you can "disable" this feature entirely.  Though, it's a provider, so it would be pretty easy to make a copy of the provider in the core and add logic to help you with this use case. Though, that's probably not the correct solution for you.  

For example, I'm guessing you're primarily annoyed during theme development.  I'm used to a hard-refresh being all that's necessary. 

It would be trivial to add logic to look for a query string value in your dev environment (for example), and then auto-increment using a bit of code.  This can be done in your theme files, directly.  An alternative provider wouldn't be necessary.  

Provider in the webconfig: 

<code><clientcapability defaultprovider="aspnetclientcapabilityprovider"></clientcapability></code>

New Around Here
Posts: 19
New Around Here
Thanks, Will.

Glad to see you're still around. I remember you from DNN world back in 2011 in Orlando I believe.

You're correct, it's only a problem when making tweaks to the skin file. I too was used to only having to do a hard refresh, but something has changed and that's not getting it done anymore.

Let me poke around some more and see if anything is configured wrong.

Was there supposed to be something after "Provider in the webconfig: " in your reply? I don't see any image/text after that.

Thanks again!
Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!

Yes. I had intended to display the provider to look for in the web-config, but it keeps getting removed. 

<code><clientcapability defaultprovider="aspnetclientcapabilityprovider"></clientcapability></code>

Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!

Okay. I give up, but you can find the provider by searching for "<code>aspnetclientcapabilityprovider</code>" in your config file. 

Advanced Member
Posts: 233
Advanced Member
4 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
4 Engaged Reader
Engaged Reader
You are an engaged reader!

 

from web(dot)config

Veteran Member
Posts: 360
Veteran Member
Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
Only JS and CSS changes would be impacted in this way. Changes to ASCX files only (as long as they aren't directly loading CSS or JS files that have also been changes) should be render fresh on every load, as they are server-side controls.

David Poindexter


Creator:


Veteran Member
Posts: 349
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
The only thing that comes to mind would be page cache. You could adjust the cache settings. Does it happen both for unauthenticated and authenticated ?
New Around Here
Posts: 19
New Around Here

That's what I would expect and how it's always been (used DNN since 5.X days).  Unfortunately that isn't what I'm seeing.

I've tried in both Evoq Content and Platform editions, using a custom skin and also the out of the box Xcillion skin.  Both have the same issue.

I'm starting to think it may be a bug.

Here are the exact steps I've done to test:

  1. Modify the ascx file and add a simple CSS class to an existing div (changed this div: 
    to this: 
  2. Refresh the page (both authenticated and unauthenticated) and view the page source and it still only shows the
    without the class that was added

I'll put a ticket in with DNN support and see what they say.  I tried previously, but couldn't get through the unwanted AI assistance, haha.

Thanks

New Around Here
Posts: 19
New Around Here

There is no page cache on the page and it's happening to both authenticated and non-authenticated users

Page 1 of 212 > >>

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved