Recent Topics

1 Jan 15, 2008 17:47    

My b2evolution Version: Not Entered

Wayback when I posted a question and got the solution to modifying summary.php to create a link with a target="_blank" tag. See: http://forums.b2evolution.net/viewtopic.php?t=10224

I would like to recreate this with 2.3.x, but the manual page at http://manual.b2evolution.net/Tag_item_title is not much of a help.

Adding a 'before' and 'after' array only resulted in a double hyperlink.

Thank you for the help.

2 Jan 15, 2008 18:13

According to http://manual.b2evolution.net/Tag_item_anchor you start of with:

$Item->permanent_link( array('class' => 'permalink_right'));


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:

'use_popup' => false,


but that's more like a JavaScript popup.

Good luck

3 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 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 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 :)

7 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',
	) );
?>


Form is loading...