Jump to content


Photo

Targeting


  • Please log in to reply
3 replies to this topic

#1 Melachiah

Melachiah
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 16 October 2006 - 09:25 PM

I'm currently working on a project in which a constantly updating archives is accessed. I've gotten everything set up save one single problem.

I'm trying to get the data accessed from the links in the archive to open in an iframe.

The visual parameters of the page are controled nby a template, then the page sorts the archive. The only problem is getting the page to load the data into the iframe when the links are clicked.

The current coPHP page is listed below.

<?php
/*
Template Name: Archives
*/
?>

<?php get_header(); ?>

<div id="content" class="widecolumn">

<h2>Archives:</h2>
  <ul>
    <?php wp_get_archives('type=daily');?>
  </ul>


</div>	

<?php get_footer(); ?>


#2 printf

printf
  • Staff Alumni
  • Advanced Member
  • 889 posts

Posted 16 October 2006 - 09:44 PM

Any IFRAME is a frame, so just using simple HTML targeting should work.

<a href='url' target='iframe_name'>Target Anchor</a>


me!

#3 Melachiah

Melachiah
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 16 October 2006 - 10:06 PM

I understand that, however in this situation the line

<?php wp_get_archives('type=daily');?>

displays a list of content as it is updated. I want that displayed content to appear in an Iframe but there is no way for me to edit the links as they are created dynamically.  But I'm sure there has to be some way to instruct the links to open in a specific location.

#4 printf

printf
  • Staff Alumni
  • Advanced Member
  • 889 posts

Posted 16 October 2006 - 11:02 PM

show me what this.... (outputs)

echo wp_get_archives('type=daily');


me!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users