Hi,
(=> I use Seblod 3.0.)
I created a custom mainbody.php for my template "fiches_formation". This template displays well on my website.
I created another custom mainbody.php for my another template "temoignage". This template displays well on my website.
Now, I want to display some fields from the template "temoignage" to the template "fiches_formation" but I have this error : "Oops ! Fields not found...".
In the same way, I have the same error when I try to display a module cck form (= template "temoignage") with in the template "fiches_formation".
Someone know how to fix this problem and create a connection between this two templates ?
This is the mainbody.php from de my template "fiches_formation" :
<?php
/**
* @version 3.0
* @author http://www.jseblod.com
* @copyright Copyright (C) 2009-2013 jSeblod. All Rights Reserved.
* @license GNU/GPL V2 License. http://www.jseblod-cck.com
* @package Formations Public Content Template (Custom) - jSeblod CCK ( Content Construction Kit )
**/
// No Direct Access
defined( '_JEXEC' ) or die( 'Restricted access' );
?>
<?php
/**
* Init jSeblod Process Object { !Important; !Required; }
**/
$jSeblod = clone $this;
jimport( 'joomla.html.pane' );
$pane =&JPane::getInstance('tabs');
$document =& JFactory::getDocument();
$document->addStyleSheet( $this->baseurl.'/~mindmapp/templates/'.$this->template.'/css/template_seblod.css' );
?>
<div id="ficheForm">
<div class="fleft">
<div class="intro" style="background:url('<?php echo $cck->getValue('formation_illustration');?>') no-repeat; height:218px;">
<h1><span><?php echo $cck->getValue('titre_formation'); ?></span><br/><?php echo $cck->getValue('titre_formation_bis'); ?></h1>
<p><span>Références</span> : <?php echo $cck->getValue('reference_formation'); ?></p>
<p><span>Durée</span> : <?php echo $cck->getValue('duree'); ?></p>
<p><span>Prix</span> : <?php echo $cck->getValue('prix'); ?> € HT<p>
<div class="dif"></div>
</div>
<div class="sliders">
{slider Pour qui ?}
<?php echo $cck->getValue('onglet_pourqui'); ?>
{slider Objectifs}
<?php echo $cck->getValue('onglet_objectifs'); ?>
{slider Programme}
<?php echo $cck->getValue('onglet_programme'); ?>
{slider Les Plus}
<?php echo $cck->getValue('ongleet_lesplus'); ?>
{slider Modalités}
<?php echo $cck->getValue('onglet_modalites'); ?>
{slider Intervenant(s)}
<?php echo $cck->getValue('onglet_intervenants'); ?>
{/sliders}
</div>
</div>
<div class="fright">
<div class="nextDate">
<h2>Prochaines dates</h2>
<?php
$nextForm=0;
foreach ($cck->get( 'groupx_formation' )->value as $gx) {
if ($nextForm > 3) { break; }
?>
<div class="nextForm">
<h3><?php echo $gx['titre_prochaine_formation']->value; ?></h3>
<p><span>Intervenant(s)</span> : <?php echo $gx['intervenants']->value; ?><p>
<p><span>Référence</span> : <?php echo $gx['reference_formation']->value; ?></p>
<p class="date"><?php echo $gx['date_formation']->typo; ?>, <?php echo $gx['lieu_formation']->value; ?><a class="inscription" href="#"><img src="/~mindmapp/images/mindmapping/blank.png" width="87" height="20"/></a></p>
</div>
<?php
$nextForm++;
} ?>
</div>
<div class="downloadPdf"><a href="/<?php echo $cck->getValue('pdf_formation'); ?>" target="_blank"><img src="/~mindmapp/images/mindmapping/blank.png" width="209" height="60"/></a></div>
<div class="nextDate">
<h2>Témoignages</h2>
<div><?php foreach ($cck->get( 'temoignage_groupx' )->value as $gx) { ?>
<div class="nextForm">
<h3><?php echo $gx['prenom_temoin']->value; ?> <?php echo $gx['nom_temoin']->value; ?></h3>
<p><?php echo $gx['fonction_temoin']->value; ?><p>
<p><?php echo $gx['temoignage']->value; ?></p>
</div>
<?php } ?></div>
</div>
</div>
</div>