Would be very nice if there were an ability to add custom contextual links to custom entities.

Comments

bkoether’s picture

Status: Active » Postponed (maintainer needs more info)

Hi Niremizov,

Do you mean when custom entities are displayed in a view?
Can you give me a bit more detailed example?

Thanks,
Ben

Niremizov’s picture

I thought in Views, it is already possible to use Global:Contextual links field, for that purpose.

But I was talking about admin/config/user-interface/ccl page, where we can add new contextual links to nodes. Thus, it would be cool if there was an ability to add ccl to custom entities. This is useful, when you output contextual links programmatically, without using Views.

mrharolda’s picture

I have a patch here that transforms CCL's core 'node' selector to an 'entity > bundle' selection. This however is quite a rebuild that affects allmost all code in ccl.module and ccl.admin.inc, so I decided to leave those alone and builld another submodule, that could eventualy replace CCL core's node-implementation (as nodes are also just entities).

Implementing the ccl_entity support for your custom entity could be a matter of implementing 2 simple hooks, but unfortunately this still only lives in my head ;)

More to follow somewhere in the future!

adamgerthel’s picture

Issue summary: View changes

Any updates on this? Support for any entity would be very useful

bkoether’s picture

Assigned: Unassigned » bkoether
Status: Postponed (maintainer needs more info) » Postponed

I'm putting everything that is a new feature on hold until I'm able to clean up the issue queue and until after a possible D8 migration.

bkoether’s picture

Status: Postponed » Closed (won't fix)

I'm closing this as no further feature development for the 7 branch will happen. However, I will add this as a possible feature for the D8 version.