Closed (fixed)
Project:
Add Content by Bundle Views Area Plugin
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Jun 2025 at 15:20 UTC
Updated:
3 Jul 2026 at 11:02 UTC
Jump to comment: Most recent
Comments
Comment #2
erwangel commentedComment #3
erwangel commentedThis was pretty easy to do. Here is the code if someone wants to make a patch. Just put this in the render function before the $element array. For a full solution, we'll also have to create a new field 'login_label' in the settings form to hold the 'Login to add your @bundle_label' chain int the way the 'Add a new entry' is done in defineOptions() and buildOptionsForm(). For those who can't wait for a patch, the same can be achieved in hook_preprocess_views_view: filter on $variables['display_id'] and work the $variables['header']['add_content_by_bundle'] array.
Comment #6
astonvictor commentedComment #7
astonvictor commentedneed to update to support 2.0.x
Comment #9
astonvictor commentedmerged to 2.0.x
Comment #12
mandclu commentedAs an FYI, the title of this issue is "Add option..." but it doesn't actually add an option. It changes the behavior for all sites, which many sites (including ones I manage) won't want. I have opened #3608144: Add configuration to enable login button to provide this as a configurable option, defaulting to FALSE (to preserve the existing behavior for sites using prior versions).