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

Forums / Bugs & Issues / Edit Wiki Page Title

Edit Wiki Page Title

5 posts, 0 answered
  1. Gary
    Gary avatar
    91 posts
    Registered:
    19 Jul 2007
    03 Dec 2009
    Link to this post
    After a page has been created within a wiki, is it possible to edit the title of that page?

    Thanks,
    Gary
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    03 Dec 2009
    Link to this post
    Hi Gary,

    You can edit only the name for root wikis. Child wikis title cannot be edited.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Gary
    Gary avatar
    91 posts
    Registered:
    19 Jul 2007
    03 Dec 2009
    Link to this post
    Dear Ivan,

    Would you consider adding this as an enhancement request because I think it is an important feature that will improve that usability of the wiki module?

    Also, do you have any tips on how I would approach adding this as an enhancement in the mean-time?

    Thanks,
    Gary
  4. Gary
    Gary avatar
    91 posts
    Registered:
    19 Jul 2007
    04 Dec 2009
    Link to this post
    I am looking forward to your thoughts on adding the ability to edit the title of individual pages within a wiki. After using the wiki module for the past few days, I have several times had to copy markup from an existing page, create a new page with the revised title, paste the markup back in, and then delete the old page. It's quite annoying to have to do this, but it did serve to identify a bug, described as follows:

    When a page title is assigned a name that begins with the same text as an existing page, then the error "A wiki page with this name already exists for this wiki." is displayed. For example:

    Existing page title: Working With Labels And Values
    New page title (causes error): Working With Labels

    Another issue worth mentioning is the behavior of the WikiAdmin control. I notice two oddities that I am unable to explain. First, the "Create a wiki" link that appears in the design mode, does not appear on the published page (including when signed in as admin). Second, the "Create a page in this wiki" link only appears in when the view is of a page in the wiki. It does not appear in the view of all the pages, which would be the most applicable view for this link.

    On a minor note, please observe a typo in the text below the wiki editor; a link with text "How do I insert a link?" (the word insert in incorrectly spelled).

    Even with the issues reported above, I'm finding the new Wiki module to be a nice and useful addition.

    Thanks for your hard work.

    Regards,
    Gary
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    06 Dec 2009
    Link to this post
    Hello Gary,

    You can extend the functionality of Wiki control and change the edit tab by implementing a texbox near the wiki title. Then you need to have a custom control that derives from wiki and there you have to override SaveContent() method.

    Sample:

    protected override void SaveContent()
    {
        //DO NOT CALL THE BASE
        //base.SaveContent();
        WikiSingleItemContainer container = this.WikiSingleContainer;
        IContent stagedContent;
        Guid contentId = Guid.Empty;
        contentId = base.itemId;
        stagedContent = this.Manager.GetStagedContent(contentId);
        stagedContent.SetMetaData("Name", "NewTitleImplemented");
        this.Manager.SaveContent(stagedContent);
         
    }

    Note that if you have any links that point to this wiki they will not updated.

    For the "CreateWiki" the link button have to be visible if AllowCreateWiki property of WikiAdmin control is set to true. The property is located under Wiki category.

    You can fix the type in the following resx file

    Sitefinity\Admin\ControlTemplates\Wiki\App_LocalResources\WikiViewSingleItem.ascx.resx

    I fixed the spelling error in our source and updated your Telerik points.I hope this helps.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
5 posts, 0 answered