Hello again,
to clarify somethings of my previous post: The problem is that i always get 5
times content of the first post of a page.
like in my previous post, my home.php looks like this:
<?php foreach($posts as $post): ?>
<?php $theme->content($post, 'multiple'); ?>
<?php endforeach; ?>
and I have a file "multiple.entry.php" which contains this for outputting posts
of type entry:
<?php echo $post->title_out; ?>
<?php echo $post->content_out; ?>
I think I do have a problem with the correct using of the multiple.entry.php.
Does anyone have an Idea where my mistake is?
thx
Thomas
Am 15.09.2010 um 23:52 schrieb slogmen:
> Hello,
>
> i'm actually working on an theme for my blog. With the help of plugins
> i created some new content types. I'm using Habari 0.7-alpha from svn.
> If I understand the wiki article about theming (http://
> wiki.habariproject.org/en/Creating_a_Custom_Theme) right, i can do the
> following to output posts:
>
> in my home.php:
> <?php foreach($posts as $post): ?>
> <?php $theme->content($post, 'multiple'); ?>
> <?php endforeach; ?>
>
> The calling of $theme->content uses the corresponding theme for every
> post and its type. For example: I have an file "multiple.entry.php"
> which contains my template for all posts of type 'entry'. In my case
> the file does have currently the following minimal content:
> <?php echo $post->title_out; ?>
> <?php echo $post->content_out; ?>
>
> I think I have a problem to understand this correct. Habari shows the
> article with the correct template, but all i get is 5 times the same
> article, on the next page 5 times the next article and so on. Where is
> my mistake?
>
> Thanks,
> Thomas
>
> --
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/habari-users
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/habari-users