function printParentBreadcrumb: $elipsis

Hello again!

I prefer this character as separator for the breadcrumbs: " » ". I thought, it would be sufficient to edit the theme files (index, album, image and search), but I found the function "printParentBreadcrumb" in zp-core/template-functions.php (lines 923ff). I had to edit the pipe symbol there (which is not quite elegant, but it works, I'll have to edit this when further updates arrive), and I found the variables $between, $after and $elipsis there.
When does ZenPhoto decide to print the elipsis as seperator in the breadcrumps? I saw this in an other installation of ZenPhoto where the albums had a deeper sub-structure, but I couldn't recognize a rule for this.

Greetings!
Wete

Comments

  • acrylian Administrator, Developer
    You really NEVER should modify core files. If you need customizations the right place is to do this in a theme and therefore make a custom copy of it. This is why these functions have parameters you can set.

    printParentBreadcrumb has a parameter for the ellipsis.
  • Oops.
    I'm too dumb. Now I understand the syntax. Sorry, scripts, PHP and so on are unknown territory for me ... :-(
  • Back to my question: What is the trigger for using the ellipsis in the breadcrump?
  • acrylian Administrator, Developer
    I had to look myself. So, the ellipsis parameter does not refer to the the navigation itself actually. It is used for the truncation of the album title that is shown if you hover over the link (via the title attribute). If you ever saw that as a delimiter you either confused it with the panelist (which uses an ellipsis if you have very many album pages) or something custom coded for a specific theme.
    As for the pagelist ellipsis that is also set via parameters.

    Sorry for the confusion but I don't remember all functions off hand as well...
Sign In or Register to comment.