Template dans la version 1.5.6 RC3

More
13 years 11 months ago #23110 by Chabi01
Bonjour,
Quelles sont les modifications à faire sur les templates entre la version 1.5.3 et la version 1.5.6 ?
Les templates que j'avais créé pour les catégories et les items ne fonctionnent plus à 100% (voir plus du tout)...
Merci,
Cordialement,

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

More
13 years 11 months ago #23113 by micker
dis comme ca c'est vague ...
ta modifier le template blog directement ta pas fait de duplication ??? erreur ...
sinon y la fonctionrenderonly qui est nouvelle ...
dis nous en plus sur ton template
a+

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 11 months ago #23116 by Chabi01
Les templates que j'ai sur un site réalisé il y a 2 ans sont parfaitement fonctionnels (créé en partant du tuto Netassopro). Le template est intégralement créé à la main et n'utilise pas le drag and drop dans l'admin des templates de Flexicontent.
Les champs sont appelés par des boucles :
Code:
<?php echo ($this->items[$i]->fields['nomdemonchamp']->display); ?>
ou avec des appels uniques de type :
Code:
<?php echo $this->fields['surface']->display; ?>
Le template est donc intégralement codé à la main pour obtenir une disposition exacte.
Le résultat est ici : www.clevacances-ain.fr

Hors, pour voir si il est possible de migrer, j'ai fait un test (sur un serveur de test :) en ugradant avec la version 1.5.6.
A partir de là, tous les templates partent en vrac alors que le site de test était opérationnel avant la mise à jour...
Après la mise à jour, de multiples problèmes apparaissent (alertes, notification, etc..) mais surtout je me retrouve avec des templates en bazar.
Une chose revenant souvent, j'ai plusieurs
Code:
Notice: Undefined property: stdClass::$display

La question est donc : avec la modification du code dans FC1.5.6, les appels sont-ils réalisés différemment dans les templates d'une part et d'autre part, y'a t'il des changements autre dans les templates à savoir ?

Merci.
Cordialement,

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

More
13 years 11 months ago #23119 by ggppdk
We made changes to the creation of fields to improve performance, particularly in category view.

It is easy to upgrade your templates, just see instructions here instructions:
www.flexicontent.org/documentati ... -v156.html

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

More
13 years 11 months ago #23134 by Chabi01
Hello,
Thanks for the help and the content in the FAQ :)
Despite of this, some little things remains wrong..
I will copy-paste part of my code to show you what remains wrong but i can start with this :
Since the upgrade, i have :
Code:
Notice: Object of class JDate could not be converted to int in /xxxx/xxxx/xxxx/plugins/system/nnframework/helpers/assignments/datetime.php on line 203

In my blog view, i haven't the image (and the link on the image to go to the article)...

In my item view, i coded many conditions to show or hide my field and now, i have many thing like :
"Notice: Undefined index:...." and "Invalid argument supplied for foreach()...." and "Undefined offset: 0...." : if needed, i can paste you the all code of the template...

Thanks again for your help :)
Regards,

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

More
13 years 11 months ago #23137 by micker
avec les champs codé a la mains il te faut les glisser dans renderonly dans l'admin du template
si tu n'as pas de renderonly
vas dans le xml de ton item et ta category et ajoute
<group>renderonly</group>
puis actualise l'admin de ton template
le mieux a l'avenir c'est de créer des position pour chaque champs même si tu dois créer 1 position pour 1 champs, ca te permet d'optimiser les temps d'execution des pages
a+

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 11 months ago #23139 by Chabi01
Ok, the code of the template can help :)

For the category item in blog list, i used the original code provide in FC1.5.3 slightly modified :
Code:
<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; ?>
The image shown was linked directly to the article.
Now i have no image...

In my item template, when i have a "Notice: Undefined index", it's ok : i put my field in a template position.

When i have a "Notice: Undefined offset: 0", that's because i did this : i use a field "extended weblink" and i used the field in an image for the link like this :
Code:
<?php // recup de l url de visite virtuelle $recupvarvis = $this->fields['visite_virtuelle']->value[0]; $visitvir = explode("\"",$recupvarvis); <td style="vertical-align: top; width: 50%; text-align: center;"><?php if ($this->fields['visite_virtuelle']->display!="") : ?> <?php echo "<a href=\"$visitvir[3]\" target=\"_blank\"> <img title=\"Visite virtuelle de cet hébergement...\" alt=\"Visite virtuelle de cet hébergement...\" src=\"http://www.clevacances-ain.com/images/stories/flexicontent/visites-virtuelles.jpg\" /> "; ?> <?php endif; ?> </td>
What is changed now (FC doesn't find the index...)

If you can enlight me on this point, it will be great :)
Thanks in advance for your help,
Regards

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

More
13 years 11 months ago #23176 by Chabi01
One point solved : the image in the category view
When the update is done, the image field is set in the template to "extract the image in the text" and i use the main image.
I change to "main image" and the image is shown.
I have to take a look to the template : only the first image is shown, the others lines are empty.
I keep going on the other point..

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

More
13 years 11 months ago #23210 by ggppdk
About the notice message:

Notice: Object of class JDate could not be converted to int in /xxxx/xxxx/xxxx/plugins/system/nnframework/helpers/assignments/datetime.php on line 203

maybe contact author of the plugin?

i think this plugin is used to control display of module by universal module manager?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

More
13 years 11 months ago #23218 by Chabi01
JDate is solved tonight : a plugin from "nonumber" was to reinstall to solved the notice.
Do you have clue about the image in category view ?
Thanks :)

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

Moderators: vistamediajoomlacornerggppdk
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
Save