Hi!
How do you change the breadcrumb, which is the navigation that is usually positioned at the top of the page?
What I would like to do is to add a link "Home" to my web page in Zenphoto. At present the breadcrumb looks something like this:
Photos -> Travels -> Madagascar -> Very nice pic!
but I would like to change it to:
Home -> Photos -> Travels -> Madagascar -> Very nice pic!
Hope you understand what I mean.
I am using the theme Stopdesign but think this is a general question.
In the Zenphoto Admin tools, under options you can fill in "Website url", which means "This is used to link back to your main site, but your theme must support it". I guess Stopdesign does not support this feature.
The question: Where does the "Website url" go in the configuration file? I cannot find it.
Do you have an Idea how the Stopdesign theme can be modified to support web page linking. I think it should be fairly simple but I just cant figure it out.
Daniel
Hi Daniel,
You just need to add this: http://www.zenphoto.org/trac/wiki/TemplateFunctionsGuide#printMainSiteLinktitleclassid
to the gallery title div of the index, album and image files in the theme
Thank you very much, I am almost there!
In zenphoto/themes/stopdesign/index.php on row 124 the original code is:
I have changed this to:
This gives what I want, and prints my "domain" as supposed. The problem is when I click on "domain" to get back to my web page I end up at http://www.domain.com/zenphoto/www.domain.com and not http://www.domain.com? I have not added the Website url in zp-config.php. I have only added Website url in Admin tools under options. What am I doing wrong?
One more thing. Note that I had to add ">" in "?> >
You probably typed just www.domain.com but you need to type the full web url like http://www.domain.com.
Yes, you can use printParentBreadcrumbfor that:
http://www.zenphoto.org/trac/wiki/TemplateFunctionsGuide#printParentBreadcrumbbeforebetweenafter
acrylian, you are right I typed www.domain.com instead of http://www.domain.com. My mistake.
For the record, this is what I change to, to link back to the main site.
index.php:
>
album.php:
> >
Image.php:
> > >
I didn't get the printParentBreadcrumb to work so I had to add ">" manually. but it works!
Daniel