Technology Tools for Ministry

Community

Web-Empowered Church User Community
All Categories > Getting Started > Templates > Menu Item Autocropping
Total Posts: 7 - Pages (1): [1]
Author: David Reed
Posted: Jun 26 2008 - 10:05 AM
Subject: Menu Item Autocropping
Hi all,

I did a search and did not find any reference to this particular difficulty in the forum. If I missed it, please feel free to properly chastise me for not doing a more dilligent search.

In adding new submenu items, I noticed that Typo3 appears to be autocropping the words in the submenu. How can I turn this autocropping off and/or modify the cropping properties to a more useable limit?

Thanks,
David
Author: Jeff Segars
Posted: Jun 26 2008 - 12:57 PM
Subject: re: Menu Item Autocropping
David,
First a little background on how menus are defined In the WEC Starter Package we define a default set of menus in Typoscript that are the basis for all the templates. We define lib.menu (which can contain cropping, active states, and all that good stuff), and then each TemplaVoila template imports lib.menu. There are some cases, however, where the default lib.menu isn't good enough and the TemplaVoila template needs to define its own menu. In your case with a modified version of Bright Side of Life, that's what we're dealing with.

If you go to the Storage Folder, you'll see a TemplaVoila Template Object for your current template. Clicking on this record will show several fields, one of which is Local Processing. Local Processing is what lets us say that Bright Side of Life should use its own custom menu rather than the default one shared among templates.

As you scroll down through the XML in this field, you'll see "stdWrap.crop=15 | ...". This tells TYPO3 to crop at 15 characters, so you can increase the limit or remove it completely if you never want your menu items to crop.

Hope that helps!
Jeff
Author: Peter Schott
Posted: Jun 26 2008 - 01:26 PM
Subject: re: Menu Item Autocropping
Well, no luck for me. "Crop" isn't anywhere in the "WEC - 2 Column + Top" or the "Beautiful Creation - 2 Column Blue" (our current template), but we still get cropped menu items on our site - especially sub-menu items. Oh well, so much for an easy fix for my problem. Either that or I'm completely missing where to make this change. I checked the main page template with all of the TYPOScript setup and I've checked the template itself - neither had any indications of cropping or stdwrap.crop.

-Pete
Author: David Reed
Posted: Jun 26 2008 - 02:55 PM
Subject: re: Menu Item Autocropping
Hey guys,

first of all, a big thanks to Jeff for walking through this with me.

Pete,

I did notice that Beautiful Creation does not appear to have any local processing code, but in our case, using BSOL, the stdWrap is in the code 7 times. Anyone experiencing this same problem will need to change the code to another number all 7 times to make it work for all menu levels.

Here are the steps:

Web->List
Storage Folder
Scroll down to your template and click the edit icon
Follow Jeff's directions above and change the number from 15 to 30 on all 7 lines, and you're good to go for up to a 30 character menu item.

Thanks again Jeff!
Author: Peter Schott
Posted: Jun 26 2008 - 03:37 PM
Subject: re: Menu Item Autocropping
Just checked - we are using "New Beginnings" and that does indeed have the wrap code set to 15. I bumped that up on the test site and it worked fine. Now to do the same for the main site. Only odd issue is the graphic used for the menu items not quite filling the whole menu item for longer titles and that's a minor issue.

-Pete
user picture Author: Christopher Seward Sr.
Posted: Jun 28 2008 - 08:08 PM
Subject: re: Menu Item Autocropping
I had the same issue, and just removed the "15" altogether. This removes cropping, and the graphics appear to be fine.

In His Service,
Christopher
Author: David Reed
Posted: Jun 30 2008 - 08:16 AM
Subject: re: Menu Item Autocropping
Christopher,

I had thought about taking the 15 out as well. The only difficulty is that I will be training volunteers and other staff to add to the site and don't want one of our (more creative/less logistically minded)workers to get creative and add a page title that is 100 characters.

For us, changing the integer to 30 instead of deleting it will act as a future safeguard against unintentional error. Of course, I did entertain the idea of deleting it completely myself as well and it was a tempting thought.
Total Posts: 7 - Pages (1): [1]
You must login to post a message to this conference.