2

I display some blocks using context module and others using template. Is it possible to set block weight inside template?

1 Answer 1

1

Block weight is stored in the database. There are functions to change their weight, but templates aren't the place for manipulating database data, that's where you write the HTML out.

If you want to display context blocks in a different order from the blocks in the system UI, use the "Show row weights" link to set a value that's higher/lower than the value in block admin UI.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.