CMSImport is fantastic - pro version 2 is even better than the last one! So firstly, well done!
I'm trying to use the feature that allows CMSImport to detect embedded documents (or images) in an imported field (providing its Rich Text obviously).
Configured and followed the instructions, and I've made sure all the documents have a relative path - but no docs are picked up.
So my question is: Does the process only detect documents, if they are wrapped in an Anchor tag, such as: "<a href='/pdfs/myfile.pdf''>Click here to download</a>"
or, can it pick up simple text based references, such as: "you can find a copy of the document at: /pdfs/myfile.pdf"
I had a look in the 2.0 documentation but couldn't see it say that the docs must be 'linked' to with an anchor tag (but that would be a fair assumption).
Thanks for the kind words. It will only pick up items wrapped in an anchor tag. Then I use a simple xpath to select all anchors and extract the doucments from that. Wat you could do is write a FieldAdapter that wraps an anchro tag arround the text /pdfs/myfile.pdf then it should work. My regex skills are not too good, but if you need help with the fieldadapter itself I can help you.
Thought a custom FieldAdapter might be the case - I'll get stuck in to it.
Actually, I could probably use a find&replace regex in Notepad++ to wrap any .pdf links into an anchor tag too! :) (and that would have the added benefit of putting an actual document hyperlink/anchor in the document)
Embedded Document References within RichText
Hi,
CMSImport is fantastic - pro version 2 is even better than the last one! So firstly, well done!
I'm trying to use the feature that allows CMSImport to detect embedded documents (or images) in an imported field (providing its Rich Text obviously).
Configured and followed the instructions, and I've made sure all the documents have a relative path - but no docs are picked up.
So my question is:
Does the process only detect documents, if they are wrapped in an Anchor tag, such as:
"<a href='/pdfs/myfile.pdf''>Click here to download</a>"
or, can it pick up simple text based references, such as:
"you can find a copy of the document at: /pdfs/myfile.pdf"
I had a look in the 2.0 documentation but couldn't see it say that the docs must be 'linked' to with an anchor tag (but that would be a fair assumption).
Cheers!
Hi Drew,
Thanks for the kind words. It will only pick up items wrapped in an anchor tag. Then I use a simple xpath to select all anchors and extract the doucments from that. Wat you could do is write a FieldAdapter that wraps an anchro tag arround the text /pdfs/myfile.pdf then it should work. My regex skills are not too good, but if you need help with the fieldadapter itself I can help you.
Cheers,
Richard
Thanks for the quick reply Richard.
Thought a custom FieldAdapter might be the case - I'll get stuck in to it.
Actually, I could probably use a find&replace regex in Notepad++ to wrap any .pdf links into an anchor tag too! :)
(and that would have the added benefit of putting an actual document hyperlink/anchor in the document)
Cheers
is working on a reply...