Thanks for wonderful module.

I have a webform for which all links open in a colorbox and I am using this module to allow customers to create content links. To open webform into colorbox i need to give class attribute and with the current settings customers manually entering this class name.

So, is there a way to set up this default in attribute section of linkit profile page?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

anon’s picture

Not in the UI, But you can use some hooks to make this work.

Check my linkit extender module here https://github.com/bratanon/Mymodule/tree/7.x-3.x.
Make sure to use the 7.x-3.x branch.

abarpetia’s picture

Hello Anon,
Thanks for quick reply, My company won't allow me to use custom modules so, is there any way to have this feature implemented in this module?

Thank You,
Aniket

anon’s picture

Status: Active » Closed (works as designed)

Unfortunately not.

plopesc’s picture

Status: Closed (works as designed) » Needs review
FileSize
4.86 KB

Hello anon

I needed this feature for a project and created a patch for this. I think it's a useful feature.

I added a new column "Default value" in the attributes table to set the default value for each attribute at plugin level.

Could you take it into account fo the next module release?

Thanks!

Status: Needs review » Needs work

The last submitted patch, 4: default_values-2419023-4.patch, failed testing.

The last submitted patch, 4: default_values-2419023-4.patch, failed testing.

The last submitted patch, 4: default_values-2419023-4.patch, failed testing.

The last submitted patch, 4: default_values-2419023-4.patch, failed testing.

The last submitted patch, 4: default_values-2419023-4.patch, failed testing.

plopesc’s picture

Status: Needs work » Needs review
FileSize
4.93 KB

Sigh...
New patch passing tests.

Status: Needs review » Needs work

The last submitted patch, 10: default_values-2419023-10.patch, failed testing.

plopesc’s picture

Status: Needs work » Needs review

Tests are passing. There are issues with line endings: Ensure the patch only contains unix-style line endings.

But I think this is out of the scope of this patch. theme.inc file seems have different line ending chars.

Thanks.

Chris Matthews’s picture

Version: 7.x-3.3 » 7.x-3.x-dev

The 3 year old patch in #10 applied cleanly to the latest linkit 7.x-3.x-dev, but still needs community review & testing.

Applied patch includes/theme.inc cleanly.
Applied patch plugins/export_ui/linkit_profiles.inc cleanly.
Applied patch plugins/linkit_attribute/accesskey.inc cleanly.
Applied patch plugins/linkit_attribute/class.inc cleanly.
Applied patch plugins/linkit_attribute/id.inc cleanly.
Applied patch plugins/linkit_attribute/rel.inc cleanly.
Applied patch plugins/linkit_attribute/target.inc cleanly.
Applied patch plugins/linkit_attribute/title.inc cleanly.