Titre pour Universal Content Module for FLEXIcontent

More
8 years 6 months ago #61929 by francisvds
Bonjour

Pourriez-vous me dire quelle variable ajouter dans le fichier news.php afin d'afficher le titre pour les pages les moins visitées.
Code:
$ord_titles = array( 'popular'=>JText::_( 'Les plus visités'), 'commented'=>JText::_( 'FLEXI_MOST_COMMENTED'), 'rated'=>JText::_( 'FLEXI_BEST_RATED' ), 'added'=> JText::_( 'FLEXI_RECENTLY_ADDED'), 'addedrev'=>JText::_( 'FLEXI_RECENTLY_ADDED_REVERSE' ), 'updated'=>JText::_( 'FLEXI_RECENTLY_UPDATED'), 'alpha'=> JText::_( 'FLEXI_ALPHABETICAL'), 'alpharev'=>JText::_( 'FLEXI_ALPHABETICAL_REVERSE'), 'id'=>JText::_( 'FLEXI_HIGHEST_ITEM_ID'), 'rid'=>JText::_( 'FLEXI_LOWEST_ITEM_ID'), 'catorder'=>JText::_( 'FLEXI_CAT_ORDER'), 'random'=>JText::_( 'FLEXI_RANDOM' ), 'field'=>JText::_( 'FLEXI_CUSTOM_FIELD' ), 0=>'Default' );

J'ai essayé avec 'less'=>JText::_( 'Les moins visités'), mais cela ne donne rien.

Dans la configuration de ce module, j'ai choisi d'afficher "les plus consultés en premier" (le titre s'affiche) et les moins consultés en premier (et là pas de titre)

D'avance merci pour votre réponse.
Cordialement.
Francis

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

More
8 years 6 months ago #61930 by micker
il ne faut pas hacker les fichjiers pour des langues ... sinon gare aux mises à jours
le mieux c'est de faire une substitution de langue depuis l'admin
extensions/langue/substitution
puis tu recherches la valeur que tu souhaite changer ... et voila c'est plus propre sans hacké du code
apres je viens de verifié il manque ce string je vais ouvrir une issue dans github
github.com/FLEXIcontent/flexicontent-cck/issues/540
a+

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
8 years 6 months ago #61931 by francisvds
Bonjour micker et merci pour ta réponse positive.

Je viens de suivre ton conseil et cela s'affiche bien en français.

J'attends donc la mise à jour pour le string manquant.

Bonne soirée.
Cordialement.
Francis

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

More
8 years 6 months ago - 8 years 6 months ago #61932 by ggppdk
Hello

The name of the index is:

'rhits'

- the following are missing and need to be added to news.php (and as language strings into the module language file): mod_flexicontent.ini
Code:
'rhits'=>JText::( 'FLEXI_UMOD_LESS_VIEWED'), 'author'=>JText::( 'FLEXI_UMOD_AUTHOR_ALPHABETICAL'), 'rauthor'=>JText::_( 'FLEXI_UMOD_AUTHOR_ALPHABETICAL_REVERSE'), 'published'=>JText::( 'FLEXI_UMOD_RECENTLY_PUBLISHED_SCHEDULED'), 'published_oldest'=>JText::( 'FLEXI_UMOD_OLDEST_PUBLISHED_SCHEDULED'), 'expired'=>JText::( 'FLEXI_UMOD_FLEXI_RECENTLY_EXPIRING_EXPIRED'), 'expired_oldest'=>JText::( 'FLEXI_UMOD_OLDEST_EXPIRING_EXPIRED_FIRST'),


-- 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 6 months ago by ggppdk.

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

More
8 years 6 months ago #61933 by ggppdk
Hello

ok this needed a little more work in order be complete, than just adding the 'rhits' case

- added all missing cases (7 as mention in previous post)

- also added all missing language strings with **more proper titles** (you can still customize with Joomla language manager overrides)

- updated all templates files: news.php, default.php, select.php, carousel.php

- added support for the case of "custom field" order to have title like
"Items (ordered by: Field-Label)"

- added better CSS for the **item list titles**

you may download this branch: (click download ZIP)
github.com/FLEXIcontent/flexicontent-cck/tree/3.0.x-stable

and install in via Joomla extension manager (in a testing website)

- or you may try to only download just the module folder and the module language file


-- 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
8 years 6 months ago #61937 by francisvds
Hello ggppdk and thank you for your reply.

I downloaded the file and do the installation.
After the variable substitutions, the titles are displayed well in French.
You can see the results on my website: www.milouchouchou.com

Thank you for this excellent work.

Have a good day.
Cordially.
Francis

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

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