◄ ► | Edit | Home | Admin | en de fr et | Sign in

#6434 (blogs.Entry.as_paragraph() should use main_image)

by Luc Saffre · in Developers · assigned to Luc Saffre

Summary

When showing the demo blog entries in a list view, the images are rendered inline. We want to have them floating right. But what if there are multiple images in the first paragraph? Or if the image is not in the first paragraph but later? the blogs.Entry.as_paragraph() method should use the Illustrated.main_image property.


>>> [cls for cls in blogs.Entry.__mro__ if "as_paragraph" in cls.__dict__]

[<class 'lino.modlib.memo.mixins.Previewable'>, <class 'lino.core.fields.TableRow'>]


The Illustrated.main_image works only when there is an album. Should we support blog entries also when albums is not installed? My guts say yes, and even when its insstalled, we shouldn't enforce creation of an Album for every blog entry. A blog entry with only one image doesn't need an album.

Children

Comments