Help to created a template ordering by flexidate

More
14 years 1 month ago #5874 by micker
Bonjour J'ai besoin d'aide pour créer un modèle de commande par flexidate
Je veux montrer que l'article whasn't passé un flexidate.
Mon flexidate est DFIN
ce mon modèle
Code:
<? Php / **  * @ Version 1.5 beta 5 $ Id: 10/10/2009 13:48:04 blog_items.php 85 vistamedia Z $  * @ Package Joomla  FLEXIcontent subpackage * @  * @ Copyright (C) 2009 Emmanuel Danan - http://www.vistamedia.fr  * @ Licence GNU / GPL v2  *  * FLEXIcontent est un travail dérivé de la composante excellente QuickFAQ  * @ Copyright (C) 2008 Christoph Lukes  * http://Www.schlu.net voir pour plus d'informations  *  * FLEXIcontent est distribué dans l'espoir qu'il sera utile,  * Mais SANS AUCUNE GARANTIE, sans même la garantie implicite de  * COMMERCIALISATION ou D'ADAPTATION À UN USAGE PARTICULIER. Voir l'  * Licence Publique Générale GNU pour plus de détails.  * / defined ('_JEXEC ") or die (" Accès restreint »); / / D'abord définir le nom du modèle tmpl = $ tmpl this->; ?> <? Php if ((($ this-> params-> get ('use_filters', 0)) & & filtres $ this->) | | ($ this-> params-> get ('use_search')) | | ( $ this-> params-> get ('show_alpha', 1))):?> action de formulaire <= "<? php echo $ this-> action;?>" method = "post" id = "adminForm"> <? Php if ((($ this-> params-> get ('use_filters', 0)) & & filtres $ this->) | | ($ this-> params-> get ('use_search'))):? > <div id="fc_filter" class="floattext"> <? Php if ($ this-> params-> get ('use_search')):?> class="fc_fleft"> <div <input type = "text" name = "filtre" id = "filtre" value = "<? php echo $ this-> listes de classe ['filtre'];?>" =" text_area "onchange =" document.getElementById ( «adminForm»). submit (); "/> <button onclick="document.getElementById('adminForm').submit();"> <? php echo JText:: _ ('FLEXI_GO');?> </ button> <button onclick="document.getElementById('filter').value='';document.getElementById('adminForm').submit();"> <? php echo JText:: _ ('FLEXI_RESET');?> </ button> </ Div> <? Php endif;?> <? Php if (($ this-> params-> get ('use_filters', 0)) & & filtres $ this->):?> class="fc_fright"> <div <? Php / * class="filter"> <span echo ''; echo 'Saison:. $ This-> filtres ['field24' html] ->; echo '</ span>'; * / foreach ($ this-> filtres $ filt): class="filter"> <span echo ''; echo $ html FILT->; echo '</ span>'; endforeach; ?> </ Div> <? Php endif;?> </ Div> <? Php endif;?> <? Php if ($ this-> params-> get ('show_alpha', 1)): echo $ this-> loadTemplate ('alpha'); endif; ?> <input type="hidden" name="option" value="com_flexicontent" /> <input type = "hidden" name = "filter_order" value = "<? php echo $ this-> listes filter_order ['];?>" /> <input type="hidden" name="filter_order_Dir" value="" /> <input type="hidden" name="view" value="category" /> <input type="hidden" name="letter" value="" id="alpha_index" /> <input type="hidden" name="task" value="" /> <input type = "hidden" name = "id" value = "<? php echo $ this-> Catégorie-> id;?>" /> </ Form> <? Php endif;?> <? Php articles = $ articles this->; Nombre de $ count = ($ items); if ($ count): ?> class="content"> <div <? Php leadnum $ = $ this-> params-> get ('lead_num', 2); leadnum $ = ($ leadnum> = $ count)? $ Count: $ leadnum; if ($ this-> limitstart == 0): ?> class="leadingblock"> <ul <? Php for ($ i = 0; $ i <$ leadnum; $ i + +): ?> <li> <div style="overflow: hidden;">     <? Php if ($ this-> params-> get ('show_title', 1)):?>     <h2 class="contentheading">    <? Php if ($ this-> params-> get ('link_titles', 0)):?>     <A href = "<? Php echo JRoute:: _ (FlexicontentHelperRoute:: limace getItemRoute ($ items [$ i] ->, $ this-> slug catégorie>)); ?>"><? php echo $ this- - Escape> ($ items [$ i] -> le titre);?> </ a>     <? Php     d'autre:    echo $ this-> escape ($ items [$ i] -> le titre);     endif;     ?>     </ H2>     <? Php endif;?>     <? Php     if ($ this-> params-> get ('lead_use_image', 1)):     if ($ this-> params-> get ('lead_image')): if (isset ($ items [$ i] -> champs [$ this-> params-> get ('lead_image')]-> valeur [0])): dir $ ($ i) = $ items [$ i] -> champs [$ this-> params-> get ('lead_image')]-> paramètres-> get (' dir '); la valeur $ ($ i) = unserialize ($ items [$ i] -> champs [$ this-> params-> get ('lead_image')]-> valeur [0]); valeur l'image $ ($ i) = $ ($ i) originalname [']; dir RCS $ ($ i) = $ ($ i). ($ this-> params-> get ('lead_image_size »)? '/'.$ This-> params-> get ('').'_' lead_image_size: «/ l_'). $ Image ($ i); d'autre: ''RCS $ ($ i) =; endif; RCS $ src = $ ($ i);     d'autre:     src = $ flexicontent_html:: extractimagesrc ($ items [$ i]);     endif;     w $ = '& w ='. $ This-> params-> get ('lead_width', 200);    h $ = '& h ='. $ This-> params-> get ('lead_height', 200);     aoe $ = '& AOE = 1';     $ q = "& q = 95;     $ Zc = $ this-> params-> get ('lead_method »)? '& Zc ='. $ This-> params-> get ('lead_method »):'';     w conf $ = $. h $. aoe $. q $. $ Zc;          if (! $ this-> params-> get ('lead_image_size')):     le pouce = $ JURI:: base (). "components / com_flexicontent / librairies / phpthumb / phpThumb.php? src = '. JURI:: base (src ).'/'.$ vrai. $ conf;     d'autre:     le pouce = $ src;     endif;          if ($ src): source / cas /     ?> <div class = "<image? php echo $ this-> params-> get ('lead_position»)?' right ':' left ';?> ">     <? Php if ($ this-> params-> get ('lead_link_image', 1)):?>     <A href = "<? Php echo JRoute:: _ (FlexicontentHelperRoute:: limace getItemRoute ($ items [$ i] ->, $ this-> slug catégorie>));?>" Class = "hasTip" title = "<? php echo JText:: _ ('FLEXI_READ_MORE_ABOUT'). '::'. $ this-> escape ($ items [$ i] -> le titre);?>"> <Img src = "<? Php echo $ pouce;?>" Alt = "<? Php echo $ this-> escape ($ items [$ i] -> le titre);?>" /> </ A> <? Php else:?> <Img src = "<? Php echo $ pouce;?>" Alt = "<? Php echo $ this-> escape ($ items [$ i] -> le titre);?>" /> <? Php endif;?> > <div Class="clear"> </ div> </ Div>     <? Php endif; ou la source de cas /     endif;     ?> <! - Bloc date BOF -> <? Php if (isset ($ items [$ i] -> positions date] ['')):?> class="date"> <div <? Php foreach ($ items [$ i] -> positions [date] »comme champ $):?> class="element"> <span <? Php if ($ label field->):?> <span class = "label field_ <? php echo $ nom du champ->; php echo $ ?>"><? étiquette du champ->;?> </ span> <? Php endif;?> <span class = "value field_ <? php echo $ nom du champ->; php echo $ ?>"><? affichage sur le terrain>;?> </ span> </ Span> <? Php endforeach;?> </ Div> <? Php endif;?> <! - Bloc date EOF -> <! - Bloc tarif BOF -> <? Php if (isset ($ items [$ i] -> postes] tarif ['')):?> class="tarif"> <div <? Php foreach ($ items [$ i] -> postes] tarif ["en tant que domaine de $):?> class="element"> <span <? Php if ($ label field->):?> <span class = "label field_ <? php echo $ nom du champ->; php echo $ ?>"><? étiquette du champ->;?> </ span> <? Php endif;?> <span class = "value field_ <? php echo $ nom du champ->; php echo $ ?>"><? affichage sur le terrain>;?> </ span> </ Span> <? Php endforeach;?> </ Div> <? Php endif;?> <! - Bloc de tarif EDF -> <p> <? Php if ($ this-> params-> get ('lead_strip_html', 1)): echo flexicontent_html:: introtext striptagsandcut ($ items [$ i] ->, $ this-> params-> get ('lead_cut_text', 400)); d'autre: echo $ articles [$ i] -> introtext; endif; ?> </ P> <! - BOF mp3 bloc -> <? Php if (isset ($ items [$ i] -> positions ['mp3'])):?> class="mp3"> <div <? Php foreach ($ items [$ i] -> positions ['mp3'] as $ sur le terrain):?> class="element"> <span <span class = "value field_ <? php echo $ nom du champ->; php echo $ ?>"><? affichage sur le terrain>;?> </ span> </ Span> <? Php endforeach;?> </ Div> <? Php endif;?> <! - EOF mp3 bloc -> <! - BOF bloc fnac -> <? Php if (isset ($ items [$ i] -> postes] Fnac ['')):?> id="fnac"> <div <? Php foreach ($ items [$ i] -> postes] Fnac ['$ que sur le terrain):?> class="element"> <span <span class = "value field_ <? php echo $ nom du champ->; php echo $ ?>"><? affichage sur le terrain>;?> </ span> </ Span> <? Php endforeach;?> </ Div> <? Php endif;?> </ Div> </ Li> <? Php endfor;?> </ Ul> <? Php endif; if ($ count> leadnum $ | | $ this-> limitstart! = 0): ?> <Ul class = "<introblock? Php echo ($ this-> params-> get ('intro_cols', 2) == 1)? 'Un': 'deux';?>"> <? Php for ($ i = ($ this-> limitstart == 0? $ Leadnum: 0); $ i <$ count; $ i + +):?> <Li class = "<? Php echo (($ this-> limitstart == 0)? ($ I + leadnum $)% 2: $ i% 2)? «Même»: «bizarres»;?> "> <div style="overflow: hidden;">     <? Php if ($ this-> params-> get ('show_title', 1)):?>     <h2 class="contentheading">     <? Php if ($ this-> params-> get ('link_titles', 0)):?>     <A href = "<? Php echo JRoute:: _ (FlexicontentHelperRoute:: limace getItemRoute ($ items [$ i] ->, $ this-> slug catégorie>)); ?>"><? php echo $ this- - Escape> ($ items [$ i] -> le titre);?> </ a>     <? Php     d'autre:     echo $ this-> escape ($ items [$ i] -> le titre);     endif;     ?>     </ H2>     <? Php endif;?>     <? Php     if ($ this-> params-> get ('intro_use_image', 1)):     if ($ this-> params-> get ('intro_image')): if (isset ($ items [$ i] -> champs [$ this-> params-> get ('intro_image')]-> valeur [0])): dir $ ($ i) = $ items [$ i] -> champs [$ this-> params-> get ('intro_image')]-> paramètres-> get (' dir '); la valeur $ ($ i) = unserialize ($ items [$ i] -> champs [$ this-> params-> get ('intro_image')]-> valeur [0]); valeur l'image $ ($ i) = $ ($ i) originalname [']; dir RCS $ ($ i) = $ ($ i). ($ this-> params-> get ('intro_image_size »)?'/'.$ this-> params-> get (' intro_image_size').'_' : '/ l_'). $ image ($ i); d'autre: ''RCS $ ($ i) =; endif; RCS $ src = $ ($ i);     d'autre:     src = $ flexicontent_html:: extractimagesrc ($ items [$ i]);     endif;     w $ = '& w ='. $ This-> params-> get ('intro_width', 200);    h $ = '& h ='. $ This-> params-> get ('intro_height', 200);     aoe $ = '& AOE = 1';     $ q = "& q = 95;     $ Zc = $ this-> params-> get ('intro_method »)? '& Zc ='. $ This-> params-> get ('intro_method »):'';     w conf $ = $. h $. aoe $. q $. $ Zc;          if (! $ this-> params-> get ('intro_image_size')):     le pouce = $ JURI:: base (). "components / com_flexicontent / librairies / phpthumb / phpThumb.php? src = '. JURI:: base (src ).'/'.$ vrai. $ conf;     d'autre:     le pouce = $ src;     endif;          if ($ src): source / cas /     ?> <div class = "<image? php echo $ this-> params-> get ('intro_position»)?' right ':' left ';?> ">     <? Php if ($ this-> params-> get ('intro_link_image', 1)):?>     <A href = "<? Php echo JRoute:: _ (FlexicontentHelperRoute:: limace getItemRoute ($ items [$ i] ->, $ this-> slug catégorie>));?>" Class = "hasTip" title = "<? php echo JText:: _ ('FLEXI_READ_MORE_ABOUT'). '::'. $ this-> escape ($ items [$ i] -> le titre);?>"> <Img src = "<? Php echo $ pouce;?>" Alt = "<? Php echo $ this-> escape ($ items [$ i] -> le titre);?>" /> </ A> <? Php else:?> <Img src = "<? Php echo $ pouce;?>" Alt = "<? Php echo $ this-> escape ($ items [$ i] -> le titre);?>" /> <? Php endif;?> > <div Class="clear"> </ div> </ Div>     <? Php endif; ou la source de cas /     endif;     ?> <! - Bloc date BOF -> <? Php if (isset ($ items [$ i] -> positions date] ['')):?> class="date"> <div <? Php foreach ($ items [$ i] -> positions [date] »comme champ $):?> class="element"> <span <? Php if ($ label field->):?> <span class = "label field_ <? php echo $ nom du champ->; php echo $ ?>"><? étiquette du champ->;?> </ span> <? Php endif;?> <span class = "value field_ <? php echo $ nom du champ->; php echo $ ?>"><? affichage sur le terrain>;?> </ span> </ Span> <? Php endforeach;?> </ Div> <? Php endif;?> <! - EOF ci-description-line1 bloc -> <p> <? Php if ($ this-> params-> get ('lead_strip_html', 1)): echo flexicontent_html:: introtext striptagsandcut ($ items [$ i] ->, $ this-> params-> get ('lead_cut_text', 400)); d'autre: echo $ articles [$ i] -> introtext; endif; ?> </ P> <! - BOF mp3 bloc -> <? Php if (isset ($ items [$ i] -> positions ['mp3'])):?> class="mp3"> <div <? Php foreach ($ items [$ i] -> positions ['mp3'] as $ sur le terrain):?> class="element"> <span <span class = "value field_ <? php echo $ nom du champ->; php echo $ ?>"><? affichage sur le terrain>;?> </ span> </ Span> <? Php endforeach;?> </ Div> <? Php endif;?> <! - EOF mp3 bloc -> <! - Bloc tarif BOF -> <? Php if (isset ($ items [$ i] -> postes] tarif ['')):?> class="tarif"> <div <? Php foreach ($ items [$ i] -> postes] tarif ["en tant que domaine de $):?> class="element"> <span <? Php if ($ label field->):?> <span class = "label field_ <? php echo $ nom du champ->; php echo $ ?>"><? étiquette du champ->;?> </ span> <? Php endif;?> <span class = "value field_ <? php echo $ nom du champ->; php echo $ ?>"><? affichage sur le terrain>;?> </ span> </ Span> <? Php endforeach;?> </ Div> <? Php endif;?> <! - Bloc de tarif EDF -> <! - BOF bloc fnac -> <? Php if (isset ($ items [$ i] -> postes] Fnac ['')):?> class="fnac"> <div <? Php foreach ($ items [$ i] -> postes] Fnac ['$ que sur le terrain):?> class="element"> <span <span class = "value field_ <? php echo $ nom du champ->; php echo $ ?>"><? affichage sur le terrain>;?> </ span> </ Span> <? Php endforeach;?> </ Div> <? Php endif;?> </ Div> </ Li> <? Php endfor;?> </ Ul> <? Php endif;?> </ Div> <? Php else:?> <div class="noitems"> <? php echo JText:: _ ('FLEXI_NO_ITEMS_CAT');?> </ div> <? Php endif;?>
I think
[code]$ now = date ("Y-m-d");
$ = $ Enddate domaines point-> -> Affichage;
explode_Dfin $ = explode (".",$ enddate);
$ Commande = $ maintenant => $ explode_Dfin; [/ code]
afin de montrer que l'article Comment DFIN n'est pas passé
Il est correct?
Comment insérer dans mon template?
Merci pour toute aide!

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
14 years 1 month ago #5886 by Olinad
The articles are ordered when they are retrieved from the database, but there's no database query in that code :?

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

