Copied to clipboard

Flag this post as spam?

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


  • Edwin Stoffels 5 posts 25 karma points
    Dec 11, 2014 @ 09:12
    Edwin Stoffels
    0

    Updating content in DB - Migration issue

    I need to update some content, preferable directly in the DB as i need to update some href src values from the inner img value. I migrated the content using cmsimport (love it by the way), when i perform an update statement directly in the SQL db even with the cache off the editor seems still to load the old html code rather then the updated one. the frontend will load the correct html. Anybody an idea how i can get this fixed. As mentioned this is only a one time thing, so don't care if it's dirty.

    html code is something like <a href='needtoreplace'><img src='media/pic1.jpg' />some text</a>

    which i convert in tsql to <a href='media/pic1.jpg'><img src='media/pic1.jpg' />some text</a>

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Dec 12, 2014 @ 10:36
    Dave Woestenborghs
    0

    I think the best way is to use the contentService API. Working directly in the database can be tricky.

    Dave

  • Charles Afford 1163 posts 1709 karma points
    Dec 12, 2014 @ 13:22
    Charles Afford
    1

    Yes as Dave says use the ContentService API :)

Please Sign in or register to post replies

Write your reply to:

Draft