Recent Topics

1 May 06, 2008 20:39    

My b2evolution Version: 2.x

Hi -

In "Upgrade_from_1.10.x_to_2.0.x" this appears

"You now need to add a widget container and later place the blog list widget into that container (you'll do that in the admin interface > blog settings > widgets). Use this to insert a container on top of the skin:"

And then there is nothing. How do you insert a container on top of the skin?

Garey Mills

2 May 08, 2008 01:53

Take a look at any existing skin for 2.* and you will see how to add a container to a skin, but basically they look like this:

	<?php
		// ------------------------- "Page Top" CONTAINER EMBEDDED HERE --------------------------
		// Display container and contents:
		skin_container( NT_('Page Top'), array(
				// The following params will be used as defaults for widgets included in this container:
				'block_start'         => '<div class="$wi_class$">',
				'block_end'           => '</div>',
				'block_display_title' => false,
				'list_start'          => '<ul>',
				'list_end'            => '</ul>',
				'item_start'          => '<li>',
				'item_end'            => '</li>',
			) );
		// ----------------------------- END OF "Page Top" CONTAINER -----------------------------
	?>


There are quite a few parameters you could set, and all of them default to *something* if you don't set them for your container.


Form is loading...