Using the blog module, I'm setting a custom template for the individual blog articles (node--blog.tpl.php
) which contains a list item and the content inside.
However, I can't figure out where I should be putting my wrapping <ul>
tag? If I put it in either page.tpl.php
or region--content.tpl.php
then the entire page content is (understandably) wrapped including pagination and other elements. I just need to wrap the list items.
Thanks and please be gentle with a newb :)
EDIT: code
page.tpl.php
...
<?php print render($page['content']); ?>
...
region--content.tpl.php
<?php if ($content): ?>
<div class="<?php print $classes; ?>">
<ul class="blog-list">
<?php print $content; ?>
</ul>
</div>
<?php endif; ?>
node--blog.tpl.php
...
<li>
#content#
</li>
....
<ul class="blog-list">
so it correctly wraps only the list items (being populated bynode--blog.tpl.php
. Thanksnode
not the page or regionnode--blog.tpl.php
) for each list item but I need to wrap all list items in a<ul>
tag.