keyongtech


  keyongtech > sharepoint.* > sharepoint.design_and_customization > 03/2007

 #1  
03-26-07, 02:57 PM
JJ
In MOSS 2007, I have some links in a Links list. Using the Content Query
Web Part, I can display those links, but they open in the current browser
window.

I am looking at the ItemStyle.xsl file and all of the templates have this:

<xsl:variable name="LinkTarget">
<xsl:if test="@OpenInNewWindow = 'True'" >_blank</xsl:if>
</xsl:variable>

It looks like it will look at a "OpenInNewWindow" field - is it possible to
add this to the Links list? (Adding a field named "OpenInNewWindow" doesn't
seem to do it - that looks like an "internal" field name.)
 #2  
03-28-07, 01:02 AM
Adri Verlaan [MSFT]
Once you added a field named "OpenInNewWindow" to your list, you then have to
tell the Content Query Web Part to request that field using the
CommonViewFields property.

http://msdn2.microsoft.com/en-us/library/ms497457.aspx

Adri [MSFT]
 #3  
03-29-07, 10:16 PM
Vaughn
This still works even though it was designed for WSS 2.0. You might have to
sign up for a login.

https://mindsharpblogs.com/todd/arch...08/16/654.aspx


"JJ" wrote:
[..]
Similar Threads
Links to open in new browser window

I am using MOSS 2007. I have a "links" list that I display using the webpart that is created for the list automatically. How can I set it up in a away that when my users...

Email links won't open browser window

This problem just started today. I get emails from companies that direct me to their websites. Usually, I click and go. But today none of these email links are working. I...

Want the Links to open a new web browser window...

Good day, I am looking to get the Web Sites listed in the Links section on my WSS site to open up a new window as apposed to taking over the current browser. Is there a way...

How do you format links to open in a new browser window?

I am trying to figure out how to format links so that when a user clicks on them, their browser will open the linked files (whether a document or another web page) in a new...

Setting up browser to open links in a new window

(blush) I've been a comp user for 4 years now, burt I recently got a new machine, I can't remeber where to find the settings to get my browser to open links in a new window,...


All times are GMT. The time now is 01:25 AM. | Privacy Policy