SaaS CMS has officially launched! Learn more now.

How modify the short string box and make it bigger?



Is there a way to make the short string textbox any larger? It is so short now

Looked into EditorDescriptor but can't find a way to do it...

public override void ModifyMetadata(
			   ExtendedMetadata metadata,
			   IEnumerable attributes)
				base.ModifyMetadata(metadata, attributes);
                          // CODE?

Any ideas?

Dec 11, 2014 12:32

If you want it to be multiline, just add:

But you might just want a little more width?

Dec 11, 2014 13:24

No not textarea, just more width please ... :-)

Dec 11, 2014 13:32

Does this apply to all text boxers or just some specific ones?

If all: There is some examples in Alloy Templates on how to implement your custom css-files.

With that you should be able to change the styling of the text boxes. Use firebug or similar to see if you can find a good selector

Dec 11, 2014 14:43

All text boxes, yes

ok thanks, I'll have a look at the alloy package

Dec 11, 2014 14:53

hmm no I can't find anything about this...

Dec 11, 2014 15:06

Check out this article, under the heading "Adding a backgroud device image" you can see how to add css files.

However what the content for the .css file you can find by using the developer tools in your browser

Dec 11, 2014 15:21

Tanks Alf!

Since I already had a Styles.css in my /ClientResources/Styles, i just added the corresponding classes from dojo there!

If you don't have it there, just must add it, and insert this into the module.config

      <add name="epi-cms.widgets.base" path="Styles/Styles.css" resourceType="Style"/>

For the textbox fix, I just added:

input.dijitInputInner { width: 500px !important; }
div.dijitTextBox { width: 500px !important; }

Just change the width as you prefer


Dec 11, 2014 15:50
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.