Related links weight

japanitrat - January 27, 2009 - 01:00
Project:Links Package
Version:6.x-1.0
Component:Code: links_related.module
Category:bug report
Priority:normal
Assigned:syscrusher
Status:active
Description

Hi,

I just installed this module and configured it for a few node-types with lots of cck-fields. I needed to switch a bit around and now the fieldset in the form (as well as the output in a view) is somewhere in the middle of these fields, although it should be added to the end of the content (when viewing it) ..

I ended up hacking the weight manually to 100 in links_related.module, but this looks like a bad workaround. Any ideas?

#1

syscrusher - January 27, 2009 - 20:51
Assigned to:Anonymous» syscrusher

Could you post your patch to this issue, so I can see exactly which of the various weight parameters you're changing? Maybe I can make this an admin-configurable option. Was it line 203 in links_related.module that you changed?

Also bear in mind that I'm actively working on making a CCK-aware module that adds a URL field type to CCK and uses Links API for the back end.

Scott

#2

japanitrat - January 30, 2009 - 07:39

yes it is in 203.

if you intend to make it CCK-aware, the related-links fieldset in content-type edit forms would be redundant, wouldn't it? (because this thing has no weight setting in the field-configuration of a content-type, in contrast menu/title/body/taxonomy for instance)

#3

gustavosg - July 2, 2009 - 12:48

I hacked the weight manually to 100 in links_related.module in line 203, but nothing happens.
Do I have to do something else?

#4

gustavosg - July 2, 2009 - 13:06

Sorry, hacking the line 203 changes the weight during view of the node, so it worked.

But I was trying to change the weight in the creation of a cck node (/node/add/[type]), where do I have to change?

Thanks!

 
 

Drupal is a registered trademark of Dries Buytaert.