Home
TeamSite
Changing Font size in DCR
Pratheesh
Hi,
Is it possible to change the font size for Textbox in a DCR.
Regards,
Pratheesh.
Find more posts tagged with
Comments
gzevin
maybe
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU
response.JPG
Migrateduser
Maybe? What kind of a non-answer is that?
Anyway, you will not see any <font size="x" face="y">-type tags in the various GUI screens in TeamSite. Rather, IW uses style sheets for all of their form fields, table formats, etc., etc. This is very good design, although it makes things a bit harder to reverse engineer.
Since I don't know which .css to look for off-hand, I can point you in the right direction at least. View the source code in the DCT (I'm assuming you meant
DCT
in your post, not DCR and observe the several or possibly more .css references within. Then, in the form itself, note the class definition applied to the text box. Do a search within the referenced .css files and there you are.
You should know that changing this value in the .css file will cause all of your DCT's to be changed in the same way.
I'm wondering if any IW engineers / whomever can comment on this.
Dave
Current Environment(s):
(1) TS 6.1 SP1 on W2K3
(2) TS 6.1 SP1 on W2K
ela
Is this within a VisualFormat textarea? If yes, you can set the default font in the iw-home/httpd/iw/ewebeditpro20/ektnormal.css, or in your own, if you have one (is/must be defined in the visualformatconfig.xml file). In visualformatconfig.xml you decide which fontsizes should be available to the user.
If this is not what you need, please give some more details.
Eldbjoerg
Pratheesh
Hi Dave,
Thnx for your suggestion. I tried this and it is working good. As you said, it is changing all the DCTs. We want to change the font size only for DCTs in a specific branch.
Regards,
Pratheesh
Pratheesh
Hi Eldbjoerg,
The textarea is not within the visualformat. I need to change it for all textareas in the DCT
Regards,
Pratheesh
Migrateduser
Aha, then you can't do this :-) sorry! It's a stretch for me to use the word "can't" but for what you want to do, it'd seem to involve an immense amount of reverse engineering (I seem to be using that term a lot on DevNet today and it's not even 9 a.m.!) and I believe you might run into a binary while digging down into the levels of source code.
Why are you trying to do this, anyway? Perhaps there's another work-around.
Dave
Current Environment(s):
(1) TS 6.1 SP1 on W2K3
(2) TS 6.1 SP1 on W2K
(3) TS 5.5.2 SP2 on Win2K
Adam Stoller
It may also depend on the version of TeamSite you're using - TS6.x provides for stylesheet customization to be used with the DCT forms. Previous versions of TeamSite did *not* provide stylesheets for the DCT form (the VFE is a separate product and did/does provide for stylesheet customizations on both a per-instance and global perspective).
I'm not sure if you can alter the style sheets on a per-instance basis with TS6.1 - I think it's basically global to all DCTs.
May one ask why you need to change all the textareas for only one DCT-type?
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
gzevin
yep., maybe. depends on many variables, which were not provided in the question
now..
let's start guiessing.. which version.. what kind of text area, etc, etc, etc... This is exactly what you guys started doing immediately...
Greg Zevin, Ph.D. Comp. Sc.
Independent Interwoven Consultant/Architect
Sydney, AU
Migrateduser
Okay, okay, okay... point taken.
Dave
Current Environment(s):
(1) TS 6.1 SP1 on W2K3
(2) TS 6.1 SP1 on W2K
(3) TS 5.5.2 SP2 on Win2K
Pratheesh
Hi,
The requirement is that we have 2 branches, one is for english language and another is for different language(not english). We have to change the font size for the non-english branch.
Regards,
Pratheesh.
Pratheesh
We are using Teamsite 5.5
Pratheesh
Hi,
We are using Teamsite 5.5.2. We have to change the font size for all the fields which accepts input from the user (such as textboxes, combo boxes etc)
Regards,
Pratheesh.
Adam Stoller
If you're using 5.5 I don't think there is any supported way to alter the fonts used for any particular field(s) for any particular DCT(s). Other than changing browser settings for fonts, and/or delving into unsupported modifications of files used by TeamSite Templating, and/or upgrading to 6.x (for which I'm still not entirely sure you'll have per-field control, but you will have access to style sheets for customization) - I don't think you have much in the way of choices.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
ela
I might be a bit slow, but I'm still not sure which fonts you want to change. Is it the names/labels for the fields? Then you could try what is described in this thread:
Colouring DCT labels
.
I have changed fontsizes and colours in this way myself. There are some drawbacks, like the field names not being shown in the left navigation bar anymore, and of course that it's a bit of work if you've got many DCTs.
Ela
(TS 552 Solaris)
Adam Stoller
I don't believe it's the labels (though that might also be under consideration) - I believe the question has to do with the actual fonts used *within* the text and/or textarea fields for content input.
Note: for visual format fields - you can specify a per-field configuration file which can alter the setting of the default font (face, size, color, etc.) and even limit the choices available in the drop-downs that appear in the visual format toolbar.
Since we're talking abount different "branches" here (having just re-read the earlier posts) - the per-VF field customization may be the right way to go - since you would have two distinct DCTs (one for each branch) and each instance of the DCT could use a different VF config file specifying different fonts.
My earlier comments were based on the [incorrect] belief that what was being discussed was the ability to change the default font used in these fields dynamically based on which directory - wihtin a single branch - the DCT was being filled in.
However, the VF config file idea *only* applies to VF textarea fields - not to non-VF textareas nor to simple text fields.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
Pratheesh
Hi,
We don't want to change the font size for labels, it is only for textboxes and textareas for a single branch.
Regards,
Pratheesh
ela
OK, it was just me who was a little slow;-)
Adam Stoller
Again - I don't think there is any good / supported way to do this in the version of TeamSite you are currently using (5.5.2 - right?) - Once you upgrade to 6.x you will be able to have more control over these kinds of things.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com