Welcome Guest, Not a member yet? Register   Sign In
Variable layout (blocks)
#3

[eluser]codex[/eluser]
[quote author="Colin Williams" date="1216139070"]Just have a table that manages sorting for different contexts. Contexts could be many things, but in the case of something like iGoogle, the context is the specific user who is viewing it.

You table might look like

context_id | object_id | x_weight | y_weight

Where object_id is a reference to the object being sorted, x_weight determines row (if needed) and y_weight determines column (if needed)

Then, say the user is the context, you would have a user_context table to link them, like:

user_id | context_id[/quote]

That's about what I had in mind. Thanks.
Still have to think about how the blocks (or partials) are actually linked to the object_id. What I'm aiming for is a layout that is configurable entirely in the backend, without ever having to touch a template (just the css). I wonder if that's possible. I think it is, but haven't found the right approach yet.

Suggestions are welcome.


Messages In This Thread
Variable layout (blocks) - by El Forum - 07-15-2008, 04:00 AM
Variable layout (blocks) - by El Forum - 07-15-2008, 05:24 AM
Variable layout (blocks) - by El Forum - 07-15-2008, 08:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB