Link it support for pages created using views

Created on 7 April 2017, over 7 years ago
Updated 7 June 2024, 6 months ago

Problem/Motivation

Linkit is an awesome module that has almost the possibility to create suggestions for everything. Not totally since Views displays that has "uses_route" (for instance page display) cannot be added in the suggestions.
This is a big flaw since Views is part of core and an important tool to create pages that could be referenced in nodes.
I would emphasis this feature is needed from the two following indicators:
- it used to be possible in former versions
- the number of followers on this issue

Proposed resolution

A new matcher plugin for view having a path is proposed as a solution.
As described in #6 and according to my own researched, it will require an API change since we will need some extra information on the
substitution plugin side to target the appropriate display. In is commonly assumed indeed that a view can have multiple page type display.
It will also require a new deriver to authorize EntityMatcher for config entities. This is done to reuse EntityMatcher as a base class for the ViewDisplayMatcher to reuse code.

Remaining tasks


- review the patch and agree on a functionnal solution
- update tests accordingly
- review the whole patch
- enjoy

User interface changes

A new matcher (suggestion type) will be available from the UI: 'View display'.

API changes

\Drupal\linkit\SubstitutionInterface getUrl() method has to accept one more parameter.
This may break custom matcher plugins written by DX

Data model changes

None

--------------
EDIT: Original post:
Hi

How can I link pages created using views using Linkit module.

Thanks
Nijil

Feature request
Status

Needs review

Version

7.0

Component

Code

Created by

🇮🇳India nijinanijil

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024