categorie last update

More
7 years 23 hours ago #70822 by tonnick
Hello ! dans le template list item, j'aimerai qu'apparaisse une mention "last update : $date", l'idée étant d'afficher dans la vue la derniere modification faite sur les items contenus dans la catégorie. Mais je ne trouve cela nulle part dans les options. Est-ce un bout de code à ajouter qq part dans le template ?
merci de cotre aide !

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

More
7 years 22 hours ago #70823 by micker
Replied by micker on topic categorie last update
hello regarde dans les markup ou post it de ta catégorie c'est déjà implémenté
sinon il suffit de glissé le champs last modify dans la position de ton template

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
7 years 20 hours ago #70824 by tonnick
Replied by tonnick on topic categorie last update
ah oui j ai du mal m'exprimer. En fait, je voudrai que par exemple, sur les 3000 articles de ma categorie, quand j'en ai un de mis à jour, j'ai quelque part sur la liste item view une note du style :"Derniere mise à jour : la derniere date de modification d'un des articles de ma categorie"
Est-ce possible ?

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

More
7 years 17 hours ago #70826 by micker
Replied by micker on topic categorie last update
op la .... sans le codé pas possible

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
7 years 12 hours ago #70835 by ggppdk
Replied by ggppdk on topic categorie last update
Hello

a way to do this is to duplicte plugin
plugins/flexicontent/flexinotify/flexinotify.php

and then empty and modify method
Code:
function onAfterSaveItem( &$item, &$post ) { }

and inside it save your info in a new DB table like

catid , last_modified_date_any_item

then make a query inside your template file
e.g. inside
category.php


-- 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...

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

More
7 years 12 hours ago - 7 years 12 hours ago #70836 by ggppdk
Replied by ggppdk on topic categorie last update
Hello

forget my previous answer

simply execute a query:
Code:
$db = JFactory::getDbo(); $catid = JFactory::getApplication()->input->getInt('cid'); $query = 'SELECT modified FROM #__content AS c JOIN #__flexicontent_cats_item_relations AS rel ON c.id = rel.itemid WHERE rel.catid = ' . (int) $catid .' ORDER BY modified DESC LIMIT 1'; $db->setQuery($query); $most_recent_mod = $db->loadResult();


-- 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: 7 years 12 hours ago by ggppdk.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.440 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