londonmedicallaboratory / api-sdk

1 stars 0 forks source link

Articles #10

Closed lukkov closed 2 years ago

lukkov commented 2 years ago

DISCUSSION

As a part of login system discussion, on LML we have articles section, so we need to decide where should be handled functionality of writing articles and storing.

URL https://www.londonmedicallaboratory.com/article/2

charlesastwood commented 2 years ago

on commando, brand aware, only internal, ideally a nice CMS, otherwise allow us to add html with a WYSIWYG

zmitic commented 2 years ago

Reminder:


image

zmitic commented 2 years ago

Categories are brand-aware (singular), create some here:

image


Then create an article:


image

lukkov commented 2 years ago

Like BiomarkerCategoriesAction and ProductCategoriesAction on Commando, we need endpoint for fetching article categories and ArticleCategoryRepository on sdk

zmitic commented 2 years ago

@lukkov Can you dummify this?

What would be the methods be, and where?

lukkov commented 2 years ago

Just for listing, same as for the product and biomarker categories, ProductCategoryRepository for example. Categories should be displayed on top of the page so articles could be filtered.

I could extract categories from fetched articles and display that but this may be better solution if we have pagination one day

image

lukkov commented 2 years ago

My mistake, didn't see \LML\SDK\Repository\Blog\CategoryRepository

zmitic commented 2 years ago

No problems, I forgot to put it in message.

lukkov commented 2 years ago

We should add some cover image on article so it is displayed when listing articles

image

And banner image so it can be loaded on top of the page when view article

zmitic commented 2 years ago

Reminder:

zmitic commented 2 years ago

Added:

Article::getLogo(): ?FileInterface