Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datalynxview field: wrong datalynx instance ist used for filtering patterns #150

Open
dasistwas opened this issue Jan 19, 2021 · 2 comments
Assignees
Labels
bug urgent Urgen task

Comments

@dasistwas
Copy link
Member

When I add a datalynx view field pointing to a "external" datalynx instance to a datalynx instance then, the pattern of the current datalynx is filtered instead of the external one:

Pattern used in the view of the external datalynx instance:

#{{viewlink:Verwaltungsansicht;Zum Eintrag in der ExpertInnendatenbank;eids=##entryid##;}}#

This pattern does not refer to the external instance, but to the same instance where the datalynxview-field is used.

@dasistwas
Copy link
Member Author

additional info: viewlink is wrong, ##entryid## is correct. So the view "Verwaltungsansicht" is pointing to the current datalynx, (it happens that boths views have identical view names) but the entryid is used from the external datalynx (which is correct)

@michaelpollak
Copy link
Collaborator

I looked at that and it is quite tricky.
When we see a tag we check what views are used by looking for the dataid in the views table (get_all_views). You at that point want to add another dataid (d in the urlparams) that we have no access to at the moment.

Easiest way I was able to test is to add the dataid d as a specified urlparameter, extend your link like this:

#{{viewlink:Verwaltungsansicht;Zum Eintrag in der ExpertInnendatenbank;d=???|eids=##entryid##;}}#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug urgent Urgen task
Projects
None yet
Development

No branches or pull requests

2 participants