저는 드루팔 (Drupal) 테마를 처음 사용하고 있으며 특정 콘텐츠 유형에 대한 사용자 정의 테마 템플릿을 만들려고합니다. 내용이 실제로 주소 부분은 부모 사업부에서 부팅됩니다 렌더링과 같이 보입니다 때, 그러나Drupal render()가 다른 div를 강제로 닫습니까?
<div<?php print $content_attributes; ?>>
<?php print render($content['field_property_media']); ?>
<div class="field-label-above property-information">
<div class="field-label">Property Information</div>
<?php print render($content['address']); ?>
</div>
</div>
:
나는 다음을 시도하고
<div class="field-label-above property-information">
<div class="field-label">Property Information</div>
</div>
<div class="field field-name-field-property-address field-type-addressfield field-label-inline clearfix"><div class="field-label">Address: </div><div class="field-items"><div class="field-item even"><div class="street-block"><div class="thoroughfare">55 Duchess Ave</div></div><div class="addressfield-container-inline locality-block"><span class="locality">London</span> <span class="state">Ontario</span> <span class="postal-code">N6C 1N3</span></div><span class="country">Canada</span></div></div></div>
그럴 수 없어 왜 이런 일이 일어나고 있는지, 아니면 수동으로 작성한 div 내에서 주소를 유지하는 것이 해결책인지 파악하십시오.
생각하십니까?
나는 실제로 이것도보고 있으며, 나는 찾을 수있는 노드 출력을 변경하는 것이 아무것도 없다. 이 문제가 다른 곳에서 경험되고 반드시 괴상한 것은 아니라는 점을 지적하십시오. –