?
Solved

LinkUrl for events retrieved from cqwp is wrong

Posted on 2010-01-01
6
Medium Priority
?
813 Views
Last Modified: 2012-05-08
I am trying to display events in my content query web part with custom xslt file. I want to provide a link to the event and so I have used the LinkUrl from within the xslt to get the url. But this is returning a wrong url. It is of the format http://mysiteurl/Lists/ListName/1_.000 which is wrong. Could anyone have any experience with this kind of issue?
If someone has tried to display events within a content query web part, then probably you might have experienced this.
0
Comment
Question by:sharepointuser
  • 3
5 Comments
 

Author Comment

by:sharepointuser
ID: 26157714
In the example he is using the LinkUrl itself to get the url, but in my case it is not working. As I have mentioned above I am getting the url as http://mysiteurl/Lists/ListName/1_.000 .
I have tried it and it works with items in the Pages library. It does not work with Calendar or Events. Maybe we have to use some other attribute. Please let me know if you have an idea on this.
0
 
LVL 9

Accepted Solution

by:
psgindiana earned 2000 total points
ID: 26166679
Instead of LinkURL, try a string concat of the following:

"http(s)://yourserver/" + item.Path + "/DispForm.aspx?ID=" + item.ID

You can change DispForm.aspx to whatever display form you want to use.
0
 

Author Comment

by:sharepointuser
ID: 26168914
can we do this from xsl? could you please provide some code sample for the same?
0
 

Author Closing Comment

by:sharepointuser
ID: 31671758
Thank you. I will try this out from xslt.
0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When installing SharePoint 2010 RTM I came across a strange error, I was getting timeouts during the installation. I searched the web and found the best solution to be found here (http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010genera…
SharePoint Designer 2010 has tools and commands to do everything that can be done with web parts in the browser, and then some – except uploading a web part straight into a page that is edited in SPD. So, can it be done? Scenario For a recent pr…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question