Hi guys... I am getting unusual behavior from contemplate. I attempted to insert tabs into a template. That worked, but php won't print anything after the tags. I have included the contents of my contemplate (body output) and that of the printed HTML. You'll notice that nothing after the Tabs is printed to HTML when the page is served - (test
Lorem ipsum dolor sit amet...) . ANy ideas? is this a Tabs issue?

Contemplate

<div class="clearfix">
	<div style="float: left; width: 465px;">
		<div id="locimage"><img src="/<?php print $node->field_image[0]['filepath'] ?>" alt="Logo" /> </div>
		<?php print $node->field_description[0]['safe'] ?>
	</div>
	<div style="float: right;">
		<div id="locgmap"> 
			<?php $points = array(
			'id' => 'map'.$node->nid,
			'width' => '450px',
			'height' => '260px',
			'latitude' => $location['latitude'],
			'longitude'=> $location['longitude'],
			'zoom' => 15,
			'controltype' => 'Small',
			'maptype' => 'Map',
			'markers' => array(array(
			'latitude' => $location['latitude'],
			'longitude' => $location['longitude']
			))
			);
			print theme('gmap', array('#settings' => $points)); ?>
		</div>
	</div>
</div>
            
		  $form['location'] = array(
			'#type' => 'tabset',
		  );
		  $form['location']['Pictures'] = array(
			'#type' => 'tabpage',
			'#title' => t('One'),
			'#content' => t('First tab content.'),
		  );
		  $form['location']['Hours'] = array(
			'#type' => 'tabpage',
			'#title' => t('Two'),
			'#content' => t('Second tab content.'),
		  );
		  $form['location']['Events'] = array(
			'#type' => 'tabpage',
			'#title' => t('Three'),
			'#content' => t('Third tab content.'),
		  );
		
		  return tabs_render($form); 
		  print $node->field_description[0]['safe'];
		  ?>test
		  <Br>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse nec mauris. Nam quis velit. Aliquam placerat, nibh vitae volutpat suscipit, dolor eros dictum nisl, at imperdiet dui velit id nulla. Sed at neque in dui consectetuer volutpat. Duis lectus enim, dictum ac, vestibulum quis, mollis id, enim. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Fusce vehicula luctus metus. Donec luctus. Integer magna. Sed sit amet eros. Quisque nec diam. Sed viverra orci ac diam. Vestibulum vestibulum turpis. Fusce ornare erat id orci. Donec rutrum orci vitae lacus. Suspendisse potenti. Nullam neque. Nunc vel neque et nisl ornare commodo. 

Output:

<div class="clearfix">
	<div style="float: left; width: 465px;">
		<div id="locimage"><img src="/sites/default/files/images/main/marquee[1].jpg" alt="Logo" /> </div>
		test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test 	</div>
	<div style="float: right;">

		<div id="locgmap"> 
			<div style="width: 450px; height: 260px;" id="gmap-map3-gmap0" class="gmap-control gmap-gmapgmap gmap-map gmap-map3-gmap">Javascript is required to view this map.</div><script type="text/javascript">
/* <![CDATA[ */
jQuery.extend(true, Drupal, { settings: { "gmap": { "map3": { "width": "450px", "height": "260px", "zoom": 15, "maxzoom": "14", "controltype": "Small", "align": "None", "maptype": "Map", "mtc": "menu", "baselayers": { "Map": 1, "Satellite": 1, "Hybrid": 1 }, "styles": { "line_default": [ "0000ff", "5", "45", null, null ], "poly_default": [ "000000", "3", "25", "ff0000", "45" ] }, "line_colors": [ "#00cc00", "#ff0000", "#0000ff" ], "behavior": { "locpick": false, "nodrag": 0, "nokeyboard": 1, "nomousezoom": 0, "autozoom": 0, "dynmarkers": 0, "overview": 0, "collapsehack": 0, "scale": 0 }, "markermode": "0", "id": "map3", "latitude": "47.647597", "longitude": "-117.425760", "markers": [ { "latitude": "47.647597", "longitude": "-117.425760" } ] } } } });
/* ]]> */
</script>
		</div>
	</div>
</div>
<div id="tabs-location" class="drupal-tabs"><ul><li><a href="#tabs-location-1">One</a></li><li><a href="#tabs-location-2">Two</a></li><li><a href="#tabs-location-3">Three</a></li></ul><div id="tabs-location-1"><h2 class="drupal-tabs-title">One</h2>First tab content.</div><div id="tabs-location-2"><h2 class="drupal-tabs-title">Two</h2>Second tab content.</div><div id="tabs-location-3"><h2 class="drupal-tabs-title">Three</h2>Third tab content.</div> 

Drupal 6.6
Content Templates (Contemplate) 6.x-0.16
Content Construction Kit (CCK) 6.x-2.0-rc10
jQuery UI Tabs 6.x-1.0

--
Thanks,
J.

CommentFileSizeAuthor
#1 Picture 4.png65.01 KBjrglasgow

Comments

jrglasgow’s picture

StatusFileSize
new65.01 KB

have you looked in your php error log, usually there will be an error there explaining the problem, probably in some eval()'d code.

I know the section in the attached image will also be causing some problems.

keesee’s picture

yes. No errors. weird. as far as the php tags go, there is a starting tag - I deleted it on accident when posting the code here.

robloach’s picture

Would panels be a better option here?

keesee’s picture

Hi Rob, Well... the short answer is yes. I am building on D6 however and panels isn't ready. If the node override feature was up and running on panels I'd play around with that as an option, but work remains to be done on panels for 6x. I plan to implement this with panels later but in the near term am using contemplate and tpl files to work around...

--
J.

dgtlmoon’s picture

Category: bug » support
Status: Active » Closed (works as designed)

In your template i see you have specified

...
  return tabs_render($form); 

you should change this to 'print' not return;