Content Management Api to POST media files from external source - episerver

I am looking for a solution in episerver to add media files from external sources into episerver.I am aware that episerver has recently released Episerver Content Management API to post contents within Episerver.Is it possible to use this for media files as well.As this is newly introduced in episerver, i cant find any references other than the documentation within epi which has more of CRUD operations on Content.Can someone please point out some reference links for me to get this started?
Any input is appreciated.
Regards,

The content management API is useful if you want to create a headless website that talks to Episerver via an API to get content.
Depending on what you want to use the media for will depend on the optimal approach. I assume you want the content editors to be able to pick these items from within the CMS? If so there are two main appraoches:
You could write a scheduled task using the content repository API to import the media into the Episerver media library
The other option is to create a content provider, so the media is available in the editor, read this to learn how to do it. This option is more fidley so I would go with option 1 if possible.
If you just want to render images on a web page, then call the API using AJAX. Job done!

Related

Building PDF watermark editing tool on SharePoint Framework for SharePoint Online

I have a requirement to build an spfx webpart that displays pdf documents stored on SharePoint Online.
The web part is meant to display links to the pdf documents and when one link is clicked, it shows the document with an autogenerated watermark and a dynamic footer. The document should then be downloaded and save those watermarks and footers.
I know spfx and react, Please who can direct me to someone or link where this has been done or provide guidance as to how to achieve it
I am still researching and I want to find the best answers before I start work

How can I link custom community visualization to other pages in a report?

I built a community visualization with various fields. One field that I'm adding is a URL, composed as the documentation suggests, that links to a filter in another page.
While the URL is fine and working, I cannot use it in a normal link or a form because the iframe in which the community visualization is embedded is sandboxed to allow only scripts.
Is there another way to change the top frame navigation, or switch to another page from within the visualization? Maybe through a javascript call?
Thanks
Community Visualizations do not allow links to external resources, so there's no way to make the visualization act as a link to a filter on another page.

ATK Upload Addon

I am attempting to add an uploading interface to my site that supports multiple-file selection and drag-and-drop uploading. The Filestore add-on has worked very well for me in the past, but I need more features than it supports.
I found an upload add-on developed by Romans here: https://github.com/romaninsh/upload
The README states that the add-on uses the BlueImp Upload jQuery widget and it lists several features such as a FileList view and a DropZone controller. However, when I looked in the source code for the add-on, I didn't find classes for most of the views described in the README or for the controller. I tried following the instructions under "Stand-alone use" by adding a View_Uploader element to a page, but this only added an empty div to the page.
Is the add-on incomplete? Or is it meant to be extended before it can be functional? If this add-on isn't the best tool for the job, is there a better way to implement the kind of enhanced uploader that I need on my site?
I am the author of that new upload add-on. It is in fact incomplete, I've planned it out and drafted features / readme but haven't had time to finish it.
The goal here is to create a View which would interact with Filestore / importFile, but uses more modern way to upload the file.
If you think you would want to take over that add-on and build it, i'll offer you some help.

Hiding viewable files in sharepoint

Our company have some data in excels/images files that we want to make available to our employee through our sharepoint portal. However we do not want them to be able to download the files or copy/paste them to their PCs.
For this problem, I have written a silverlight app to display excel file and disable select/copy function. So now we upload the files to a document library, make this library 'viewable' to all users. We have a webpart that access the library and pass the links in encrypted form to the silverlight app to display. From the webpart page, the user can not see the links to the actually files. We will give the users link to this webpart page but not the document library itself.
However if a user goes to the 'All site contents' page, he can still easily see the document library and hence download the files.
My question is : is there a way to have the files viewable without letting the user having the link to download it ?
If there are any better ways, I would like to know as well.
Many thanks
A relatively simple way to hide the library from the "All site contents page" is by making it hidden. You can't do this from the UI, but you can either change the list instance (if you build the list definition and instance yourself) to have the list created as hidden, or you can open the list / library with SharePoint Designer and check "Hide from browsers" in the settings of the list.
Alternatively you can mark the list as hidden using the SharePoint Management Shell:
$w = get-spweb http://yoursite
$l = $w.Lists["yourlistname"]
$l.Hidden = $true
$l.Update()
Notice though that making a library hidden doesn't prevent users from browsing to it if they know the URL of the library. Through a developer proxy/network sniffer (like Fiddler), even if using Silverlight, one could figure out the url of the library if one really want to. Even if the links are passed to the Silverlight app encrypted, the Silverlight app itself will likely have to access the full urls, and as such they are trackable.

Save web data into PostGIS

Is it possible to store harvested data from a website(Nestoria) upon implementing their APIs using PHP?
I am able to extract the data using PHP and it displays the result on a web browser, but I need to dump or save them into my PostGIS database. (I am using XAMPP and PostGIS on windows 7)
Most companies wouldn't have a problem with you doing that, for instance Ebay's API. However, as Mapperz pointed out - Nestoria's terms require you not to compete with them for originality of the content. So, any data that comes from their API and stored in your database should not be able to be indexed by search engines.
This isn't as difficult to comply with as you might think. You could have the content loaded through an iframe that uses the "NoIndex, NoFollow" meta tag attribute in the HTML of the page being loaded, or pull the content from the database to your page's DOM using AJAX/JavaScript after the page has loaded.
I personally would go with the second option (AJAX).

Resources