Hi Guys and thanks again for your Seblod,
I've tryed to create a custom template to build a slider. In the past (Seblod 2.x) I've always used a pack made by someone I can't remember the name. Now with the third version of Seblod, I've not idea why it is not working.
This is the code
<?php // No Direct Access
defined( '_JEXEC' ) or die;
?>
<?php
require_once dirname(__FILE__).'/config.php';
$cck=CCK_Rendering::getInstance();
if ( $cck->init() === false ) { return; }
$doc =& JFactory::getDocument();
$doc->addStyleSheet(juri::base(TRUE)."/templates/".$this->template."/css/unslider.css");
$doc->addScript(juri::base(TRUE)."/templates/".$this->template."/js/unslider.js");
$doc->addScript(juri::base(TRUE)."/templates/".$this->template."/js/jquery.event.move.js");
$doc->addScript(juri::base(TRUE)."/templates/".$this->template."/js/jquery.event.swipe.js");
?>
<div>
<ul>
<?php
$items = $cck->getItems();
foreach( $items as $item ) {
$count++;
?>
<?php /* IMPORTANT call your fields like $item->get('the_field')->value INSTEAD OF $cck->get('the_field')->value */ ?>
<li>
<div style="background-image: url('<?php echo $item->getThumb1('slide_img'); ?>');">
<div>
<div>
<h3><?php echo $item->get('slide_title'); ?></h3>
<h2><?php echo $item->get('slide_subtitle'); ?></h2>
<a href="/<?php echo $item->get('slide_link'); ?>">
<button>Scopri i dettagli!</button>
</a>
</div>
</div>
</div>
</li>
</ul>
<div id="scroll-down">
</div>
</div>
...
<?php $cck->finalize(); ?>
inserting this list in a module, to show it in the HOME ... makes the website completely white without any html. It seems like some PHP call, blocks everything.
ops ... the system automatically compress it. So I think you will need to beautify it.
Have someone any idea about how make it works again?
thx
abram