5 / 5
Jan 2021

Dear Developers,

First of all, Happy new Year!

In the following line

Nextmatch gets a value for ‘query’ and ‘title’ “callback” based on the dataStorePrefix from the registry.

I have defined 'infolog.infolog_ui’ as a dataStorePrefix

The question is how I can set a value for ‘title’ and ‘query’ in setup/hooks so that egw.link_get_registry can find it
not based on the app but on the above mentioned dataStorePrefix 'infolog.infolog_ui’

Thank you for your support and best regards!

Alex

  • created

    Jan '21
  • last reply

    Jan '21
  • 4

    replies

  • 1.2k

    views

  • 2

    users

  • 8

    links

Hi Alex,

you can set the registry for your app with a “search_link” hook:

An example would be eg. InfoLog:

Ralf

Hello Ralf,
thank you. I have used that before. As I understand this registers i.e. ‘query’ for the app infolog.
But I would like to register ‘query’ for my dataStoreprefix ’infolog.infolog_ui’ . It there a way to do this?

In projectmanager I found

So it seems that there is a way to hook additional ‘keys’ for an application to the registry.

But the dataStoreprefix ‘projectmanager_elements’ of the project elements has not the same key i.e. ‘projectelement’

So I am quite confused…

Thanks again for your support

Alex

I just commit something similar for SmallPART, our new online learning app:

It has courses, consisting out of videos/lectures/tests and for tests questions:

  • regular “smallpart” link-registry defines everything for courses
  • “smallpart-overlay” defines the link-registry for questions
  • questions have an own index page / list, which uses “smallpart-overlay” as datastorePrefix
  • if a question is changed we call Framework::refresh_opener(“smallpart-overlay”, $overlay_id, “edit”)
  • to make the refresh work, I have to call $temp->set_dom_id(“smallpart-overlay”), as my template is called “smallpart.questions”

Ralf

Hello Ralf,
thank you, it worked :grinning:
I still an issue with the link creating from Nextmatch, but his is another issue…
BR
Alex