Tiago Gafeira wrote:
Hi Tiago,
AddStyleSheetTag adds css link to start of page. How we can add this link to end of head section. Base cass is automatically added with some number like example below .
/SG_Theme/Theme.SG_Theme.css?37905
Number 37095 changes with every environment . Can you please help how we can change this sequence of adding new css to end of head tag
nilesh rokade wrote:
that's the regex-part
Tiago Gafeira wrote:how to know the base css regularExpression.
This is really nice trick. To improve upon that I got another tip.
Instead of removing the Theme styling, you can also place your custom CSS file below it, so it styling takes precedence. By putting it below the Theme CSS file it overrides any style you have set in the theme.
To do this, search for the next line in the script and replace it with your custom CSS + next line.You can do this by searching for
"<script id=""_OSrequestInfoScript"""
And replace it by
"<link href='/MyApplication/BrandCSS.aspx?" + DiffSeconds(#2018-01-01 00:00:00#, CurrDateTime()) + "' type='text/css' rel='stylesheet' /> <script id=""_OSrequestInfoScript"""
I'm also adding a time to the filename to force this file to be loaded each time (instead of being loaded from cache).The advantage is you can just do custom styling on little parts of CSS code, instead of having to copy the full CSS. The second advantage is you don't need to put "HTML" before every tag anymore.
I know this is really old so I apologize but what is CustomerUser for? I'm trying to understand why it's necessary but I'm having trouble. Thanks
Hello,
this was used for an ISV (independent software vendor) customer, so they had built a portal, to be sold to their customers, so in order to avoid changing the code every time that there was a new customer (new logo, new colors...), they had to create this customization layer above the app. Hope this can clarify your question.
Best Regards,
Hugo Pinheiro
I know but in this example how is CustomerUser used? Why not just have the UserId in the Customer entity? It might be standard database setup, but I'm new to databases so I don't know much about convention yet.
Hugo Pinheiro wrote:
If I recall, was because there were several admin users configured per Customer, but you can disregard that part, just the technical part of how to change the style inline matters, you can adapt to your own data model!
it is not working.any idea.
Hi,
Some tip for absolute beginners :-) : when downloading the CSS (Download widget) you must change Mime-type parameter from the default "application/octet-stream" to "text/css".
Regards
Tomasz