Extension: Link Button

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • esforim
    Active Community Member
    • Jan 2020
    • 2204

    #16
    Let try Modal!
    Click image for larger version

Name:	image.png
Views:	460
Size:	15.2 KB
ID:	104757
    Look like it/EspoCRM/Firefox does not like external site! (Link URL was to this thread)

    Let try Modal instead! Look like it will open a fresh new page, work well if it a EspoCRM URL
    Click image for larger version

Name:	image.png
Views:	457
Size:	84.9 KB
ID:	104759​​

    But what about Espo Modal, best option? I like it! Instant loading, it used "Small Details" I think.

    Click image for larger version

Name:	image.png
Views:	444
Size:	52.8 KB
ID:	104760
    Attached Files

    Comment

    • Kharg
      Senior Member
      • Jun 2021
      • 410

      #17
      The normal modal is best used for internal CRM pages that can't be opened using the Espo Modal, such as relationships list

      Comment

      • esforim
        Active Community Member
        • Jan 2020
        • 2204

        #18
        Originally posted by Kharg
        The normal modal is best used for internal CRM pages that can't be opened using the Espo Modal, such as relationships list
        Trying to be smart with this new extension, I look at email and thought, this would be perfect! Too bad we can't edit the detail page. Look like the URL method is also blocked now as well!

        Click image for larger version

Name:	image.png
Views:	426
Size:	22.3 KB
ID:	104821

        Comment

        • esforim
          Active Community Member
          • Jan 2020
          • 2204

          #19
          Here my first idea, opening the primary Account from Contact. I have a feeling I will have trouble with Formula but we see how we go.

          Some note: the "P" because I only plan to do it for primary account at the moment.
          The label and field name different because User-friendly???
          Left Icon denote relationship from what we going to. The right icon denote relationship of current. Good idea or bad?
          Anything else, well it up to you for design.
          Click image for larger version

Name:	image.png
Views:	437
Size:	39.3 KB
ID:	104823

          Comment

          • esforim
            Active Community Member
            • Jan 2020
            • 2204

            #20
            Originally posted by espcrm
            Here my first idea, opening the primary Account from Contact. I have a feeling I will have trouble with Formula but we see how we go.
            Here is the result.
            Click image for larger version

Name:	image.png
Views:	431
Size:	139.0 KB
ID:	104826

            Looking at this, if I want multiple button, best to keep button label shorter. And create a whole new "Panel" or Row to add these button.​
            Attached Files

            Comment


            • esforim
              esforim commented
              Editing a comment
              Anyway, very happy. Kharg kudo

            • esforim
              esforim commented
              Editing a comment
              My formula if anyone want to copy it:

              cButtonpAccountInfo=string\concatenate('https://espocrm.com/#Account/view/',accountId);

              Be sure to change your website!
          • esforim
            Active Community Member
            • Jan 2020
            • 2204

            #21
            Stealing ChrisSka83 idea, this what the result of adding it to List view. Allow you to open it as "preview".

            The formula is in page 1. Look like 60px is still not enough in spacing if you want the label. Best to hide it in my opinion.
            And to make it read only if you using formula!

            Click image for larger version  Name:	image.png Views:	0 Size:	14.0 KB ID:	104830
            Click image for larger version  Name:	image.png Views:	0 Size:	31.5 KB ID:	104831
            Click image for larger version  Name:	image.png Views:	0 Size:	4.8 KB ID:	104832
            Click image for larger version

Name:	image.png
Views:	394
Size:	2.0 KB
ID:	104833

            Comment

            • esforim
              Active Community Member
              • Jan 2020
              • 2204

              #22
              After some usage, I discover the what Title option is for so I decide to edit it. Also I think since you using Button Label. Best to hide all Field Label name so it look nicer.
              Kharg, would Tooltips be more correct name for this setting?

              Click image for larger version

Name:	image.png
Views:	428
Size:	29.4 KB
ID:	104835
              Click image for larger version

Name:	image.png
Views:	391
Size:	7.0 KB
ID:	104836

              Comment


              • Kharg
                Kharg commented
                Editing a comment
                It's called title because it's the HTML title, tooltip wouldn't be correct as that's for the field label

              • esforim
                esforim commented
                Editing a comment
                Thanks Boss
            • esforim
              Active Community Member
              • Jan 2020
              • 2204

              #23
              Mr Kharg! I'm trying to be smart!

              One of my relationship is a Many-to-Many, so it is an array field. To use this button, I do a formula like this to view the 1st relationship.

              Code:
              cButtonVendor=string\concatenate($urlContact,array\at(contactsVendorIds,0))
              Click image for larger version

Name:	image.png
Views:	449
Size:	17.0 KB
ID:	105143
              After playing with this a few day now, I thought, "Hey!" isn't there a related list? URL is like so:
              https://espocrm.com/#Case/related/52...contactsVendor

              Click image for larger version

Name:	image.png
Views:	372
Size:	40.9 KB
ID:	105144

              Anyway trying to be smart I tried to use that URL, unfortunately it Error 404.

              So... too long didn't read feature request:

              1) Request support of URL list (if possible)
              2) Support of Array, so we can move left/right like email.

              Comment


              • Kharg
                Kharg commented
                Editing a comment
                I already got other requests to support the url of a list, doesn't look so easy

                as for the second request, do you mean an array of buttons? just like multi urls work?
            • esforim
              Active Community Member
              • Jan 2020
              • 2204

              #24
              Kharg this arrow button here, so we can look at all related record. I think this is hard and not possible (easily)?
              Click image for larger version

