valeur pas recuperer dans article - list select

More
9 years 6 months ago #49833 by m.raulin
Bonjour à tous,

Je suis entrain de créer un template pour une vue d'article. Par contre la valeur de la liste déroulante ne s'affiche pas dans mon article en front end.
J'ai crée un template "ateliers_tic".
J'ai crée les positions dans le fichier item.xml

Dans Flexicontent de joomla, j'ai crée un type d'article rataché à mon template et ensuite j'ai crée un champ select list avec :
- la recherche simple et filtre activée
- la recherche avancée et filtre activée
- j'ai choisi mon type associé
- j'ai indiqué les différentes valeurs :
3::Vidéo%%2::Photo%%
1::Perfectionnement%% 0::Initiation%%
- j'ai également choisi d'afficher la valeur,
- j'ai aussi configuré les filtres pour une vue de catégorie

Dans le fichier item.php, j'ai indiqué :
CODE: SELECT ALL
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
// first define the template name
$tmpl = $this->tmpl;
?>
<div id="flexicontent" class="flexicontent item<?php echo $this->item->id; ?> type<?php echo $this->item->type_id; ?>">

<!-- BOF buttons -->
<p class="buttons">
<?php echo flexicontent_html::pdfbutton( $this->item, $this->params ); ?>
<?php echo flexicontent_html::mailbutton( 'items', $this->params, null , $this->item->slug ); ?>
<?php echo flexicontent_html::printbutton( $this->print_link, $this->params ); ?>
</p>
<!-- EOF buttons -->

<!-- BOF page title -->
<?php if ($this->params->get( 'show_page_title', 1 ) && $this->params->get('page_title') != $this->item->title) : ?>
<h1 class="componentheading">
<?php echo $this->params->get('page_title'); ?>
</h1>
<?php endif; ?>
<!-- EOF page title -->

<!-- BOF item title -->
<?php if ($this->params->get('show_title', 1)) : ?>
<h2 class="contentheading flexicontent">
<?php echo $this->escape($this->item->title); ?>
</h2>
<?php endif; ?>
<!-- EOF item title -->

<div class="clear"></div>

<div class="atelier_tic">

<span class="commune"><?php echo $this->fields->display; ?></span>
<span class="type"><?php echo $this->fields->display; ?></span>

<div class="periode">
<h4 class="type"><?php echo $this->fields->display; ?></h4>
</div>
<div class="description">
<p><?php echo $this->fields->display; ?></p>
<span class="prog"><?php echo $this->fields->display; ?>
</div>
</div>

<div class="clear"></div>

</div>


J'ai regardé encore et encore, je n'ai pas trouvé d'où venait le problème ?
J'ai testé avec le template item tabbed et là mes champs s'affichent, celà veut dire que mon erreur vient de mon fichier item.php mais je ne sais pas laquelle ?

Pouvez-vous m'aider ?

Merci

Cordialement

Magali

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

More
9 years 6 months ago #49846 by micker
tu as trouvée ?

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.

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