Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I created a view with a page url.
I would like to add a viewfield to my content type.
But instead of rendering the view, I would like to render the url of the page.
I would like to be able to pass in the URL argument.
Use case:
I am using views_ical to create an ical ics file.
If I change the page url I would like the event content type to recognize it automatically via the viewfield
Comments
Comment #2
jerdavisThis would be a feature request for an additional field formatter. Updating issue category.
Comment #3
jerdavisComment #4
jerdavisGiven the ease in adding your own field formatters in Drupal 8, I'm going to recommend that you implement this in either a custom module, or a related contrib module. There are a lot of different display formatters that don't provide a route to view the results. To me, that makes it problematic to provide a formatter in the standard module that would only function properly with page displays.
If you do create a extensions module with a formatter for this, please let me know and I'll be happy to link to it on the project page.