Articles de la catégorie qui se deplient

More
12 years 1 month ago #29762 by seabird
Oui oui je te rassure, je travaille sur une copie du template blog.
Merci pour netassopro, je vais jeter un oeil..

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

More
12 years 4 weeks ago #29968 by seabird
Bonjour,

J'ai fait quelque-chose de plus propre. Je poste le principe pour ceux que cela interresse.
Code:
<script language="javascript" type="text/javascript"> $(document).ready(function(){ $('div.description').hide(); $('.titre').each(function (){ { $(this).click(function(){ var id = 'div' + $(this).attr('data-article'); $('.description').not($('div#' + id)).slideUp('fast'); $('div#' + id).slideToggle(); }); } }) } ); </script>

puis par exemple
Code:
<a class="titre" data-article="<?php echo $this->items[$i]->id; ?>" href="javascript:void(0)">Titre 1 bla bla bla <div class="">test</div> <div class="titre" data-article="<?php echo $this->items[$i]->id; ?>">[url=javascript:void(0)]Lire la suite[/url]</div> <div class="description" id="div<?php echo $this->items[$i]->id ?>" > bla bla bla bla bla bla bla blabla bla bla bla </div> <br/> <a class="titre" data-article="<?php echo $this->items[$i]->id; ?>" href="javascript:void(0)">Titre 2 bla bla bla <div class="titre" data-article="<?php echo $this->items[$i]->id; ?>">[url=javascript:void(0)]Lire la suite[/url]</div> <div class="description" id="div<?php echo $this->items[$i]->id ?>" > bla bla bla bla bla bla bla blabla bla bla bla </div>

Eric

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

More
12 years 4 weeks ago #29990 by micker
super merci !

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
12 years 4 weeks ago #29991 by seabird
Mais de rien, c'est comme ça que l'on progresse ;) ...

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

More
12 years 4 weeks ago #30039 by seabird
Bonjour,

Petit rectificatif, il existe un conflit javascript avec jquery (notamment au niveau des votes) pour la fonction que j'ai donnée.
La remplacer par celle-ci
Code:
var $j = jQuery.noConflict(); $j(document).ready(function(){ $j('div.description').hide(); $j('.titre').each(function (){ { $j(this).click(function(){ var id = 'div' + $j(this).attr('data-article'); $j('.description').not($j('div#' + id)).slideUp('fast'); $j('div#' + id).slideToggle(); }); } }) } );

Eric

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

More
12 years 3 weeks ago #30051 by micker
genial merci du partage

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.

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