1 baileyjs Jan 15, 2008 17:47
3 edb Jan 15, 2008 20:39
Try this:
$Item->permanent_link( array('class' => 'permalink_right" target="_blank'));
The trick is that whatever you put in for class will get double-quote marks put around it, so the above bit would translate to:
<a href="whatever" class="permalink_right" target="_blank">foo</a>
4 yabba Jan 16, 2008 00:07
I'm not 100% sure that this will work, but
$Item->permanent_link( array('class' => 'permalink_right', 'target' => '_blank'));
and to think I spent hours getting target="_blank" out of the core, that and bloody border="0" :-S
¥
5 john Jan 16, 2008 00:19
and to think I spent hours getting target="_blank" out of the core, that and bloody border="0"
Time well spent :)
6 yabba Jan 16, 2008 00:27
ohh yeah ;)
¥
7 baileyjs Jan 16, 2008 04:35
¥åßßå, class="permalink_right" passed through in the link, but not the target part.
EdB's suggestion was on the mark.
<?php
$Item->permanent_link( array('class' => 'permalink_right" target="_blank'));
?>
Now, I just need to pass the title rather than just the permalink. Neither of the following things I tried did what I am looking for.
<?php
$Item->title( array('class' => 'permalink_right" target="_blank'));
?>
<?php
$Item->title( array(
'link_type' => 'permalink',
'class' => 'permalink_right" target="_blank',
) );
?>
According to http://manual.b2evolution.net/Tag_item_anchor you start of with:
The link_before things come before the < or link_after after >. These are normally spaces, but you may want to make a seperated list with " | " or <li>. So these are not what you are looking for.
You may try:
but that's more like a JavaScript popup.
Good luck