Hello Everybody,

with views2, i designed a view for different cck-fields. one of the fields (a textfiled) should instead of showing up completely just show up as link. when clicking the link, the content of the textfield will display in a lightbox.
I am not that experienced in drupal module development, maybe someone has some hints?
Thank you,
Adam

Comments

ipwa’s picture

Something like this in your node template for that content type:

<a href="<?php print $node_url ?> #myDiv > *" rel="lightmodal[|height:400px;width:400px]">Show me mytextfield</a>

<div id="myDiv" style="visibility:hiddens" class="panorama-box miembros">
  <div> <!-- inner div necessary: http://drupal.org/node/927262 -->
    <?php print $field_mytextfield_rendered ?>
  </div>
</div>

Nicolas
-------------------------