ZenphotoCMS Forum
Related Items - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html)
+--- Thread: Related Items (/thread-13234.html)



Related Items - Ralf - 27-04-2019

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:

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:

        Ähnliche news       


                                                        GMedia Anonyme IP

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




Related Items - fretzl - 27-04-2019

In your /css/style.css line438 there is this rule:

#relateditems h4 {
    display: none;
}

No further comment needed I guess ;-)




Related Items - Ralf - 27-04-2019

Thanks :-)
Problem fixed.




Related Items - Ralf - 27-04-2019

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?




Related Items - acrylian - 27-04-2019

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 ;-)




Related Items - Ralf - 27-04-2019

Got it :-)
Thanks again and hopefully I'll sty with Zenphoto.