The simpler media website CMS
Hi,
i am trying to get the related items displayed on my site.
In the zpbase template there is already support for it.
If I look at the news.php the code looks like this:
<?php if (function_exists('printRelatedItems')) { ?>
If I now go to my site:
https://www.ralf-kerkhoff.de/blog/gmedia-galerie/
there is a section named 'Ähnliche News' at the bottom of the page. But there are no related items displayed.
If I look at the source code:
<ul id="relateditems"> <li class="news"> <h4><a href="/blog/gmedia-anonyme-ip/" title="GMedia Anonyme IP">GMedia Anonyme IP</a> </h4> </li> </ul>
it looks to me, that one related article is found: gmedia-anonyme-ip
What I don't get at the moment:
Why is it not displayed in the frontend.
Ralf
Comments
In your /css/style.css line438 there is this rule:
No further comment needed I guess ;-)
Thanks :-)
Problem fixed.
Hi,
one more question:
https://www.ralf-kerkhoff.de/seiten/impressum/
at the bottom you see the label:
Ähnliche pages
I am not sure if the 'pages' label comes from the plugin or from the theme.
any ideas where i can change the label?
It's generated by this function:
https://docs.zenphoto.org/function-printRelatedItems.html
Ther first part "Ähnliche" (= Related) is hardcoded and the 2nd part depends on the
$type
parameter. If you want something complete different, you have to create a theme based custom function. Either by adapting this function or using https://docs.zenphoto.org/function-getRelatedItems.html as a base for a complete custom one.PS: Nice to see you back once again ;-)
Got it :-)
Thanks again and hopefully I'll sty with Zenphoto.