16 Posts
Toadie
7 years ago
3
Topic

i have a problem with the output of a blog view. this would be quite minimal and solve with uikit.
the list type looks like this.

<?php

defined( '_JEXEC' ) or die;

// -- Initialize
require_once dirname(__FILE__).'/config.php';
$cck = CCK_Rendering::getInstance( $this->template );
if ( $cck->initialize() === false ) { return; }
$items = $cck->getItems();
$html = '';
$id_class = $cck->id_class;
$count = count( $items );

echo '<div><div data-uk-grid-margin="" data-uk-grid-match="{target:\'.cck_stellenname\'}">';
if ( $count ) {
foreach ( $items as $item ) {
$item;

}

}

//echo '.( $items ).';
//echo '.$cck->$middle_display( $item )';
echo '</div></div>';


$cck->addScriptDeclaration( $js );
$cck->finalize();
?>


but the items are not given out. And I just do not see the error. Can you help me.

Get a VIP membership
4229 Posts
Kadministrator
7 years ago
2
Level 1

To create custom template you need working knowledge of php and html/css, e.g. $item; in your code does nothing, I presume you wanted it to be output so you need to echo it.

If you still need help you can  use Seblod services.

16 Posts
Toadie
7 years ago
1
Level 2

I have used the seb_blog template as a template. Only there is much too much inside what I do not need. I need very spikell which I the possible over the article (Admin form) the grid wide it article.
Therefore I have the template as simple as possible we tried to modify. only the items are not loaded. I do not believe that the problem can be great.

4229 Posts
Kadministrator
7 years ago
0
Level 3

You would be better to use list template for a start. blog template is rather complicated to get multicolumn layout.

Get a Book for SEBLOD