Member
Member
Ralf   27-04-2019, 07:57
#1

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

Administrator
Administrator
fretzl   27-04-2019, 10:07
#2

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

#relateditems h4 {
    display: none;
}

No further comment needed I guess ;-)

Member
Member
Ralf   27-04-2019, 10:51
#3

Thanks :-)
Problem fixed.

Member
Member
Ralf   27-04-2019, 11:32
#4

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?

Administrator
Administrator
acrylian   27-04-2019, 12:26
#5

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

Member
Member
Ralf   27-04-2019, 13:26
#6

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

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.