php - Wrap output with link from field in drupal views -


i have view outputting list of nodes contain link, image , text.

i want use link field wrap output (rather link node), can't figure out how raw url/title etc create create link in template.

the field configured output url plain text, wrapped in div/spans regardless of style settings view field.

views-view-fields--my-view.php:

<a href="<?php echo $fields['field_link']->content ?>"> <?php foreach ($fields $id => $field):     if ($id == 'field_link') continue;     ?>   <?php if (!empty($field->separator)): ?>     <?php print $field->separator; ?>   <?php endif; ?>    <?php print $field->wrapper_prefix; ?>     <?php print $field->label_html; ?>     <?php print $field->content; ?>   <?php print $field->wrapper_suffix; ?> <?php endforeach; ?> </a> 

this produces:

<a href="<div class=" data-thmr="thmr_72"><div class="field-items"><div class="field-item even"><span data-thmr='thmr_24' class='devel-themer-wrapper'>/drupal/%237digital-buy</span></div></div></div>">    [...] </a> 

which not need.

found solution. need rewrite output. see below.

enter image description here


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -