Hi everyone,
Looks like MM still have some secrets for me ;-))
Here you can see the FE page where the problem is : http://demo.lestock.net/lnhv3/en-res...ctor-hugo.html
In the #main column : "Dimanche 04 décembre 2016 - Array - 19:00". "Array" comes from a select attribute from mm_lieux (="mm_places") but should display the name of the place.
In my personalised template I used line 13 :
PHP Code:
<?php echo $arrRencontre[$this->getFormat()]['lieuRencontre']; ?>
where lieuRencontre is my select attribute.
Here is the entire template code:
PHP Code:
<?php $strRendersettings = isset($this->settings)? 'settings' : 'view'; ?><?php if (count($this->data)): ?>
<div class="layout_full">
<?php foreach ($this->data as $arrRencontre): ?>
<div class="itemRencontre">
<h2 class="intitule"><?php echo $arrRencontre['text']['intitule']; ?></h2>
<p class="soustitre"><?php echo $arrRencontre['text']['soustitre_rencontre']; ?></p>
<p class="description"><?php echo $arrRencontre[$this->getFormat()]['description']; ?></p>
<p class="tarif"><?php echo $arrRencontre[$this->getFormat()]['tarif']; ?></p>
// MY PROBLEM is between here
<p class="horaire"><?php echo $arrRencontre[$this->getFormat()]['date_rencontre']; ?> -
<?php echo $arrRencontre[$this->getFormat()]['lieuRencontre']; ?> // EXACTLY HERE
- <?php echo $arrRencontre[$this->getFormat()]['heure_rencontre']; ?></p>
/ and here
<div class="liste_intervenants">
<?php if(!empty($arrRencontre['raw']['intervenant1'])): ?>
<div class="intervenant"><?php echo $arrRencontre[$this->getFormat()]['photoInter1']; ?><?php echo $arrRencontre[$this->getFormat()]['intervenant1']; ?></div>
<?php endif; ?>
<?php if(!empty($arrRencontre['raw']['intervenant2'])): ?>
<div class="intervenant"><?php echo $arrRencontre[$this->getFormat()]['photoInter2']; ?><?php echo $arrRencontre[$this->getFormat()]['intervenant2']; ?></div>
<?php endif; ?>
<?php if(!empty($arrRencontre['raw']['intervenant3'])): ?>
<div class="intervenant"><?php echo $arrRencontre[$this->getFormat()]['photoInter3']; ?><?php echo $arrRencontre[$this->getFormat()]['intervenant3']; ?></div>
<?php endif; ?>
<?php if(!empty($arrRencontre['raw']['intervenant4'])): ?>
<div class="intervenant"><?php echo $arrRencontre[$this->getFormat()]['photoInter4']; ?><?php echo $arrRencontre[$this->getFormat()]['intervenant4']; ?></div>
<?php endif; ?>
<?php if(!empty($arrRencontre['raw']['intervenant5'])): ?><div class="intervenant"><?php echo $arrRencontre[$this->getFormat()]['photoInter5']; ?><?php echo $arrRencontre[$this->getFormat()]['intervenant5']; ?></div>
<?php endif; ?>
</div>
</div>
<?php endforeach; ?>
</div> <!-- fin layout_full" -->
<?php else: ?><p class="info"><?php echo $this->noItemsMsg; ?></p><?php endif; ?>
Question 1 : What is the right syntax or what do I miss ?
Question 2 : where can I find doc about what syntax to use in templates ?
Thanks
Bookmarks