Custom Menu Question

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

  • Also, a minor bug I noticed.

    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
  • fixed changeset 6000. You should be able to apply just that change (not the whole script) to the 1.3.1.2 release.

    There is currently no truncate option for "standard" menu items. Possibly a good enhancement.
  • Perfect, applied those same changes on my files and it functions properly now. Thanks.

    And yeah, I think truncate would be great, just not sure how to go about implementing it myself..
  • Well, if you are daring, try tonight's nightly build. (Probably not on a production site, though, we are still making changes to the objects.)

    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.
  • Well... I was brave and gave the 10-10 nightly a shot. Right out of the gate noticed a few problems. The option is able to be set under admin, but when I click the menu tab it gives whitescreen.

    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.
  • I am an idiot, lol, forgot to turn on zenpage. However imagick is still giving me grief and I've had to revert back to GD.

    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.`
  • Hmmm.. It seems that perhaps there was a file or two that weren't being replaced/deleted correctly. After attempting to "start clean" again with the 10-10-2010 nightly, everything functions properly, except imagick. It won't render images for some reason so have been forced back to GD for image rendering.
  • acrylian Administrator, Developer
    We did some restructuring to the object model which the "ZenpageItems" error is about. Probably just a glitch, happens sometimes...

    Regarding Imagick, I don't know. Best you create a ticket so that kagutsuchi might be able to help.
  • What exactly is going wrong with Imagick? Is it simply not generating images?

    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.
  • Here's trac for imagick problems that I'm having:
    http://www.zenphoto.org/trac/ticket/1680

    Let me know if you need me to change things to test.
Sign In or Register to comment.