Warning et Beta5

More
14 years 11 months ago #1134 by bsky92
Replied by bsky92 on topic Warning et Beta5
ben il est où?

euh, a priori je n'arrive pas à lier un fichier php, je crois que je vais demander un upgrade de cerveau au pere noel, le mien commence à dater :)

j essaie de comprendre et d'envoyer le fichier, ou carrément de refaire mon template

ps : je n'ai pas retouché à mes bdd depuis au moins trois semaines, que tu es médisant :p

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

More
14 years 11 months ago #1136 by bsky92
Replied by bsky92 on topic Warning et Beta5
bizarrement, le glisser deplacer fonctionne maintenant - je suis pourtant presque sure qu'il ne fonctionnait pas tout à l'heure - mais j'ai toujours ce problème de warning.

Je vais regarder les fichiers, mais voici le code d'un des category_item.php, au cas où
Code:
<?php /** * @version 1.5 beta 4 $Id: default_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; ?> <script type="text/javascript"> function tableOrdering( order, dir, task ) { var form = document.getElementById("adminForm"); form.filter_order.value = order; form.filter_order_Dir.value = dir; document.getElementById("adminForm").submit( task ); } </script> <?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->filters) : ?> <div class="fc_fright"> <?php 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 if ($this->items) : // routine to determine all used columns for this table $columns = array(); foreach ($this->items as $item) : if (isset($item->positions['table'])) : foreach ($item->positions['table'] as $pos) : if (!in_array($pos->name, $columns)) : $columns[$pos->name] = $item->fields[$pos->name]->label; endif; endforeach; endif; endforeach; ?> <table id="flexitable" class="flexitable" width="100%" border="0" cellspacing="0" cellpadding="0" summary="<?php echo $this->category->name; ?>"> <thead> <tr> <th>Titre VO</th> <th>Titre VF<br><br>Diffusion CBS<br><br>Derniere mise a jour</th> <th>Scenario<br><br>Realisation</th> <th>Synopsis<br><br>Avec</th> </tr> </thead> <tbody> <?php foreach ($this->items as $item) : ?> <tr> <?php if ($this->items[0]->fields) : ?> <td class="nom" > <?php if ($this->params->get('link_titles', 0)) : ?> [url=<?php echo JRoute::_(FlexicontentHelperRoute::getItemRoute($item->slug, $this->category->slug)); ?>]<?php echo $this->escape($item->title); ?>[/url] <?php else : echo $this->escape($item->title); endif; ?> </td> <td class="scenario" > <?php foreach ($item->fields as $field) : // step 1 : start the loop on the object if (in_array('Titre VF'.$tmpl, $field->positions)) : // step 2 : assigned to this group ?> <?php echo $field->display ? $field->display : '';?><br><br><?php endif; // end step 2 endforeach; // end step 1 ?> </td> <td class="scenario" > <?php foreach ($item->fields as $field) : // step 1 : start the loop on the object if (in_array('Scenario'.$tmpl, $field->positions)) : // step 2 : assigned to this group ?> <?php echo $field->display ? $field->display : '';?><br><br><?php endif; // end step 2 endforeach; // end step 1 ?> </td> <td class="enbref " > <?php foreach ($item->fields as $field) : // step 1 : start the loop on the object if (in_array('Synopsis'.$tmpl, $field->positions)) : // step 2 : assigned to this group ?> <?php echo $field->display ? $field->display : '';?><br><br><?php endif; // end step 2 endforeach; // end step 1 ?> </td> <?php endif; ?> </tr> <?php endforeach; ?> </tbody> </table> <?php endif; ?>

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

More
14 years 11 months ago #1138 by vistamedia
Replied by vistamedia on topic Warning et Beta5
Hello Brigitte,
Essaye ça (je n'ai pas testé)
Code:
<?php /** * @version 1.5 beta 4 $Id: default_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; ?> <script type="text/javascript"> function tableOrdering( order, dir, task ) { var form = document.getElementById("adminForm"); form.filter_order.value = order; form.filter_order_Dir.value = dir; document.getElementById("adminForm").submit( task ); } </script> <?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->filters) : ?> <div class="fc_fright"> <?php 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 if ($this->items) : ?> <table id="flexitable" class="flexitable" width="100%" border="0" cellspacing="0" cellpadding="0" summary="<?php echo $this->category->name; ?>"> <thead> <tr> <th>Titre VO</th> <th>Titre VF<br><br>Diffusion CBS<br><br>Derniere mise a jour</th> <th>Scenario<br><br>Realisation</th> <th>Synopsis<br><br>Avec</th> </tr> </thead> <tbody> <?php foreach ($this->items as $item) : ?> <tr> <td class="nom" > <?php if ($this->params->get('link_titles', 0)) : ?> [url=<?php echo JRoute::_(FlexicontentHelperRoute::getItemRoute($item->slug, $this->category->slug)); ?>]<?php echo $this->escape($item->title); ?>[/url] <?php else : echo $this->escape($item->title); endif; ?> </td> <td class="scenario" > <!-- BOF Titre VF cell --> <?php if (isset($item->positions['Titre VF'])) : ?> <?php foreach ($item->positions['Titre VF'] as $field) : ?> <?php echo $field->display ? $field->display : ''; ?><br /><br /> <?php endforeach; ?> <?php endif; ?> <!-- EOF Titre VF cell --> </td> <td class="scenario" > <!-- BOF Scenario cell --> <?php if (isset($item->positions['Scenario'])) : ?> <?php foreach ($item->positions['Scenario'] as $field) : ?> <?php echo $field->display ? $field->display : ''; ?><br /><br /> <?php endforeach; ?> <?php endif; ?> <!-- EOF Scenario cell --> </td> <td class="enbref" > <!-- BOF Synopsis cell --> <?php if (isset($item->positions['Synopsis'])) : ?> <?php foreach ($item->positions['Synopsis'] as $field) : ?> <?php echo $field->display ? $field->display : ''; ?><br /><br /> <?php endforeach; ?> <?php endif; ?> <!-- EOF Synopsis cell --> </td> </tr> <?php endforeach; ?> </tbody> </table> <?php endif; ?>

FLEXIcontent lead developer.
www.vistamedia.fr web agency and custom development.
www.joomla.fr co-administrator.
Please no PM for support request, use the forum for that!!!

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

More
14 years 11 months ago #1140 by bsky92
Replied by bsky92 on topic Warning et Beta5
merci, c'est super, juste la seconde colonne qui est vide, mais avec ton code je vais comprendre ce qu'il faut modifier et je devrais y arriver

J'étais en train de repartir de zéro, pour un tableau simple, avec un champ par colonne, c'est devenu d'une simplicité presque biblique, félicitations

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

More
14 years 11 months ago #1141 by vistamedia
Replied by vistamedia on topic Warning et Beta5
Et pourquoi elle est vide la colonne? Parce que tu as voulu que le nom de tes positions soit joli avec des majuscules et des espaces.
Mais le serveur lui, il n'aime pas les trucs jolis, alors qu'est ce qu'il fait?
Ben il te le dit :-)
Conclusion: à l'avenir les noms de positions dans le fichier XML (pas de majuscules et pas d'espaces). Même si les majuscules marchent, c'est une habitude à prendre.
Manu.

FLEXIcontent lead developer.
www.vistamedia.fr web agency and custom development.
www.joomla.fr co-administrator.
Please no PM for support request, use the forum for that!!!

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

More
14 years 11 months ago #1144 by bsky92
Replied by bsky92 on topic Warning et Beta5
c est la conclusion à laquelle j'étais arrivée, mais entretemps, la vraie vie, celle où les enfants et le mari mangent, est venue m'empecher d'avancer ....

j'essaierai de finir les corrections ce soir pour tester les autres nouveautés de la version

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

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