Document management

Posted by Community Admin on 03-Aug-2018 21:02

Document management

All Replies

Posted by Community Admin on 22-Mar-2011 00:00


I need to create a site for managing documents (pdf, rtf).
There must be three libraries organized in a hierachical maner (like folders).
The final user should be able to browse these libraries or could search a document by keyword or by date.

Could you point me to the features or API that could be useful.
Any idea welcome.

Thanks

Vincent

Posted by Community Admin on 22-Mar-2011 00:00

Hi Vincent,

You will need a custom module and data provider for it. We do not support nested libraries out of the box. You could take a look at our Products sample module that comes with the SDK installation. IIf you follow the Content model you need a provider  that should inherit ContentDataProviderBase. The type of the item that you want to list should implment IHasParent.


       [NonSerializableProperty]
        Content IHasParent.Parent
       
            get
           
                return this.Parent;
           
            set
           
                this.Parent = (MyParentObject)value;
           
       

        [FieldAlias("parent")]
        [HideField]
        [Searchable(false)]
        [NonSerializableProperty]
        public MyParentObject Parent
       
           
            get
           
                if (this.parent != null)
                    ((IDataItem)this.parent).Provider = ((IDataItem)this).Provider;
                return this.parent;
           
           
            set
           
                MyParentObject parentObj = value;
                if (this.ParentChanged != null)
               
                    this.ParentChanged(this, parentObj );
               
                this.parent = parentObj ;
           
       

private MyParentObject parent;

IHasParent should be implemented by each object which you want to be part of hierarchy - the object that will have a parent. The parent should implement IHasContentChildren - Annotates that a content item is a parent to a set of items

All the best,
Ivan Dimitrov
the Telerik team

Posted by Community Admin on 24-Mar-2011 00:00

Hi Ivan,

I was wondering if I could use category to represent a tree structure.
I have read the API documentation but have not found

1/ how to get categories
2/ how to set category to a document
3/ how to display document properties and url

Also I have not been able to display search results with document links.

thanks

Vincent

Posted by Community Admin on 30-Mar-2011 00:00

Hi Vincent,

You need to build a custom control that binds categories. You can use RadTreeView. Please check this post for more details

www.sitefinity.com/.../categorytree.aspx

To set a category for a document you can use the Organizer property of the content

content.Organizer.AddTaxa("Category", taxon.Id);

To index documents you should have Static HTML pages index and you have Download list control on the page. In this case the crawler will get the html of the page .  Note that this will return the page with the content item, because Static HTML pages index is used.

Kind regards,
Ivan Dimitrov
the Telerik team

This thread is closed