Hi everyone
When adding a css or jscript to a webfile as a note attachment in the Portal application, how do I get the url to refer to it?
Thanks very much
Rean
Hi everyone
When adding a css or jscript to a webfile as a note attachment in the Portal application, how do I get the url to refer to it?
Thanks very much
Rean
Thanks for your feedback Clofly. I tried that - didn't work. I created a brand new web file record and attached the css file and still getting the same issue.
It's ok, we'll host the css file somewhere else at this point.
Thanks again for your help.
Rean
Hi Rean,
I regret to hear that it still not works.
You could try this different approach:
Edit the portal app in make.powerapps.com
In editor, we will see a blank page, it doesn't matter because event portal is not supported with power app editor,
we just need to click "Browse website", It will also force the portal website to refresh.
I uploaded a simple CSS file, it take effect immediately by following above process.
Good luck.
(If it is still not working, please check whether spell of Partial Url is correct.)
Regards,
Clofly
Thanks for testing Clofly.
I've restarted by portal. Still the same issue. I'll do some further digging and testing.
Thanks for your help!!
Regards
Rean
Hi Rean,
It might be caused by portal cache.
You could restart portal to refresh website, then check whether the web file will be available.
I have uploaded a custom css file, it works after I restarted my portal.
Regards,
Clofly
Thanks for the reply/information Clofly.
I've tried this, but still get Page not Found when I navigate to the url.
Here's the setup in the model-driven app:
And then when trying to navigate to the page:
I can navigate to the bootstrap file though:
What am I missing?
Thanks
Rean
Hi Rean,
1. If parent page is Home:
<Your Portal URL>/<Partial Url>
e.g:
2. If parent page is any of other page: (and parent page of the parent page is still Home)
<Your Portal URL>/<Parent Page URL>/<Partial Url>
e.g:
parent page:
Regards,
Clofly
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156