Short Url Extension for EspoCRM - free extension

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • emillod
    Active Community Member
    • Apr 2017
    • 1405

    Short Url Extension for EspoCRM - free extension

    Hello Guys
    i have new extension for you. Extension which will give you possibility to create short url's inside your EspoCRM.
    You can check how it works on video. Here you have link to post with video.

    Features:
    • User can create short url's
    • User can define custom alias
    • User can choose expiration date
    • User can define own length of short links

    Link to installer: https://devcrm.it/download/?file=77f...5-35ee8ee821ff
    Link to documentation: https://docs.dubas.pro/extensions/short-url/

    You can check this extension in action. Here you have credentials to demo.
  • shalmaxb
    Senior Member
    • Mar 2015
    • 1602

    #2
    Thank you very much. This will be really very useful!

    Comment

    • emillod
      Active Community Member
      • Apr 2017
      • 1405

      #3
      shalmaxb thanks I'll do my best to prepare tutorial how to assign different domain for links

      Comment

      • Alan
        Junior Member
        • Jun 2021
        • 10

        #4
        This looks good, thanks for making the extension, I just have a couple of questions.
        Can the field the URL is entered into be longer? we have a URL which is sometimes 270 characters long, the field seems to have a limit on characters at the moment.
        In the example, the shortened url is in "url/file/", is it possible to just have it after the url or does the "/file/" extension have to be in the final short url?
        If you were developing this further, it would be good to have the shortened url linked to a customers record that you sent the link to. Maybe have a button next to a customer where the shortened url process starts from?

        Comment

        • item
          Active Community Member
          • Mar 2017
          • 1476

          #5
          hello,
          i don't use .. but i have look ..
          if it's that field, you can change "maxLength": 300 for sample.
          and make rebuild after.
          ressources/metadata/entityDefs/ShortUrl.json


          "alias": {

          "type": "varchar",

          "maxLength": 150,

          "trim": true,

          "options": [],

          "isCustom": true

          },


          If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

          Comment

          • emillod
            Active Community Member
            • Apr 2017
            • 1405

            #6
            I'll adjust extension, my mistake

            Comment

            • emillod
              Active Community Member
              • Apr 2017
              • 1405

              #7
              New version: 0.0.2
              Changed
              • Limit of characters in Full Url field.
              Download: https://devcrm.it/download/?file=0a9...0-2033ef909dda

              Current limit is 300 characters. Of course if you want, you can adjust it in Custom folder. Here you have tutorial: https://docs.dubas.pro/extensions/sh...gth-of-aliases

              Comment

              • ChrisSka83
                Senior Member
                • Apr 2023
                • 197

                #8
                Hello,
                until recently the extension worked. But since one of the last updates I only get a page with the word "true".
                No redirect anymore....
                Everything is still correct in the .htaccess.​

                Comment

                • emillod
                  Active Community Member
                  • Apr 2017
                  • 1405

                  #9
                  ChrisSka83 thank you for your post. Here you have a link to issue, we'll deal with that.

                  Comment

                  • ChrisSka83
                    Senior Member
                    • Apr 2023
                    • 197

                    #10
                    Hy emillod,

                    Is it possible to create a short url with a formula?

                    Example:
                    I often have to send a link from an entry of an entity or link it in another program.
                    The link sometimes causes problems there.
                    Either too long or the # causes problems.

                    Now I want to create a field in the entity and create a short URL there using a formula.
                    Is that possible?​

                    Comment

                    • emillod
                      Active Community Member
                      • Apr 2017
                      • 1405

                      #11
                      Hello Sir,
                      yes, you can generate a link through formula. You have to check how formulas work and create simply record in proper entity.

                      Comment

                      • ChrisSka83
                        Senior Member
                        • Apr 2023
                        • 197

                        #12
                        Ok, I managed it with a lot of testing.

                        This formula creates a new ShortUrl and is then read into the entity.

                        PHP Code:
                        $url=string\concatenate('https://portal.domain.de/#Hauptkurs/view/',entity\attribute('id'));
                        $lfdNr=lfdNr;
                        $short=record\create('ShortUrl', 'name', $url,'alias',$lfdNr);
                        short=record\attribute('ShortUrl', $short, 'shortUrl');
                        But is there another and easier way to do this, or is this correct?

                        Last edited by ChrisSka83; 04-21-2024, 10:22 PM.

                        Comment

                        • emillod
                          Active Community Member
                          • Apr 2017
                          • 1405

                          #13
                          For formulas that's an easiest way to do it.

                          Comment

                          • ChrisSka83
                            Senior Member
                            • Apr 2023
                            • 197

                            #14
                            Somehow this formula only works to a limited extent.

                            When I create a new entry, the short URL appears.
                            But if I edit an existing entry, the URL is created in Short URL, but unfortunately it is not read into the entry.
                            If I then try to update the entry again, I get the error message that the entry with the alias already exists. But it still does not read it in.

                            Do I have a small error somewhere?​

                            Comment


                            • ChrisSka83
                              ChrisSka83 commented
                              Editing a comment
                              now, strangely enough, it works again. no idea why
                          • ChrisSka83
                            Senior Member
                            • Apr 2023
                            • 197

                            #15
                            Hy,

                            I have a problem with the short URL extension:

                            Through a tip, I was told that the short url no longer works. I call up a public form via short url, for which I use Public Forms from eblasoft. If I call up the link normally without the short url...

                            Comment

                            Working...