La mise à jour pour les nuls

More
15 years 1 week 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
15 years 1 week 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
15 years 1 week 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
13 years 3 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.

More
13 years 3 months ago #17739 by micker
Si tuna.pas. Toucher aux défaut et blog pas de soucis

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
13 years 3 months ago #17744 by matiliana
J'ai créé deux templates supplémentaires

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

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