Mark List item as New

More
8 years 5 months ago - 8 years 5 months ago #58307 by ggppdk
Replied by ggppdk on topic Mark List item as New
Hello

the item list markups (Item lists: Markups TAB in component parameters) for category-like views (category, multi-cats, tags, search)
- do what you ask and more

they add custom text and CSS class according to
- creation date
- modified date
- access levels
- featured categories
- not featured (normal) categories

but these are not yet added to universal module


it should look like (but need to change variable names etc)
(e.g. foreach($items as $item) is different inside the module file it is foreach($list[$ord][...] as $item)

Code:
// Calculate CSS classes needed to add special styling markups to the items flexicontent_html::calculateItemMarkups($items, $params);

Code:
<?php foreach ($items as $i => $item) : ?> <?php $fc_item_classes = 'sectiontableentry'; $markup_tags = '<span class="fc_mublock">'; foreach($item->css_markups as $grp => $css_markups) { if ( empty($css_markups) ) continue; $fc_item_classes .= ' fc'.implode(' fc', $css_markups); $ecss_markups = $item->ecss_markups[$grp]; $title_markups = $item->title_markups[$grp]; foreach($css_markups as $mui => $css_markup) { $markup_tags .= '<span class="fc_markup mu' . $css_markups[$mui] . $ecss_markups[$mui] .'">' .$title_markups[$mui]. '</span>'; } } $markup_tags .= '</span>'; ... // PRINT THE markups tags <div class="fcclear fc_beforemarkups"></div> <?php echo $markup_tags; ?> ...


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 8 years 5 months ago by ggppdk.
The following user(s) said Thank You: eifelnetz

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago #58308 by ggppdk
Replied by ggppdk on topic Mark List item as New
and in compoent parameter configuration you could use
"MY_STRING_NEW" when e.g. creation date is within some limits

but this a work that we should do


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
The following user(s) said Thank You: eifelnetz

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago #58334 by eifelnetz
Replied by eifelnetz on topic Mark List item as New
Many thanks! My solution:
I have replaced the module by a category view and set the markup in the global configuration.
"Konfiguration" -> "Flexicontent" -> "Lists: Markups" -> "Kürzlich hinzugefügte Markups" -> "Ja / Ja" / "24h , 3d , 7d , 14d" / "NEU, 3 Tage , 7 Tage, 14 Tage"

:)

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.301 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline