OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums OroCRM OroCRM – Programming Questions OnlyOffice links

This topic contains 1 reply, has 2 voices, and was last updated by Yevhen Shyshkin Yevhen Shyshkin 10 months, 3 weeks ago.

  • Creator
    Topic
  • #37917

    Jay Weldy
    Participant

    Hi, first off thanks for a nice crm! I’m trying to setup an entity for contacts and possibly accounts similar to an attachment field entity but instead of an upload field I’d like to have a link field that exposes documents from a OnlyOffice document editing site I have. I’m assuming that I’d need to have these serialized and follow the general construct of a attachments entity, but otherwise I’m very lost!
    The general idea is to link the document url and have the document open in a new window for editing from OnlyOffice. OnlyOffice would basically handle everything else.
    I’ve looked at the setup of the attachment entity and have the general idea of how to do most of the other internal setup.
    Thanks for any comments or ideas on this.

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #37922

    Hello Jay Weldy.

    You may create new column(s) in the required entity (Contact or Account) as string or text – probably you should allow modification using standard form, but you should customize the way they rendered at view and datagrid.

    To render your field as link at view page you should mix your property to view page either by overriding main template at application level (e.g. Oro/Bundle/ContactBundle/Resources/views/Contact/widget/info.html.twig) or using listener (see example at Oro\Bundle\TaxBundle\EventListener\ProductFormViewListener::onView).

    To render your field as link at datagrid you should add new column and render your value there using twig template – see example in https://github.com/oroinc/crm/blob/3.1.0-rc/src/Oro/Bundle/ContactBundle/Resources/config/oro/datagrids.yml#L33-L37.

    Please let me know if that’s what you needed.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No