Make weight of embedded view configurable

Steve Dondley - November 1, 2008 - 20:18
Project:Node Hierarchy
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:jpsalter
Status:needs review
Description

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.

#1

jpsalter - July 13, 2009 - 21:56
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

jpsalter - July 13, 2009 - 22:59

This update is cleaned up a bit.

AttachmentSize
nh_weights2.patch 1.14 KB

#3

robynover - August 11, 2009 - 06:59

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

jpsalter - August 11, 2009 - 15:35

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

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

#5

robynover - August 12, 2009 - 02:28

got it. thank you!

#6

cdmarine - August 15, 2009 - 19:04

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

robynover - August 24, 2009 - 22:45

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.

 
 

Drupal is a registered trademark of Dries Buytaert.