Member
Member
davidarnoult   28-06-2020, 19:08
#1

Hello folks!

In Zenpage extension, I wish to associate one single image (thumbnail of existing album or photo) to one news or page in order to display in a list as card style (like here https://getbootstrap.com/docs/4.0/components/card/). I think about publishing the image in extra content field and using printNewsExtraContent(), it works but it is not very clean about cache and format control... Is there a smarter way (extending zenpage with an simple extension, configuration...)?

It seems that in the past there was a combinews feature (still documented in printNewsContent()) but now stopped. Would had it been helpful?

Thanks for any thought about it!

Administrator
Administrator
acrylian   29-06-2020, 08:16
#2

The combinews feature was something different. It was meant to mix images and/or albums within news articles wihtin the next_news loop. Due to the difference of the separate item types it was a nightmare to maintain.

What you are looking for is this:
https://www.zenphoto.org/news/featured_image/

Member
Member
davidarnoult   29-06-2020, 11:35
#3

Super cool for this extension, this is exactly what I am looking for! Thanks :-)

Administrator
Administrator
acrylian   29-06-2020, 11:52
#4

And while it is already older and "archived" it should work as always. If there is indeed anything wrong let me know.

Member
Member
davidarnoult   03-07-2020, 07:44
#5

It works perfecly, ajax back end image list window is a bit slow to select the feature image but in front end, it is fast and awesome.

Administrator
Administrator
acrylian   03-07-2020, 07:50
#6

ajax back end image list window is a bit slow to select the feature image

I would assume you just encountered the usuage delay until the images are cached.

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