Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
To move a part of html code into a other template like the page.tpl.php template,
you can do the following.
1. create a new region in your theme my_theme.info file.
something like that
regions[new_region] = Content from Views Template
2. now print out the region in your page.tpl.php
<?php if (!empty($new_region)): ?>
<?php print $new_region; ?>
<?php endif; ?>
3. go into your Views Template and add following code
<?php drupal_set_content('new_region', 'Here comes my html code from views.'); ?>
Make sure your new region is loaded. Goto admin/build/block