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'm trying to create a new plugin argument that can take a Node's URL instead of just the NID.
I'm using the following file as a template:
/sites/all/modules/ctools/plugins/arguments/nid.inc
I have copied it and renamed it to:
/sites/all/modules/ctools/plugins/arguments/nidurl.inc
... and started modifying the code. Problem is I don't see my new argument as an option in Panels.
How do I get my new argument to show up in Panels?
Comment | File | Size | Author |
---|---|---|---|
#3 | 1718258-3.patch | 629 bytes | shubham.prakash |
Comments
Comment #1
japerryI ran into a similar issue, I noticed around line 452 of plugins.inc, the filename being called was 'entity_id' which was the previous filename of the last loaded plugin.
This causes new arguments to never be called. I removed the check with this patch, so lets see if it tests okay. I was having trouble finding out why that check actually had to be there anymore.
Comment #2
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 4 year old patch to plugins.inc does not apply to the latest ctools 7.x-1.x-dev and if still applicable needs to be rerolled.
Comment #3
shubham.prakash CreditAttribution: shubham.prakash at OpenSense Labs commentedComment #4
MustangGB CreditAttribution: MustangGB commented