Hey Jim,

why not using CSS to give the element a fixed width in em?
This way it still can resize plus it should break properly.
If you can send some example HTML & CSS code and I can have a look at
it.

Cheers
Markus

On 12 Sep., 06:38, JimV <[email protected]> wrote:
> We are using Navmanager to create our menu structure for our website.
> Unfortunately, some of the headlines of some of our pages are fairly
> long (73 characters). These are too long for our menus. In the past,
> when we manually maintained the menus, we just put a <br /> tag to
> break the line at a convenient whitespace.
> Is there any way in Navmanager to break a headline at a whitespace? We
> would like the menu items to be less than or equal to 40 characters.
>
> I’ve tried the code below, which almost  works:
>
>      #1 <%!! Context:CurrentIndex.Headline.Substring(Int:0, Int:39) !!
> %>
>      #2 <%!! Context:CurrentIndex.Headline.Substring(Int:39,
> Context:CurrentIndex.Headline.Substring(Int:39).IndexOf
> (Escape:Space))!!%> <br />
>      #3 <%!! (Context:CurrentIndex.Headline.Substring(39)).Substring
> (Context:CurrentIndex.Headline.Substring(Int:39).IndexOf
> (Escape:Space)) !!%>
>
> Line #1 gives all the characters up to character 39, which works fine.
> Line #2 gives all the characters from character 39 to the next space
> and then inserts a line break tag, which works fine.
> Lin3 #3 is supposed to give all the characters from the first space
> after character 39 to the end of the headline, which doesn’t work.
>
> If there was an Add function, to add two results together, that would
> help, but if Add is part of navmananger, I can’t find it in the
> documentation.
>
> Any suggestions? (Other than shortening our headlines of course  )
> Thanks
> Jim
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/reddot-cms-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to