Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Drew 165 posts 340 karma points
    Jul 28, 2011 @ 11:32
    Drew
    0

    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!

  • Richard Soeteman 4036 posts 12863 karma points MVP
    Jul 28, 2011 @ 11:40
    Richard Soeteman
    0

    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

  • Drew 165 posts 340 karma points
    Jul 28, 2011 @ 12:05
    Drew
    0

    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

     

     

Please Sign in or register to post replies

Write your reply to:

Draft