When i insert tokens like
[site-date-d] [site-date-m] [site-date-yyyy]
OR
[d] [m] [yy]

it return '[ [ [' and the field doesn't show in the head section

Comments

dave reid’s picture

Make sure to first update to Token 6.x-1.x-dev and Nodewords 6.x-1.x-dev.

edjay’s picture

thx for the help, i've updated the token module to the latest dev version and already have the latest nodewords dev.
the problem is the same now.

for precisons, when i said it returns [[[ , I speak of the content field 'core dublin date' after i save it in the form.
The head section display nothing for this field.

hles’s picture

Assigned: Unassigned » hles
Status: Active » Needs review
StatusFileSize
new2.23 KB

I can confirm this bug on the latest dev version.
The field for dc.date is a input but the code was testing day month and year as separate entries of an array which resulted in a inaccurate $bool value when preparing the value of the field.
Patch attached fixes this, i'm not really used to patching and i don't know the module well, plz review.

Status: Needs review » Needs work

The last submitted patch, nodewords-dcdatetokens-960482.patch, failed testing.

dave reid’s picture

Status: Needs work » Needs review
StatusFileSize
new4.47 KB

Wow yeah, this meta tag was horribly broken. Thanks for getting the patch started.

dave reid’s picture

StatusFileSize
new4.47 KB

I even went and saved a couple tag value with the 'date' form element like it used to be before and confirmed it works with both tokenized string and older date value.

dave reid’s picture

Status: Needs review » Fixed

Committed #6 to CVS. Thanks everyone!
http://drupal.org/cvs?commit=447642

Status: Fixed » Closed (fixed)
Issue tags: -token dublin core date

Automatically closed -- issue fixed for 2 weeks with no activity.