Ok, so I'm starting to use the custom menu features. Love it so far!
Quick question though, and I guess this would apply to the normal menu as well.
Is there a way to limit the amount of text output on the links?
For instance, I have an album titled: "Goonies' Rock", Cannon Beach Day Trip - June 6, 2006
Most of my albums are titled including the type of trip and date if possible.
So the menu tends to wrap it, what I'd like is for it to be able to just cutoff the titles and append ... at the end when the title is too long for the link.
Hope the question makes sense. I could of course just rename the album titles, but am trying to avoid that.
Comments
When setting a custom menu item to link to a general zenpage index such as news index or gallery index, and you have the News in index option turned on, those links link to whatever page you're currently on.
For instance, I have an menu item set for "Zenpage news index" and navigate to a gallery item. The menu item links to whatever page I'm on instead of back to index.
This only happens when "News in Index" is turned on in the options.
Trac: http://www.zenphoto.org/trac/ticket/1678
There is currently no truncate option for "standard" menu items. Possibly a good enhancement.
And yeah, I think truncate would be great, just not sure how to go about implementing it myself..
You will have to regenerate the zenpage or EF+ default menu sets (just delete them and they will come back with the new updates.) If you have made your own menu set, you will need to update the parameter list for printAlbumMenuList, printPageMenu, and printAllNewsCategories. See the above themes menus for the details.
Error from logs:
`
[Tue Oct 12 02:42:50 2010] [warn] mod_fcgid: stderr: PHP Fatal error: Class 'ZenpageItems' not found in /home/michealluttrull/domains/dev.inthemdl.net/public_html/zp-core/zp-extensions/zenpage/zenpage-class-page.php on line 10
`
At first I thought perhaps I had a bad file or something. So I wiped the dev comepletely, dropped the database and did a clean install producing the same error.
Also something weird I noticed in the 10-10 nightly is that imagick doesn't appear to function for some reason. I have to rely on GD if I want any images to display.
No system changes have been made in regards to imagick etc though.
Also, now I'm getting the following when attempting to delete and recreate the default & zenpage menus as you suggested earlier:
`"delete_menu" Cross Site Request Forgery blocked.`
Regarding Imagick, I don't know. Best you create a ticket so that kagutsuchi might be able to help.
There have been quite a few changes to the Imagick lib in the nightly, so it's possible that something broke. As acrylian said, it's probably best to create a ticket with further information.
http://www.zenphoto.org/trac/ticket/1680
Let me know if you need me to change things to test.