Member
Member
Wete   2012-01-28, 14:13
#1

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

Administrator
Administrator
acrylian   2012-01-28, 14:30
#2

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.

Member
Member
Wete   2012-01-28, 14:46
#3

Oops.
I'm too dumb. Now I understand the syntax. Sorry, scripts, PHP and so on are unknown territory for me ... :-(

Member
Member
Wete   2012-01-29, 15:24
#4

Back to my question: What is the trigger for using the ellipsis in the breadcrump?

Administrator
Administrator
acrylian   2012-01-29, 15:46
#5

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...

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.