API Questions on Kentico API.
Version 6.x > API > Document Find and Replace View modes: 
User avatar
Member
Member
lawrence.dine-moov2 - 5/28/2012 7:02:43 AM
   
Document Find and Replace
Hello,

I need to implement a custom module that will allow users with the correct permissions to do a find and replace operation on all searchable content of all documents within a certain path in the tree. I was wondering what would be the best way to go about this to be as in keeping with the existing Kentico systems as possible while also reducing the amount of custom code required as much as possible.

Thanks,
Lawrence

User avatar
Member
Member
lawrence.dine-moov2 - 5/28/2012 8:18:34 AM
   
RE:Document Find and Replace
One more thing to add: This should be available to the relevant users from within the CMS Desk.

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 6/3/2012 6:24:28 AM
   
RE:Document Find and Replace
Hi,

I would start with custom module documentation. It shows you have to make the section available only for appropriate roles and how to make the content available only for particular roles:
Developing custom modules

Then to find appropriate documents you can use smart search API:
Smart search API
For example take a look at SearchText() method.

Now to display results you need to write a transformation. You can find inspiration on a Corporate site (in some smart search web part) or take a look atsearch results transformation

In the smart search result will be available nodeID or documentID and this way you can use document API to update document:
Managing documents

Best regards,
Ivana Tomanickova