Closed jpradocueva closed 1 month ago
PR related to this issue
As I have merged this PR, I have realized that tags
and content excerpt are not implemented, so those will be addressed in additional PR
@FroudeDescartes I list here other less pressing improvements, some are related to ShCards
[x] We need add more space between text and margins.
[x] Set pb-0
but some images still show margin on left and right.
[x] Is possible to add a footer to the Cards
to look like these others ...
[x] Some parts of the image is not rendered correctly due to strange aspect ratios. While here are listed correctly, https://lwm2m.openmobilealliance.org/news/
urlUpperBase
when present, should overrun the hard-coded script. CANCELLEDPR related to this issue (one of many)
All the issues have been resolved.
ShListCards New Constructor
We need a new constructor
ShListCards
to represent a list of news. See example, Latest News at the bottom of the index page.Properties: see spreadsheet
ui
: Property to introduce stylewrapper
: Attribute that contains classescols
: Indicate the number of columns to list the news, see the above exampletitle
: Indicates title of cardssubtitle
: Indicates the subtitle of the list of cardstext
: Allow to introduce text below the title and subtitledescription
: We should include a new propertydescription
on ALL the constructors. The description will describe the constructor's position concerning the other components.cardID
: This ID is used to determine the order of the card in the sequence.tags
: Optional, list of tags to display. This property displays the tags inside theShCard
. A click on one of the tag values filters the list based on the selection.<!--more-->
Cards
needs to be reviewed.news/articles
folder, but the files listed underurlUpperBase
, inside of the newsCard
don't render.cardID
order doesn't work see PR #69 in news index carID is set to render 36 news file first but it doesn'tgap
from property to attribute inside ofui
Example
This is a possible example of how this new constructor can be used:
Changes to
ShCard
In order to render e.g., a list of news as in the example, Latest News. We need to introduce the following changes to the
ShCard
constructor:Changes to Properties
description
: New property used to describe the constructor concerning the other constructorstags
: A new property is used to classify the card type. See example. This value will be used to filter news see example on LwM2M News . Click on one of the existing tags to filter the news cards to the selected option.cardID
: It is used as an index to determine which cards and in which order should be listed in the columns and rows. See LwM2M News<!--more-->
: This comment references a pointer inside of theShCard
content and displays it only from the beginning of the card until this pointer. See example below: . This function is used only when the card content is displayed inside of theShListCard
orShCard.
Once we click `ShCard, ' the content should appear on a new page and be full. See the example on LwM2M News.News
ShCard
andShListCards
are used to content and display news on any page. All the news should be stored in a specific folder calledNews
, and the files containing the news follow the following filename schema:YYYY-MM-DD-title
. This helps to organize the news content