List of all published site - umbraco

My company is using Umbraco for a project having many nodes, in turn having published and unpublished sites. My requirement is to get a list of all published site across all node in an xslx, csv etc. Is there any way to get this without hitting Umbraco extented APIs?
Can some help?

If you don't want to use the Umbraco services, SQL is probably the best solution
The following query returns all hostnames that are linked to published nodes:
SELECT domainName
FROM [dbo].[umbracoDomains] as domains
INNER JOIN [dbo].[cmsDocument] as documents
ON domains.domainRootStructureID = documents.NodeId
WHERE documents.Published = 1

Related

Azure resource graph query - getting data on VMs

I am new to Azure resource graph query.
I would like to use resource graphy query to find out information on virtual machines.
Is it possible to create a query to get a list of Virtual machines that have been deleted for a specified period? The scope is for all subscriptions.
Thanks,
buddd
yes, you can filter by the TargetResourceType as virtualmachines & change type as Delete. This way you get all deletions happened within 30days(I guess)

Linking external resources to Neo4j nodes

I can give the url as a property to a node in Neo4j. Is there a way through which on click of the property/node,Neo4j can open that URL?
Or is there any way through which I can link external resources to Neo4j nodes?
If you store a URI in a node, it's up to your app to determine what to do with it (such as following the link). Neo4j is not going to reach out to external resources for you.
Not sure exactly what you mean by
link external resources to Neo4j nodes
If you're implying that something external to Neo4j can have a link (pointer, URI, etc.) to a Neo4j node, then no: This is again the domain of your app to provide some type of linkage (via api or any other technique). Just like you cannot have a direct link into a row of a relational database. Not only are you exposing data directly, this would imply bypassing any business rules, security, etc.
It might be too late to answer but still I would like to mention it here.
Simplest solution would be to just add your url/hyperlink as a property to the node. Neo4j Browser, Bloom, Graph X(Kineviz) support hyperlinks and redirect you to the corresponding website when you click on the url/hyperlink.
Example: I have a node called studies. I am adding hyperlink based on the id. Note that the hyperlink will be different for nodes with different nct_id.
CQL :
match( n:studies)
set n.link= case when n.nct_id =null then null else ('https://clinicaltrials.gov/ct2/show/'+n.nct_id) end

How to use internal links with wildcard items in Sitecore?

I have a multiple site Sitecore solution. All the sites share a product range which is stored inside a 'Shared data' node that sits at the same level as the root nodes of the sites. The individual product pages on a site use a wildcard item to lookup the product based on the last part of the URL.
This means that we can't use internal links in the rich text editor to point to the product page on any of the sites because the product item does not have a specific site URL.
Does anyone know of a way to overcome this, or perhaps know of a way to augment the default behavior of interal links?
Have you considered using cloned items, see here for details.
This would allow you to share the content whilst having the appearance to the end user of the Products being inside the content tree allowing you to use the RTE and internal link look ups?
For extra information about clones, see here and here
You'd also need to do some work in the link provider to link to the cloned version of a product if you wanted. See this question.

Missing SharePoint Server Publishing Infrastructure feature in SharePoint 2007

I am trying to display a sql query result on a page in my Sharepoint site. After looking around I found instructions on how to do that using the Content Query Web part. The instructions to enable that feature instructions here include activating the SharePoint Server Publishing Infrastructure. I currently don't have that option. Is there something I can install to my sharepoint site to get that option? Is there a better/easier way to display the results of a sql query in sharepoint?
Make sure to look in your "site collection features" instead of your site feature. This feature needs to be activated at the root level of the site collection.
FYI the Content Query WebPart only retrieve content from your site collection (by crafting a relevant CAML query, which is finally transformed to SQL query). You don't have the possibility to create a direct sql query and receive the result.
If you need to query another database than the one SharePoint is using (avoid accessing it from SQL at all cost !), you'll need to rely on the Business Connectivity Service, a data view webpart (using SharePoint designer), or create a simple webpart that will be responsible for everything (connecting to the db, doing the query and rendering the result in any way).
Hope it helped.

Sharepoint and Cross-Site Lookup

I have this scenario
I want to build two sharepoint 2007 sites. One for customers info and the other for products and
customers orders.
Now the problem is that in the second site I need to reference the customers info from the first site but unfortunately sharepoint doesnot provide out of the box cross-site lookup.
I did some search and found custom cross-site fields and used one but when I upgraded the
site to sharepoint 2010 this custom field was not compatible and the upgrade wizard said it could not be upgraded.
so what is the solution for this ? is it to merge the two sites so that I can use the standard lookup feature or is there any workaround for this ?
please if any body has faced such a scenario, share the solution with me ?
thanks
If the sites are in the same site collection, the out of the box lookup field can work across sites. The browser UI does not show it, but you can set LookupWebId on the field through either the api or a list template.
Given your specific scenario though, it would probably make more sense to set up the customers as users (possibly via a custom membership provider) and just use a standard user field.
you need to create new custom field type for fetching customers info from the first site and it can be added your list.
The below site can help you:
http://vspug.com/nicksevens/2007/08/31/create-custom-field-types-for-sharepoint/

Resources