![]() |
|
zpbase : deprecated function on news categories - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: zpbase : deprecated function on news categories (/thread-11692.html) |
zpbase : deprecated function on news categories - vincent3569 - 2014-03-18 hi,
zpbase : deprecated function on news categories - acrylian - 2014-03-18 That has been renamed as the name was misleading because it does not print any breadcrumb. It is now named zpbase : deprecated function on news categories - gjr - 2014-03-18 Thanks Vincent. @Acrylian: printNewsBreadcrumb is not listed as deprecated. printNewsTitle is not a replacement as they do very different things. printNewsBreadcrumb (pasted below) prints "Archive" in the breadcrumb when applicable, or "News" or custom name for News. I think this function or a version there of is very much needed. I am wondering if it was removed by mistake (since not listed in deprecated file). PrintNewsTitle prints the title of a single news item, very different. `
zpbase : deprecated function on news categories - gjr - 2014-03-18 This is the context I use it at the top of news.php loop: ` ` zpbase : deprecated function on news categories - acrylian - 2014-03-18 On the current 1.4.6 build there is actually no News articles don't have any breadcrumb anyway as they have no hierachy, only pages and categories have. For those there is zpbase : deprecated function on news categories - gjr - 2014-03-18 OK I see now that printNewsIndexURL replaces it, not printNewsTitle. Looks like printNewsIndexURL is an exact duplication of the former printNewsBreadcrumb. Had not caught this before because printNewsBreadcrumb is not showing up deprecated. zpbase : deprecated function on news categories - acrylian - 2014-03-18 Yes, sorry, my mistake answering inbetween. It was not deprecated but just renamed (actually it was named that before) as it "breadcrumb" was misleading as it does not print a real breadcrumb in the meainig of hierachical links. zpbase : deprecated function on news categories - sbillard - 2014-03-18 It is not deprecated because it "never really existed". We had deprecated the prior in 1.4.6 function in favor of printNewsBreadcrumb, but the team voted that this was a misleading name so it went back as on 1.4.5. No deprecation because printNewsBreadcrumb was never a released function. zpbase : deprecated function on news categories - gjr - 2014-03-18 Oh OK got it. I started patching my theme for 1.4.6 early, that is why. Thanks! |