Can I map a constant value to a custom field? Every import will use a different value so I can not use a default filed value as referenced in another topic. I could easily add the value as a URL variable if feeds is able to read.

Comments

Countzero’s picture

AFAIK, you can specify a constant value in your mappings inside quotes. For example, I have an image mapping which goes like that :

concat("http://mysite.com/sites/default/files/import_images/", Photo)

... because the original XML tag only contains the filenames and not the full URL.

Hope it helps.

dooug’s picture

Status: Active » Postponed (maintainer needs more info)

Try using the plugins provided by Feeds_tamper. You could set a custom default value for a mapper element. Would that solve your problem ?

twistor’s picture

Status: Postponed (maintainer needs more info) » Fixed

Closing old issues. Feel free to reopen.

Status: Fixed » Closed (fixed)

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