More
14 years 1 month ago #5887 by micker
you have an idea to do this request ?
thanks for all

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
14 years 1 month ago #5920 by micker
hello i test on this template
Code:
<?php /** * @version 1.5 beta 5 $Id: blog_items.php 85 2009-10-10 13:48:04Z vistamedia $ * @package Joomla * @subpackage FLEXIcontent * @copyright (C) 2009 Emmanuel Danan - www.vistamedia.fr * @license GNU/GPL v2 * * FLEXIcontent is a derivative work of the excellent QuickFAQ component * @copyright (C) 2008 Christoph Lukes * see www.schlu.net for more information * * FLEXIcontent is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ defined( '_JEXEC' ) or die( 'Restricted access' ); // first define the template name $tmpl = $this->tmpl; ?> <?php if ((($this->params->get('use_filters', 0)) && $this->filters) || ($this->params->get('use_search')) || ($this->params->get('show_alpha', 1))) : ?> <form action="<?php echo $this->action; ?>" method="post" id="adminForm"> <?php if ((($this->params->get('use_filters', 0)) && $this->filters) || ($this->params->get('use_search'))) : ?> <div id="fc_filter" class="floattext"> <?php if ($this->params->get('use_search')) : ?> <div class="fc_fleft"> <input type="text" name="filter" id="filter" value="<?php echo $this->lists['filter'];?>" class="text_area" onchange="document.getElementById('adminForm').submit();" /> <button onclick="document.getElementById('adminForm').submit();"><?php echo JText::_( 'FLEXI_GO' ); ?></button> <button onclick="document.getElementById('filter').value='';document.getElementById('adminForm').submit();"><?php echo JText::_( 'FLEXI_RESET' ); ?></button> </div> <?php endif; ?> <?php if (($this->params->get('use_filters', 0)) && $this->filters) : ?> <div class="fc_fright"> <?php /* echo '<span class="filter">'; echo 'Saison: ' . $this->filters['field24']->html; echo '</span>'; */ foreach ($this->filters as $filt) : echo '<span class="filter">'; echo $filt->html; echo '</span>'; endforeach; ?> </div> <?php endif; ?> </div> <?php endif; ?> <?php if ($this->params->get('show_alpha', 1)) : echo $this->loadTemplate('alpha'); endif; ?> <input type="hidden" name="option" value="com_flexicontent" /> <input type="hidden" name="filter_order" value="<?php echo $this->lists['filter_order']; ?>" /> <input type="hidden" name="filter_order_Dir" value="" /> <input type="hidden" name="view" value="category" /> <input type="hidden" name="letter" value="" id="alpha_index" /> <input type="hidden" name="task" value="" /> <input type="hidden" name="id" value="<?php echo $this->category->id; ?>" /> </form> <?php endif; ?> <?php $items = $this->items; $count = count($items); if ($count) : ?> <div class="content"> <?php $leadnum = $this->params->get('lead_num', 2); $leadnum = ($leadnum >= $count) ? $count : $leadnum; if ($this->limitstart == 0) : ?> <ul class="leadingblock"> <?php for ($i=0; $i<$leadnum; $i++) : ?> <li> <div style="overflow: hidden;"> <?php if ($this->params->get('show_title', 1)) : ?> <h2 class="contentheading"> <?php if ($this->params->get('link_titles', 0)) : ?> [url=<?php echo JRoute::_(FlexicontentHelperRoute::getItemRoute($items[$i]->slug, $this->category->slug)); ?>]<?php echo $this->escape($items[$i]->title); ?>[/url] <?php else : echo $this->escape($items[$i]->title); endif; ?> </h2> <?php endif; ?> <?php if ($this->params->get('lead_use_image', 1)) : if ($this->params->get('lead_image')) : if (isset($items[$i]->fields[$this->params->get('lead_image')]->value[0])) : $dir{$i} = $items[$i]->fields[$this->params->get('lead_image')]->parameters->get('dir'); $value{$i} = unserialize($items[$i]->fields[$this->params->get('lead_image')]->value[0]); $image{$i} = $value{$i}['originalname']; $scr{$i} = $dir{$i}.($this->params->get('lead_image_size') ? '/'.$this->params->get('lead_image_size').'_' : '/l_').$image{$i}; else : $scr{$i} = ''; endif; $src = $scr{$i}; else : $src = flexicontent_html::extractimagesrc($items[$i]); endif; $w = '&w=' . $this->params->get('lead_width', 200); $h = '&h=' . $this->params->get('lead_height', 200); $aoe = '&aoe=1'; $q = '&q=95'; $zc = $this->params->get('lead_method') ? '&zc=' . $this->params->get('lead_method') : ''; $conf = $w . $h . $aoe . $q . $zc; if (!$this->params->get('lead_image_size')) : $thumb = JURI::base().'components/com_flexicontent/librairies/phpthumb/phpThumb.php?src='.JURI::base(true).'/'.$src.$conf; else : $thumb = $src; endif; if ($src) : // case source ?> <div class="image<?php echo $this->params->get('lead_position') ? ' right' : ' left'; ?>"> <?php if ($this->params->get('lead_link_image', 1)) : ?> <a href="<?php echo JRoute::_(FlexicontentHelperRoute::getItemRoute($items[$i]->slug, $this->category->slug)); ?>" class="hasTip" title="<?php echo JText::_( 'FLEXI_READ_MORE_ABOUT' ) . '::' . $this->escape($items[$i]->title); ?>"> <img src="<?php echo $thumb; ?>" alt="<?php echo $this->escape($items[$i]->title); ?>" /> <?php else : ?> <img src="<?php echo $thumb; ?>" alt="<?php echo $this->escape($items[$i]->title); ?>" /> <?php endif; ?> <div class="clear"></div> </div> <?php endif; // case source endif; ?> <!-- BOF date block --> <?php if (isset($items[$i]->positions['date'])) : ?> <div class="date"> <?php foreach ($items[$i]->positions['date'] as $field) : ?> <span class="element"> <?php if ($field->label) : ?> <span class="label field_<?php echo $field->name; ?>"><?php echo $field->label; ?></span> <?php endif; ?> <span class="value field_<?php echo $field->name; ?>"><?php echo $field->display; ?></span> </span> <?php endforeach; ?> </div> <?php endif; ?> <!-- EOF date block --> <!-- BOF tarif block --> <?php if (isset($items[$i]->positions['tarif'])) : ?> <div class="tarif"> <?php foreach ($items[$i]->positions['tarif'] as $field) : ?> <span class="element"> <?php if ($field->label) : ?> <span class="label field_<?php echo $field->name; ?>"><?php echo $field->label; ?></span> <?php endif; ?> <span class="value field_<?php echo $field->name; ?>"><?php echo $field->display; ?></span> </span> <?php endforeach; ?> </div> <?php endif; ?> <!-- EOF tarif block --> <p> <?php if ($this->params->get('lead_strip_html', 1)) : echo flexicontent_html::striptagsandcut( $items[$i]->introtext, $this->params->get('lead_cut_text', 400) ); else : echo $items[$i]->introtext; endif; ?> </p> <!-- BOF mp3 block --> <?php if (isset($items[$i]->positions['mp3'])) : ?> <div class="mp3"> <?php foreach ($items[$i]->positions['mp3'] as $field) : ?> <span class="element"> <span class="value field_<?php echo $field->name; ?>"><?php echo $field->display; ?></span> </span> <?php endforeach; ?> </div> <?php endif; ?> <!-- EOF mp3 block --> <!-- BOF fnac block --> <?php if (isset($items[$i]->positions['fnac'])) : ?> <div id="fnac"> <?php foreach ($items[$i]->positions['fnac'] as $field) : ?> <span class="element"> <span class="value field_<?php echo $field->name; ?>"><?php echo $field->display; ?></span> </span> <?php endforeach; ?> </div> <?php endif; ?> </div> </li> <?php endfor; ?> </ul> <?php endif; if ($count > $leadnum || $this->limitstart != 0) : ?> <ul class="introblock <?php echo ($this->params->get('intro_cols', 2) == 1) ? 'one' : 'two'; ?>"> <?php for ($i=($this->limitstart == 0 ? $leadnum : 0 ); $i<$count; $i++) : ?> <li class="<?php echo (($this->limitstart == 0) ? ($i+$leadnum)%2 : $i%2) ? 'even' : 'odd'; ?>"> <div style="overflow: hidden;"> <?php if ($this->params->get('show_title', 1)) : ?> <h2 class="contentheading"> <?php if ($this->params->get('link_titles', 0)) : ?> [url=<?php echo JRoute::_(FlexicontentHelperRoute::getItemRoute($items[$i]->slug, $this->category->slug)); ?>]<?php echo $this->escape($items[$i]->title); ?>[/url] <?php else : echo $this->escape($items[$i]->title); endif; ?> </h2> <?php endif; ?> <?php if ($this->params->get('intro_use_image', 1)) : if ($this->params->get('intro_image')) : if (isset($items[$i]->fields[$this->params->get('intro_image')]->value[0])) : $dir{$i} = $items[$i]->fields[$this->params->get('intro_image')]->parameters->get('dir'); $value{$i} = unserialize($items[$i]->fields[$this->params->get('intro_image')]->value[0]); $image{$i} = $value{$i}['originalname']; $scr{$i} = $dir{$i}.($this->params->get('intro_image_size') ? '/'.$this->params->get('intro_image_size').'_' : '/l_').$image{$i}; else : $scr{$i} = ''; endif; $src = $scr{$i}; else : $src = flexicontent_html::extractimagesrc($items[$i]); endif; $w = '&w=' . $this->params->get('intro_width', 200); $h = '&h=' . $this->params->get('intro_height', 200); $aoe = '&aoe=1'; $q = '&q=95'; $zc = $this->params->get('intro_method') ? '&zc=' . $this->params->get('intro_method') : ''; $conf = $w . $h . $aoe . $q . $zc; if (!$this->params->get('intro_image_size')) : $thumb = JURI::base().'components/com_flexicontent/librairies/phpthumb/phpThumb.php?src='.JURI::base(true).'/'.$src.$conf; else : $thumb = $src; endif; if ($src) : // case source ?> <div class="image<?php echo $this->params->get('intro_position') ? ' right' : ' left'; ?>"> <?php if ($this->params->get('intro_link_image', 1)) : ?> <a href="<?php echo JRoute::_(FlexicontentHelperRoute::getItemRoute($items[$i]->slug, $this->category->slug)); ?>" class="hasTip" title="<?php echo JText::_( 'FLEXI_READ_MORE_ABOUT' ) . '::' . $this->escape($items[$i]->title); ?>"> <img src="<?php echo $thumb; ?>" alt="<?php echo $this->escape($items[$i]->title); ?>" /> <?php else : ?> <img src="<?php echo $thumb; ?>" alt="<?php echo $this->escape($items[$i]->title); ?>" /> <?php endif; ?> <div class="clear"></div> </div> <?php endif; // case source endif; ?> <!-- BOF date block --> <?php if (isset($items[$i]->positions['date'])) : ?> <div class="date"> <?php foreach ($items[$i]->positions['date'] as $field) : ?> <span class="element"> <?php if ($field->label) : ?> <span class="label field_<?php echo $field->name; ?>"><?php echo $field->label; ?></span> <?php endif; ?> <span class="value field_<?php echo $field->name; ?>"><?php echo $field->display; ?></span> </span> <?php endforeach; ?> </div> <?php endif; ?> <!-- EOF above-description-line1 block --> <p> <?php if ($this->params->get('lead_strip_html', 1)) : echo flexicontent_html::striptagsandcut( $items[$i]->introtext, $this->params->get('lead_cut_text', 400) ); else : echo $items[$i]->introtext; endif; ?> </p> <!-- BOF mp3 block --> <?php if (isset($items[$i]->positions['mp3'])) : ?> <div class="mp3"> <?php foreach ($items[$i]->positions['mp3'] as $field) : ?> <span class="element"> <span class="value field_<?php echo $field->name; ?>"><?php echo $field->display; ?></span> </span> <?php endforeach; ?> </div> <?php endif; ?> <!-- EOF mp3 block --> <!-- BOF tarif block --> <?php if (isset($items[$i]->positions['tarif'])) : ?> <div class="tarif"> <?php foreach ($items[$i]->positions['tarif'] as $field) : ?> <span class="element"> <?php if ($field->label) : ?> <span class="label field_<?php echo $field->name; ?>"><?php echo $field->label; ?></span> <?php endif; ?> <span class="value field_<?php echo $field->name; ?>"><?php echo $field->display; ?></span> </span> <?php endforeach; ?> </div> <?php endif; ?> <!-- EOF tarif block --> <!-- BOF fnac block --> <?php if (isset($items[$i]->positions['fnac'])) : ?> <div class="fnac"> <?php foreach ($items[$i]->positions['fnac'] as $field) : ?> <span class="element"> <span class="value field_<?php echo $field->name; ?>"><?php echo $field->display; ?></span> </span> <?php endforeach; ?> </div> <?php endif; ?> </div> </li> <?php endfor; ?> </ul> <?php endif; ?> </div> <?php else : ?> <div class="noitems"><?php echo JText::_( 'FLEXI_NO_ITEMS_CAT' ); ?></div> <?php endif; ?>
in this code
Code:
<?php $items = $this->items; $count = count($items); if ($count) : ?>
i try to do a new count ..
Code:
?php $now = date("Y-m-d"); $enddate = $item->fields['Dfin']->display; if ($enddate <= $now) { echo $items = $this->items; $count = count($items); if ($count); ?>
but it's doesn't work (normaly i am just try to code)... any idea ...
Thanks

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
14 years 4 weeks ago #6155 by micker
hello olinad, it possible to do an sql request in order to select by date in date field flexicontent in template ?
Thanks for all

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
14 years 3 weeks ago #6167 by Olinad
I don't know if that depends on the template or is done before, we should ask Emmanuel

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

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