1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Document management

Document management

4 posts, 0 answered
  1. Vincent
    Vincent avatar
    41 posts
    Registered:
    21 Sep 2007
    22 Mar 2011
    Link to this post

    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
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    22 Mar 2011
    Link to this post
    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
  3. Vincent
    Vincent avatar
    41 posts
    Registered:
    21 Sep 2007
    24 Mar 2011
    Link to this post
    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
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    30 Mar 2011
    Link to this post
    Hi Vincent,

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

    http://www.sitefinity.com/devnet/forums/sitefinity-4-x/general-discussions/categorytree.aspx#1578760

    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
4 posts, 0 answered