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-12114.html)



Related Items - Ralf - 29-12-2014

Hi,

maybe someone can point me in the right direction :-)

The title of the related items is formatted in h4 headings.
The css of the zpbase theme will not display (tag: display-none) those titles.
For Albums and images this is fine, because only the thumbs are displayed.
But if i have a news item without a thumb/image applied, no related items will be displayed.

What i am looking for:
Display the news/pages items with a heading (like h3 or h5) different from the images/albums.

This should result in:
For images/albums the thumb will be displayed
For news/pages the title will be displayed

I tried several hours to modify the code of relateditems.php without success....

Any help is welcome.

Cheers
Ralf




Related Items - acrylian - 29-12-2014

I admit I don't understand why the zpBase theme hides the headline but I assume that is a CSS issue? As far as I remember the theme supports custom CSS via the backend so you could probably force displaying it with ul#relateditems li h4 { display: block !important; }.

You can even address the individual item type as theli will have the class of it (albums, images, news, pages).

if you wish another headline structure you will have to create a custom version of printRelatedItems(). The headlines follow the though that site name = h1, item = h2 so the related items start with h3 for the "section" headline and h4 for the entries itself.




Related Items - Ralf - 29-12-2014

Hi Acrylian,

thanks for the explanation.

For the zpbase theme:
it is a css issue because the style.css has:

relateditems h4{display:none;}


in it.

Ralf




Related Items - acrylian - 29-12-2014

Ok, probably gjr had some layout reasons for it. You should be able to override that though.