Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Public Forum / Main Forum / champ description sur 2 lignes

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

× OLD Forum post could be checked here : forum.joomprod.com

champ description sur 2 lignes

More
10 years 10 months ago #17476 by ferhatyanis
champ description sur 2 lignes was created by ferhatyanis
Avez vous une solution pour bloquer le champ description uniquement sur 2 lignes dans l' affichage dans un module :
The following user(s) said Thank You: adarr
More
10 years 10 months ago - 10 years 10 months ago #17491 by ferhatyanis
Replied by ferhatyanis on topic champ description sur 2 lignes
Avez vous une solution pour bloquer le champ description uniquement sur 2 lignes dans l' affichage dans un module :

NE MARCHE PLUS :
Vous pouvez jouer avec le CSS avec des choses comme :
daker.me/snippets/truncate-multiline-tex...ellipsis-in-css.html et lime-clamp a 2.

bonjour nous avons copié le code :
.multiline-ellipsis {
display: block;
display: -webkit-box;
max-width: 400px;
height: 109.2px;
margin: 0 auto;
font-size: 26px;
line-height: 1.4;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
dans le fichier css de notre template et ça marche ...Merci

dans le fichier /css/template-tomato.css' en allant directement depuis le backen
extention-->template >(sous menu "tempalte en dessous de style) -template --Sj_financial Détails et fichiers --> css --> template -tomato.css et j'ai rajouté c code

Bonne nouvelle , pour la perte de l'affichage sur deux lignes du champs description , nous avons copier coller le fichier "horizontal.php" de notre site en ads 3.0.3
Last edit: 10 years 10 months ago by ferhatyanis.
The following user(s) said Thank You: adarr
More
10 years 10 months ago - 10 years 10 months ago #17495 by ferhatyanis
Replied by ferhatyanis on topic champ description sur 2 lignes
ceci devrait marcher :

J'ai ajouter la prise en charge de la description dans le module 'Derniers coups de main demandés'.
La description est limitée à 50 caractères.

Cette modification fonctionnera pour tout les modules de type 'mod_adsmanager_ads' et uniquement pour le champs nommé 'ad_text'.

Vous pouvez voir le code que j'ai ajouter dans 'modules/mod_adsmanager_ads/tmpl/horizontal.php' ligne 68 à 74:
if($fieldname == 'ad_text') {
$af_text = '';
if (strlen($value)>20) {
$af_text = "[...]";
}
$value = JString::substr($value, 0, 20).$af_text;
$value = str_replace(array("\r\n", "\n", "\r"), " ", $value);
$value = str_replace(array("<br/>", "<br>"), " ", $value);
}

Le 20 dans ce code correspond à la limite du nombre de caractère.

Si vous le pouvez, créez un override de la vue horizontal.php pour ne pas risquer d'écraser la modification si vous avez besoin de réinstaller AdsManager.

ATTENTION BIEN COPIER LES MODIFICATION à partir de la ligne 68 c'est à dire copier coller les modif entre $value ...et echo"<div>"
Last edit: 10 years 10 months ago by ferhatyanis.
The following user(s) said Thank You: adarr
Moderators: perry
Time to create page: 0.055 seconds
Powered by Kunena Forum