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&lt;div class=" field="" field-name-field-link-three-url="" field-type-text="" field-label-above"="">"&gt; <div class="field field-name-field-link-three-name field-type-text field-label-above"><div class="field-label">link 3 | name:&nbsp;</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

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -