Please Log in to join the conversation.
If you intend on just acting on the upload after it has already processed then you'd use gallery_onAfterCreateItem for new uploads. It only contains a single variable the ItemTable object which is the PHP entity for its _comprofiler_plugin_gallery_items row.- do you have triggers allowing to act on uploaded files with selected extensions ?
No- is there a pdf parser library within CB ?
I suppose if you managed to get this working you'd act on gallery_onAfterDeleteItem (same as above regarding its variable) and delete the text file when the pdf is deleted. I can't imagine why you'd need to convert the pdf to text though.- if I succeed in converting a file, how could I link the txt version to the pdf one so that removing the pdf would delete the txt version ?
Please Log in to join the conversation.
Please Log in to join the conversation.
File Path: $variables['var1']->path()
File Exists: $variables['var1']->exists()
File Date: $variables['var1']->modified()
File Size: $variables['var1']->size()
File Extension: $variables['var1']->extension()
File Path: [cb:parse function="path" class="var1" /]
File Exists: [cb:parse function="exists" class="var1" /]
File Date: [cb:parse function="modified" class="var1" /]
File Size: [cb:parse function="size" class="var1" /]
File Extension: [cb:parse function="extension" class="var1" /]
Please Log in to join the conversation.
Please Log in to join the conversation.
You'll need to process the PDF. We don't check any of that in CB Gallery.how can I get the confidentiality status of the document ?
[var1_id]how can I get the id ?
It will have a domain if it's a link. Use the below to get the domain. If empty string then it's not a linked media.I guess it's better to use than the name to allow deletion of the stored vectors if the document is suppressed
if it's a youtube link, where is it stored and how can I send the url to my other application ?
Same question if it's a website url for instance ?
$variables['var1']->domain()
[cb:parse function="domain" class="var1" /]
Please Log in to join the conversation.