CAML to show only Sites in Sharepoint 2007 - sharepoint-2007

I need to view only the available sites defining a CAML-structure view in the Content and Structure Reports webpart.
I've tried using both Stramit Caml Viewer and U2U Caml Query Builder 2007 but they doesn't seem to support the objects I wan't to show (sites and subsites).

If you just want to view then cant you use Power shell?
take a look at this Link which is uses powershell script to get data from web application.
https://sharepoint.stackexchange.com/questions/47536/best-way-to-get-all-subsites

Related

How to show external webpage on Sharepoint 2007?

I need to show a static html webpage in a Sharepoint 2007 environment (webpage made with Gatsby if that would matter).
Is this possible?
Hosting the page somewhere else and loading it in an iframe is also an option. Is loading external pages by means of a webpart possible?
I guess you can use the Page Viewer web part to accomplish the same.
Let me know if that helps or you need further details

How do I embed TFS charts in my page?

I need to embed charts from TFS (Microsoft Team Foundation Server) in a simple HTML page. The chart editor allows me to copy the query URL, but i don't see any elegant way to embed the chart itself. Any advise on how to get individual charts from a TFS instance on my own web page?
At present, you don't. There's no supported way to do that.
Allow you to copy the query URL cause it's Query-based charts which generate data from the work item tracking data store and therefore displays the most recent data. You could add it to dashboard, but it's not able to embed them in a normal HTML page outside of TFS.
There has been a related uservoice, which you could use the Chart for work items widget:
Embed Dashboard Widgets outside of VSTS / TFS
https://visualstudio.uservoice.com/forums/330519-visual-studio-team-services/suggestions/13784832-embed-dashboard-widgets-outside-of-vsts-tfs
You could vote up for it and TFS admin/PM will kindly review your suggestion.

Customize the TFS web dashboard

Like the title says, how can I customize the web dashboard in TFS 2012? I have created my own Work Item Type and would like a shortcut on the home page of Team Web Access. I am using the default Team Web Access page and I would just like to have a shortcut button immediately on the front page instead of in a dropdown, which is where it's contained now.
Thanks!
There is no supported way to do this. In TFS 2015 they have the concept of Web Extensions, but that is only for specific extension points which doesn't include changing the home page.
You can do it in an unsupported manner, but I wouldn't recommend it. You can find the ASPX/CSS/JS files on the server that TFS uses for the web site and hack away at them. I've known people that have done this before. But there are probably repercussions when it comes time to upgrade.
For posterity, I've found a dirty solution to do this without cloning the website and gutting it (as described here: http://awaitwisdom.com/how-to-extend-tfs-team-web-access/). Note that this solution is really dirty and may not fit your project needs.
The solution works by swapping the default work item options (based on the process template you are using).
Use WITADMIN to export your Categories into an XML. Find a work item currently on the front page that you're okay with swapping out for the work item you want to be on the front page. Change "DEFAULTWORKITEMTYPE" to "WORKITEMTYPE" in the tags. Add a new entry: and it should show up as one of the shortcut buttons on your home page.
I highly recommend doing your modifications with Microsoft TFS Power Tools 2012.

Using the razor engine in SharePoint 2013 Visual Web Part

I'm trying to make use of the razor engine in a SharePoint 2013 Web Part. This, I read, shouldn't be too difficult since SharePoint 2013 Visual Web Parts can be built using .NET Framework 4.0
I'm simply not sure of where to begin to do this. I've seen an article on uploading the .cshtml file onto a document library and referencing the document library in the Web Part, but it is a bit unclear.
Does anyone have an idea of how I can start? Or point me to a step-by-step guide to achieve what I am after.
What my end goal is: Take a piece of an MVC application, customize it and make it a Web Part. I need to be able to modify or access SharePoint content on that site which is why I cannot use an App Part.
Okay.
First install the Office Development Templates from
http://www.microsoft.com/visualstudio/eng/office-dev-tools-for-visual-studio
This will give you the following template selection on reopening Studio
Then navigate to wherever EwsManagedApi32.msi is and enter the following command in an elevated prompt -
EwsManagedApi32.msi addlocal="ExchangeWebServicesApi_Feature,ExchangeWebServicesApi_Gac"
Now your templates are usable and the one you want is "VS2012 Web Part".
Now, by default this will add an ASP.NET project, which is not what you want, so manually delete the ASP.NET project, add an MVC one, highlight the SharePoint project in Solution Explorer, hit F4, and select the MVC project in the "Web Project" dropdown at the bottom of the properties.
And there you go. One controller per web part, sorted.
I am sharing link SharePoint MVC webpart that uses Knock out framework using MVC for SharePoint. It has step by step instructions which might help you.
Hope this will be a good starting point
http://www.codeproject.com/Tips/739445/SharePoint-Razor-View-WebPart

MVC 3 create Microsoft Word report Document

I have a project where I need to create a Word document report based on some items which custumer can choose on MVC 3 (Razor) website.
Is it possible in any way? The only solutions I can find is report in Excel.
Do I need to create Word Templates?
I would probably use the: Open XML SDK 2.0 for Microsoft Office
there are many advantages in doing this like no need to instantiate Word on the web server, probably not even need to have it installed...

Resources