Name:	image.png
Views:	394
Size:	674 Bytes
ID:	105160

              Comment


              • Kharg
                Kharg commented
                Editing a comment
                Not possible unfortunately, it wouldn’t know what’s the start or the end.
            • Kharg
              Senior Member
              • Jun 2021
              • 410

              #25
              I just noticed that I forgot to add a basic mode, so I just released version 1.5.0 with the following changes:
              • Removed strip url option
              • Added Open Url option
              ​Open Url will directly redirect to the field url in the current tab, useful if you want an alternative to an entity linked record.

              Comment


              • shalmaxb
                shalmaxb commented
                Editing a comment
                Hi, I use for long time already creating buttons with the WYSIWYG field using Bootstrap code and string/concatenate formula. This plugin from Kharg could be very handy I guess. I did not test yet.
                With Bootstrap buttons you can create buttons for whatever is possible by a link. I created Buttons to switch to other entities from one entity, printing PDF and the last one I created, triggered the whole process of creating a PDF, attaching to an Email (with template) and sending the email.
                This Email had to be sent out in two languages, depending on the target email, which I realized with one button, which triggered depending on a bool field (englisch true, german false), which formula to execute (englisch or german).
                This process would take a user to do many steps, when done manually. Thanks to this wonderful espoCRM, very basic "coding" skills (like mine) are leading to very convincing solutions.

              • Kharg
                Kharg commented
                Editing a comment
                Hi shalmaxb,
                you can replace all your WYSIWYG fields with this extension probably.

                and if you have got ideas for new features propose them

              • esforim
                esforim commented
                Editing a comment
                Right now all I'm doing is using button to do "preview" and popup. Save me having the trouble to go into the Record itself. It looking quite neat.

                Surely there is better way to use this extension but I'm just not creative enough.
            • AlessioMa
              Junior Member
              • May 2024
              • 27

              #26
              hi everyone!
              When I try to open a Modal espo, it returns a 404 erroe.
              I would like to link each key to open a different modal, Email, task, call.
              How can I do that?
              Thanks.
              Alessio​

              Comment


              • AlessioMa
                AlessioMa commented
                Editing a comment
                no one now.

              • Kharg
                Kharg commented
                Editing a comment
                Are you trying to open a specific record modal or just a create new modal?

              • AlessioMa
                AlessioMa commented
                Editing a comment
                I would like to open the modal for compiling email, or for compiling task...
            • AlessioMa
              Junior Member
              • May 2024
              • 27

              #27
              I want to make this

              Comment


              • Kharg
                Kharg commented
                Editing a comment
                No, it will not work.

                I almost finished developing the new update allowing for quick creation.

              • esforim
                esforim commented
                Editing a comment
                Hey, no talking and start updating. Where the whip...?

                I'll know when it release, I got stalk mode and Star on this extension

              • AlessioMa
                AlessioMa commented
                Editing a comment
                Hi, I was able to make the change and retrieve the email modal.
                When is the update supposed to come out?
            • AlessioMa
              Junior Member
              • May 2024
              • 27

              #28
              I made the change, now I would like to pass the three activity buttons. I am working on that.

              Comment


              • Kharg
                Kharg commented
                Editing a comment
                The new update shouldn’t take long by the way, it will be out during this week probably.
            • shalmaxb
              Senior Member
              • Mar 2015
              • 1602

              #29
              Kharg, meanwhile I found the time to test the extension and you did a very good work. Before I had a process with similar result, but by manually coding a bootstrap button in the WYSIWYG editor. With your extension this is easier and improved with more possibilities (modal, pop-up).

              First I modified the german translation to mirror better, what the field names in the admin.json mean. I attach it here and you may feel free to use it.

              One enhancement I would wish is to be able to set pop-up width and height as well as positioning of the pop-up. I modified that in the javascript file, but to be able to do that in the admin GUI would be great.

              Unfortunately the tooltip did not work. And when you set the button without label a user might not get, what to put into the field, which a tooltip could explain.

              And a last one: To open in a new broser window. This would be handy, if you open another webapp with the button, where you want to exchange data by drag and drop.
              For example: I administrate artwork in my espoCRM, the images of the piece of art are part of the record. With the button I open a third party app, which creates virtual exhibitions, where I have to place artwork in the offered rooms/walls. This is possible by drag and drop from espoCRM to the other app, but it has to be in different windows. Meanwhile I use the pop-up for opening the other app in an own window. With a new window I could place espoCRM and the other app side by side.

              german language file: Admin.json
              Attached Files

              Comment


              • Kharg
                Kharg commented
                Editing a comment
                Hello,

                Thank you for your kind words.

                Yes, once I saw your portal I thought that this extension would be perfect for it!

                I will add the popup size in the next update, good idea!

                If you hide the label the tooltip will not be visible, I think that’s why, as a workaround you can add a title to the button.

                The option to open a link in a new tab has been added to version 1.5.0, did you test it out?

              • shalmaxb
                shalmaxb commented
                Editing a comment
                yes, I tested "open in a new tab", but that is more complicated, when you want to drag from one app to another. Then the other app has to be in a new browser window, otherwise dragging it to the other tab would open the image and not insert into the other app.
                In the moment I use the pop-up to drag from my app to the other.
                And pop-up position would be fine as well.
            • ThomasB
              Senior Member
              • Mar 2022
              • 163

              #30
              You already have a pull request, Kharg, for the translation.

              Comment


              • shalmaxb
                shalmaxb commented
                Editing a comment
                Oh, I did not see that

              • Kharg
                Kharg commented
                Editing a comment
                Will merge it once I complete the new version, I will probably ask you to translate some more strings.

                Thank you!

              • shalmaxb
                shalmaxb commented
                Editing a comment
                of course you may count on my help for translation I can also provide translation in portuguese.
            Working...