Download & Extend

Make weight of embedded view configurable

Project:Node Hierarchy
Version:6.x-1.x-dev
Component:Drupal/PHP Code
Category:feature request
Priority:normal
Assigned:jpsalter
Status:needs review

Issue Summary

Everything with the embedded views was working fine. The embedded view was showing up below the other content as expected.

Then I made some adjustments to the weights of other fields for the node type and the embedded view started showing up above all my content. After some head scratching, I solvd the problem by changing the hardcoded #weight of the embedded view from 10 to 1000. That solved the problem for me, at least temporarily.

For a more permanent solution, I'd like to see this weight be made configurable. Ideally, it would show up as a an item on the "manage fields" page for a cck node type and could be precisely placed.

Thanks for your work on this module. I think it's great.

Comments

#1

Assigned to:Anonymous» jpsalter
Status:active» needs review

I had this same need. Here is a patch that provides this functionality...

AttachmentSize
nh_weights.patch 1.2 KB

#2

This update is cleaned up a bit.

AttachmentSize
nh_weights2.patch 1.14 KB

#3

The patch looks good. Thanks for that. I'm able to change the weight in the .module file, but I can't seem to find the form in the UI to do it there. Help?

#4

The option should appear when you are managing the fields of your node type:

/admin/content/node-type/{your content type}/fields

#5

got it. thank you!

#6

Where does this patch go?

I apologize if that's a stupid question, but I'm not a PHP programmer, so I don't know this stuff. I need this functionality, and would like to install it.

#7

Here's info on how to apply a patch:
http://drupal.org/patch/apply

I used NetBeans (free download) for PHP to apply the patch, but there are many ways to do it.

#8

Component:Code» Drupal/PHP Code

Copy & Pasted: This issue pertains to the 6.x-1.x branch which is now legacy and is over one year old. If this issue is not applicable anymore, please consider closing it. Otherwise, please update this issue appropriately. Will be closed in two weeks if no response.