Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Opening docs in new browsers (XSL stylesheets)

  Asked By: Faith    Date: Mar 25    Category: Sharepoint    Views: 1404

I've been trying to get all documents to open in additional internet
explorer windows (i.e. using target="_blank" tags on hyperlinks) to
stop people being thrown out of the portal when viewing documents.
For most web parts this is very easy, however the documents webpart
on the document library dashboard has proved a problem.

This webpart uses folderitemspart.xsl to format the data into HTML
code, and I have amended the code so it opens items in new browser
windows. But it does this for both sub-folders and documents, which
is really annoying (and therefore obviously not wanted). Has anyone
else tried amending this xsl stylesheet to open docs in new browsers,
or know of any tricks to help differentiate between folders and
documents??

Share: 

 

6 Answers Found

 
Answer #1    Answered By: Mason Salazar     Answered On: Mar 25

We have tried modifying the code  in folder
items.xsl
in the following manner .PSA
try this out. there is some property called is
Iscollection which is used to detemine if an object is
folder or document.

 
Answer #2    Answered By: Jesus Davis     Answered On: Mar 25

Managed to get that working, and have amended almost all links so
that docs  open in new browsers. Still have one place left which is
driving me mad!!

Does anyone know where the files that create the version history page
are kept? I have looked for standalone dashboards and xsl
stylesheets and can't find anything. Any ideas would be appreciated
regarding this page

 
Answer #3    Answered By: Narasimha Kamane     Answered On: Mar 25

where do you put the target="_blank" tags  please?
Am Working with the News and Categories webparts.

 
Answer #4    Answered By: Fidel Crane     Answered On: Mar 25

for categories you need to modify the
categoriesitempart.xsl and for the news wepart you
will
need to modify the xsl  in the webpart  settings itself

 
Answer #5    Answered By: Akshara Sanghavi     Answered On: Mar 25

The target="_blank" goes into the <a> tag. Example:
<a target="_blank" href="http://servername/workspacename/dashboardname">click here to open  in a
new window</a>

 
Answer #6    Answered By: Aishwarya Dixit     Answered On: Mar 25

but the categories needs
to differentiate between documents  or categories, in the same way as
the folders items  needs to differentite between folders  and documents
(in my previous posts). I have a hunch that it is matter of testing
the iscollection property of the item in the xsl  code again. As if
you just change the <a> tag to < target="_blank">, every time you try
to navigate through the category heirarchy, it will open  a new
browser.

 
Didn't find what you were looking for? Find more on Opening docs in new browsers (XSL stylesheets) Or get search suggestion and latest updates.




Tagged: