Aricie
The DNN Expert for your web project
DNN Community Forums

CK Editor

Sort:
You are not authorized to post a reply.
Page 1 of 212 > >>
Author
Messages


rsiera











New Member



Posts:




New Member



    Hi,

    We have installed the following provider and using it now on our live websites.
    - http://dnnckeditor.codeplex.com/documentation
    - http://ckeditor.com/demo

    It provides so much more features that are better in use then with the Telerik Provider.

    For instance this CK Editor Provider has a possibility to create links and use Human Friendly URL's. Altough this option is not working when using this Provider together with the Friendly URL Provider. Administrators don't use Friendly URL's and the Human Friendly URL from the CK Editor possibly uses the DNN Friendly URL Provider.

    I wanted to share this with you guys because maybe you could look at it. It's open source. And creating a link between the Human Friendly URL option in the CK Editor provider and your Friendly URL would be a great option.

    Regards,

    Robrecht - HolonCom



    rsiera











    New Member



    Posts:




    New Member



      I've spend some time investigating to see if I could modify the CKeditor Provider for DNN to make the FriendlyURL option working when aricie.FriendlyUrlProvider is installed.

      My conclusion is that this is not possible now.  The reason is the your module only returns FriendlyUrls if the logged in user is not in the DisablingRoles. That is overall a great feature except in the editor.

      My question: would it be possible to add one extra public Function to your FriendlyUrlProvider that would return a friendlyURL even if the currect user is in the DisablingRoles ? Or is there a way already to bypass that RolesCheck?

      This would make it possible for developers to query your provider directly to obtain FriendlyUrls for particular situations.

      Even better would be that you would be able to detect that the request for an FriendlyUrl is triggered from the DNN editor provider so that you would be able to ignore the Roles check at that point. But I don't think that is possible.

      Robrecht



      Jesse











      New Member



      Posts:




      New Member



        Hi Robrecht,

        I'm currently doing a revamp of the main engine, I'll see if I can indeed supply an overload to the provider API.

        In the mean time, you may want to edit the DisablingRoles property: the only problem with admin users is that a couple of admin modules do hijack the url provider by generating template urls for string replacements. This can be fixed in FUP by entering the corresponding "hacking parameter" or "param regex" in the corresponding strategy.

        Also, the DisablingRoles textbox uses the regular DNN syntax, which means that you can also target specific users by entering their ids between brackets (e.g [4]). That way you could have admins with friendly url enabled, except for specific admin users to account for any problem as for the hijacked modules.

        Cheers



        rsiera











        New Member



        Posts:




        New Member



          Hi Jesse,

          Thanks for you reply. It made me think a little bit deeper and I realised that the solution is actually easy to implement.

          In your code, where you check if you should generate the friendlyUrl, you could check if the value of HttpContext.Current.Request.Url contains the string "/HtmlEditorProviders/".  If so then the DisablingRoles should be ignored because the request for a friendlyUrl comes from an editor that wants to create a hyperlink.

          I'm sorry that I insist ona solution but this not-being-able-to-create-friendlyUrls-in-the-editor is a major show stopper. It gives our customers the feeling that our CMS is a messy construct.  So I hope that you will be able to implement this easy but very valuable improvement.

          Cheers

          Robrecht

           



          Jesse











          New Member



          Posts:




          New Member



            Hi Robrecht,

            Thanks for the hint, I'll look into incorporating that capability in the following version.

            Cheers,

             

            You are not authorized to post a reply.
            Page 1 of 212 > >>