How to connect CDN in magnolia? - magnolia

I am using Azure CDN, where i have published all my images,css,js files.Now I would like to get all the assets from CDN instead of DAM.
Could you please suggest me?
Thanks in advance.

Actually I would suggest to just add extra step to your publishing process that, when publishing resources from dam will also publish them to azure CDN using their API. Similarly when unpublishing, you remove resources from there too.
You should do that as a first step in publishing, and upon receiving identifier for the resource from CDN, you should store that in assets metadata and only then pass it over to the next publishing step to have dam resource published to your Magnolia public instance.
Then on the public instance, you would need to replace LinkTransformers (and also LinkTransformerManager) and/or maybe just Asset implementation (if you use that exclusively for assets) with a custom implementation that when requesting link to dam asset will use CDN identifier in the assets metadata to construct correct link pointing to the CDN rather than back to Magnolia.
HTH,
Jan

See the Creating a custom content app trail in the documentation - it shows how to integrate images from Flickr, you can customize it to integrate Azure.

Related

How to create list of all available resources for Laravel api?

I am working on a Laravel api in localhost. How do I create a route that lists everything available in a resource like the WordPress api does here http://example.com/wordpress/wp-json/wp/v2?
Research shows that I can use the command php artisan routes to get a list of routes but how do I make this available to a user as an endpoint?
You can use the Route::getRoutes() method to get all routing data.
Just loop through the routes and use ->getPath() to generate the list of paths.
For all other properties take a look at the API at: https://laravel.com/api/7.x/Illuminate/Routing/RouteCollection.html
An alternative is this useul api document generator https://github.com/mpociot/laravel-apidoc-generator

Alfresco: difference between repository and my files

I don't really see the difference between the "repository" and "my files". They seem to have exactly the same functionalities
My Files is a unique area in Alfresco where you can create and store content, and no other Alfresco users can access it.
So rather than saving content on your laptop or tablet, you can save it in Alfresco and still keep it private until it's ready to be shared.
You can access the My Files area from anywhere in Alfresco by clicking My Files at the top of the screen.Refer this Documentation
The Repository displays all the Alfresco Content Services content that you have access to, including content of all sites that you're a member of. Refer this Documentation
Adding more : Check the same thing without admin user.You will get to know the difference.

Telescope / Meteor Image URLs and Hosting

I'm trying to change the logo for my Telescope app. Where should I place the image file? I can't seem to figure out what the correct file path (URL) should be.
Also, I use Bluehost.com for my web hosting. How do I deploy what I'm making to a web host? Can I just upload the directory?
A simple solution is to place your logo under the public/img directory of your Telescope app.
Then inside the Settings panel, enter this value :
/img/codehunt_logo.png
Later when your app will be deployed to production, you will have to change this value to the following :
http://codehunt.com/img/codegunt_logo.png
Concerning the deployment, the recommended way is to use Meteor Up.
Telescope author made a video specifically about deploying to Digital Ocean + Compose.io, but you can use any other combination of services. (eg. AWS + MongoLab, etc...).
You'll find more info inside Telescope documentation.
Well in Meteor app all your images should be in public folder, you don't need to specify the complete path name... Just the name of image does the job!
No idea about the deployment!

How to implement an RSS feed of a site within alfresco share?

I am still learning alfresco and trying to get the feed dashlets to display a custom feed in share. The end goal is to have some sort of workflow in which the editing of certain components on a site site page within alfresco generate a feed element which will then be picked up by the feed dashlet. For now to test I created an xml feed file and put it in a document space in a collaborative site that was set to public and put its link in the feeds dashlet config but that doesn't work. Is there anyway to implement the functionality I'm after?
There are 2 options:
Create your own Dashlet. The current RSS-Feed Dashlet connects to the http connector(share-config-custom.xml), this is an external connector for which authentication is required. So copy the RSS-Feed Dashlet and rip this part out.
According to this JIRA enhancement , in Alfresco Enterprise 4.1.4 you can read internal Share Feeds! So this means you probably won't have to do any customization. So grap the SVN/GIT source of Enterprise tree and use Alfresco's code to build the Dashlet or extend/override it.

How to use Windows Azure CDN with existing ASP.NET webforms application?

I have an ASP.NET Web Application on Azure and want to move my static content - images, CSS to the Azure CDN.
I have over 100 image files being used throughout the application stored in a folder "App_Themes/img" ...
In what way, can I minimize the effort in the move?
My current steps would be ...
- Manually upload all files to cdn ..
- Manually change all urls to the cdn (using Ctrl-H, but still is time-intensive and not error free)
- Somehow manage the testing locally... (Add some code at every page to use a baseurl, depending on debug or release) ...
Is there any way that I could add a new route, etc so that I don't have to manually change the urls, as well as move between file-system urls and CDN to develop the application locally and deploy it.
Thanks a lot ..
I think you can do this via IIS URL rewriting or move static content into a /cdn folder, I haven't tested this but Maarten Balliauw has a great blog post on how serve content from the CDN. "Using the Windows Azure Content Delivery Network"
What I did was added a config entry in the web.config:
and replaced path /App_Themes/SpringDoctor/images/ with <%=System.Configuration.ConfigurationManager.AppSettings["ImagesPath"]%>
And upload all images to the appropriate blob.

Resources