php - Drupal print breaks when rendering a region -
i've come across bit of stumbling block
<?php print render ($page['pages_machine_name']); ?>
code in drupal site. issue started when moving 7.33 7.36.
what happens is, rather display content of page, in instance <ul>
, puts several wrapping <div>
s , <span>
s round <ul>
, it's content. fine, happens is, render out incomplete links , such, break rest of page:
<a href="http://www.domain.co.uk<div class=" field="" field-name-field-link-three-url="" field-type-text="" field-label-above"="">"> <div class="field field-name-field-link-three-name field-type-text field-label-above"><div class="field-label">link 3 | name: </div><div class="field-items"><div class="field-item even">our people</div></div></div></a>
as can see, end of website's domain marked less rather actual symbol , such, breaks other tags follow it.
know causing , can done fix it?
in advance can provide :)
when searching found page link on which, code offers following solution: (edited 'filename' 'value' get text value inside field) <?php print $node->field_name_goes_here['und']['0']['value']; ?>
delivers looking for, in case, content of field. hope can other in future.
Comments
Post a Comment