Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# Degrade 3/14/2007 9:54 AM
Hi Guys.

Just playing with the static sections feature, and like how you can attach a section to a template.

I was just wondering though, how come you can only define one section per placeholder in a template? And is there any way to allow it to attach multiple?

Many thanks

Matt
# martijnb 3/14/2007 10:20 AM
Indeed, currently it's only possible to attach a single section to a template placeholder. This section will always be positioned above any other sections in this placeholder.

The limitation is just because of simplicity. Allowing multiple sections in a template placeholder raises issues like the order of the sections.

Personally, I always create special placeholders in the template for template sections. It doesn't hurt to put a few extra placeholders in the template.
# Degrade 3/14/2007 10:52 AM
martijnbPersonally, I always create special placeholders in the template for template sections. It doesn't hurt to put a few extra placeholders in the template.

Thats a fair workaround, but a would say thats what it is, "a workaround".

It would be good if this could be implemented to allow muliple sections to be attached, then maybe in the node admin, under the sections heading they appear (allowing for them to be reordered) but are not allowed to be removed.

The only downside i can see from adding more placeholders is it gives more options to the general user for placeholders that are effectivley the same thing (ie rightCol1, rightCol2, rightCol3)

Like i said, it would be good to see allowing multiple sections attached to a template, but it isn't a major requirement.

Maybe when i've played with it a bit more i can assist in making it happen.

Thanks for the feedback anyway.

Matt