OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – Programming Questions OnlyOffice links

This topic contains 1 reply, has 2 voices, and was last updated by Yevhen Shyshkin Yevhen Shyshkin 1 year, 5 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
  • #37917

    Jay Weldy

    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
  • #37922
    Yevhen Shyshkin
    Yevhen Shyshkin

    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)

The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.

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

Yes No