I enabled this module and flushed cache and did an update.php, but when I move my fields around in a content type, I am not sure where the check box will show up. Sometimes it is nowhere near the field being used as the title.

To test, I created an new content type and it looked okay. The exclude was under the title. Then I added another CCK Field (Date) and the Exclude check box moved below the date entry text area. It was not near the title text entry field any more.

Then I moved the fields around, saved and changed them back to TITLE, DATE, BODY and the exclude box is now on the very top.

Comments

gabrielu’s picture

Hey,
Actually the weight of the checkbox is based on title field weight (see exclude_node_title.module line 103):

$weight = $form['title']['#weight']+1;

If we have 1 number free between Title and other fields it should be OK, but if we have same weight for more than 1 element, then the position might not be that easily controlled.

Gabriel

JSCSJSCS’s picture

StatusFileSize
new19.55 KB

Currently, my Exclude check box is all over the place on different content types and they all have the title dragged and "set" to display at the top. On my Events content type, the exclude checkbox is at the top of the edit/add screen. In others it is mixed in with other fields.

I though maybe it was because I had changed the display names on some of the titles, but I have content types that I did not change the title name and the Exclude checkbox is not near the title text entry.

The only content that has it displayed correctly is PAGE and STORY.

andrew m riley’s picture

Status: Active » Needs review
StatusFileSize
new587 bytes

I ended up adding basic CCK support to this module so the user can choose where the field shows up. If CCK doesn't exist than the module continues using its existing (title weight + 1) method.

gabrielu’s picture

Great approach,
I have to test this and let you know.

gabrielu’s picture

Status: Needs review » Closed (fixed)

Committed. See latest DEV release

gabrielu’s picture

Do you know what is the equivalent of hook_content_extra_fields() in D7?