Page 1 of 1

Insert multiple keywords [Solved]

PostPosted:Tue Dec 18, 2012 12:51 am
by raiko
I have the following PHP code to help me to import scanned images into OKM:
Code: Select all
$doc = array('path' => ...
'keywords' => "SCAN, PDF", ...);
I intended to add the keywords "SCAN" and "PDF" once inserted. However, it appears as "SCAN, PDF" in OKM instead of 2 words. I also tried:
'keywords' => "SCAN, PDF"
'keywords' => "SCAN PDF"
'keywords' => 'SCAN, PDF'

and without luck. Can someone show me the correct syntax please?

Thanks!

Re: Insert multiple keywords

PostPosted:Wed Dec 19, 2012 6:14 pm
by jllort
The 'SCAN, PDF' should be and array not a String ( something like array("scan", "pdf"") )

Re: Insert multiple keywords

PostPosted:Sat Dec 29, 2012 6:09 am
by raiko
It works! Thank you!