Closed (outdated)
Project:
Link
Version:
7.x-1.0-alpha3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Feb 2011 at 03:42 UTC
Updated:
31 Aug 2024 at 11:01 UTC
Jump to comment: Most recent
Comments
Comment #1
spgd01 commentedSubscribe
Comment #2
wjaspers commentedFor simple forms Colorbox recognizes, use this format:
<a href="/colorbox/form/<form_identifier>?width=<pixels>&height=<pixels>" class="colorbox-inline">This will open a colorbox modal</a>You also have to ensure the Colorbox module setting (admin/config/media/colorbox) for "Colorbox-inline" is enabled, or it won't be loaded into the
<head>of the page.EDIT: Sorry if I confused anyone. I was scouring drupal.org for Colorbox issues, and inadvertently thought this was in Colorbox' queue.
Comment #3
jcfiala commentedThis sounds more of a support request than a feature request. sammyd56, does what wjaspers posted help you?
Comment #4
wjaspers commentedI think what he was asking is if a link could trigger a Colorbox automatically.
Actually, I have an idea. In newer versions of Views 7.x you can add class/id/rel info to link outputs. All you should need to do, is ste the link's class to "colorbox-load" or "colorbox-inline". If you need to link an iframe, just add
&iframe=trueto the rewriter information for the URL.If you only need to display it in a particular situation, and the link is the only item being pulled together, or you don't want to use views to get it, wherever your template file contains your link field info, add
print l(t($varname['title']), ($varname['url']."?iframe=true"), array('class'=>'colorbox-inline'));Comment #5
dqdI'll close this issue due to inactivity for 12 years and upcoming EOL of Drupal 7 in January 2025. While the project version for Drupal 7 will keep providing support for security issues and website breaking bug fixes for Drupal 7, we should try to minimize the open issues for Drupal 7 in the queue as much as possible. Thanks for the report and all the efforts in here. Feel free to re-open if you can provide a fix or found an additional related problem which increases the issue priority to "Critical" here.