You need to sign in to do that
Don't have an account?

Changing the look and feel of an S-Control page by entity name
From the Stylesheets and S-Controls Best Practice Guide, it was
mentioned that we can reference an entity name to change the look and
feel of our S-Control generated pages to look like that entity name. For example:
<BODY class="account">
So what if I define my own custom object? For example, we've created a Call object... I've tried "call", "Call", "call__c", "Call__c"... and none of them work. Can we treat our custom objects as entities in this situation?
- Ed
<BODY class="account">
So what if I define my own custom object? For example, we've created a Call object... I've tried "call", "Call", "call__c", "Call__c"... and none of them work. Can we treat our custom objects as entities in this situation?
- Ed
look in at the page src for the custom object detail page you created.
I tried that as well but it didn't work. When viewing the page source, I see the following for my custom object:
However, when I tried applying that same class name to my S-Control, everything renders in the default color black instead of the color schemes we chose. I've tried "Custom14Tab", "custom14tab". "custom14" and "Custom14". None of them seem to work. Am I missing something here?
- Ed
Let me know if you have any specific questions but I hope this helps you out,
I agree... I would think salesforce would be expanding their knowledgebase to include more details about their use of stylesheets beyond their current Best Practices guide.
- Ed
I've noticed in your example, you reference the "sCSS" directory for salesforce's standard stylesheets but the example in the Best Practices Guide points to "dCSS". Do you know what the difference is between the two? Is one an antiquated version of the other?
- Ed
Hi Ed,
That's a good question and I don't know if one is older than another or if the sCSS version is where they try styles out? My guess is that they probably only support use of the version in the documentation and that I should change my template. Maybe one of the salesforce guys can provide some feedback on your question?
-greg
But yes, I'm hoping someone from salesforce can comment directly on this question.