La mise à jour pour les nuls

More
14 years 5 months ago #414 by Doywan
Oki c'est bien ce que j'avais compris, mais j'dois pas être clair aujourd'hui. :p

Dev et rédacteur en chef Fonky les bons tuyaux
www.fonkyt.com - magasine online de l'événementiel culturel et loisirs d'Orléans et son agglO

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

More
14 years 5 months ago #430 by micker
hello
pour moi aussi la migration c'est super bien passé !!!!
mais j'ai bossé sur des templates de tableaux et la je suis larguer
le item.php et item.xml dans un dossier template ok
maintenant
j'ai mis
alpha.php
categrory.php
items.php
dans le dossier template mais depuis l'admin rien ...
que me manque t il a faire ?
Merci d'avance

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 5 months ago #432 by vistamedia
Hello,
Un dossier template peut contenir deux vues item et/ou category
Ton dossier template peut tout à fait n'en contenir qu'une seule :)
Pour ce qui concerne la vue category tu dois avoir au minimum:
Code:
category.php category.xml
Si tu as un (ou plusieurs) sous templates, ce qui est ton cas avec alpha la structure sera:
Code:
category_alpha.php category.php category.xml
C'est exactement le même principe qu'avant sauf que ce qui les distingue n'est plus le nom du fichier mais le nom du dossier dans lequel il sont rangé.
Vous avez tous compris le gros avantage de cette méthode: on peut maintenant dupliquer un template en copiant et renomant un répertoire existant.
Voila.
Have fun,
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 5 months ago #433 by micker
c'est vrai c'est super par contree mon ancien tableau n'as plus les même appels ....
un coup de mains pour changer ceci ?
Code:
<?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> <?php if ($this->items[0]->fields) : ?> <td> <?php foreach ($item->fields as $field) : // step 1 : start the loop on the object if (in_array('Genre'.$tmpl, $field->positions)) : // step 2 : assigned to this group ?> <?php echo $field->display ? $field->display : ''; endif; // end step 2 endforeach; // end step 1 ?> </td>

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
14 years 5 months ago #436 by micker
hello alors en fait ca marche il fallait remettre les champs dans le template depuis l'admin
peut on me valider le code pour prévoir en cas de mise à jour ?
Code:
<table id="flexitable" class="flexitable" width="100%" border="0" cellspacing="0" cellpadding="0" summary="<?php echo $this->category->name; ?>"> <thead> <tr> <th id="flexi_title" scope="col">Artistes</th> <th scope="col">Genres</th> <th scope="col">Dates</th> <th scope="col">Horaires</th> <th scope="col">Prix</th> </tr> </thead> <tbody> <?php foreach ($this->items as $item) : ?> <tr class="sectiontableentry"> <!-- BOF item title --> <th scope="row" class="table-titles"> <?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; ?> </th> <!-- BOF item title --> <!-- BOF fields --> <?php foreach ($columns as $name => $label) : ?> <td><?php echo isset($item->positions['table']->{$name}->display) ? $item->positions['table']->{$name}->display : ''; ?></td> <?php endforeach; ?> <!-- EOF fields --> <td> <?php foreach ($item->fields as $field) : // step 1 : start the loop on the object if (in_array('Genre'.$tmpl, $field->positions)) : // step 2 : assigned to this group ?> <?php echo $field->display ? $field->display : ''; endif; // end step 2 endforeach; // end step 1 ?> </td> <td> <?php foreach ($item->fields as $field) : // step 1 : start the loop on the object if (in_array('Date'.$tmpl, $field->positions)) : // step 2 : assigned to this group ?> <?php echo $field->display ? $field->display : ''; endif; // end step 2 endforeach; // end step 1 ?> </td> <td> <?php foreach ($item->fields as $field) : // step 1 : start the loop on the object if (in_array('Heure'.$tmpl, $field->positions)) : // step 2 : assigned to this group ?> <?php echo $field->display ? $field->display : ''; endif; // end step 2 endforeach; // end step 1 ?> </td> <td> <?php foreach ($item->fields as $field) : // step 1 : start the loop on the object if (in_array('Tarif'.$tmpl, $field->positions)) : // step 2 : assigned to this group ?> <?php echo $field->display ? $field->display : ''; endif; // end step 2 endforeach; // end step 1 ?> </td> </tr> <?php endforeach; ?> </tbody>
Enore merci c'est du pain benni cette version

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 8 months ago #17738 by matiliana
Bonjour,
lors de la mise à jour de flexicontent doit-on sauvegarder les templates pour éviter de les écraser?
merci pour votre aide

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

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