![]() |
|
How to add link in Breadcrumb? - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Themes (https://forum.zenphoto.org/forum-5.html) +--- Thread: How to add link in Breadcrumb? (/thread-1933.html) |
How to add link in Breadcrumb? - DanielB - 2007-12-14 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 How to add link in Breadcrumb? - nmec - 2007-12-14 Hi Daniel, You just need to add this: http://www.zenphoto.org/trac/wiki/TemplateFunctionsGuide#printMainSiteLinktitleclassid How to add link in Breadcrumb? - acrylian - 2007-12-14 Correct except for one part, it is not needed to add anything to the zp-config file anymore (the functions guide is not up to date). How to add link in Breadcrumb? - DanielB - 2007-12-14 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 "?> > How to add link in Breadcrumb? - acrylian - 2007-12-14 You probably typed just Yes, you can use How to add link in Breadcrumb? - DanielB - 2007-12-16 acrylian, you are right I typed 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 |