• Insert multiple keywords [Solved]

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #19881  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!
Last edited by raiko on Sat Dec 29, 2012 6:10 am, edited 1 time in total.
 #19930  by jllort
 
The 'SCAN, PDF' should be and array not a String ( something like array("scan", "pdf"") )

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.