Announcement

Collapse
No announcement yet.

Short Url Extension for EspoCRM - free extension

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

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

    Comment


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

      Comment


      • #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


        • #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

          },


          Comment


          • #6
            I'll adjust extension, my mistake

            Comment


            • #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


              • #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


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

                  Comment


                  • #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


                    • #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


                      • #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


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

                          Comment


                          • #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
                          Working...
                          X