Custom webapp to Magnolia? - struts

Is it possible to add custom webapps to Magnolia?
I'd like to write a webapp, or portlet which shows TV programs (getting data from own database) and intagrate it into Magnolia.
I have no problem with wrinting the webapp (which could be a struts application, or a portlet). But how to add it to Magnolia?

Sure.
You can start having a look on pages configuration: your app probably would be a Magnolia Page (mvc). Look for example inside the "Tools" menu: you have a lot of example, with source code available on GIT / SVN.
HTH,
Matteo

Related

Can react-admin be deployed as a static site?

I wish to deploy a react-admin application as a static site - running without a server component. This data browsing app would use the ra-data-fakerest on a read-only slug of JSON.
Examples of deploying this would be to a GitHub Pages site, or a dumb memory stick.
Since react-admin is written in React/Typescript it must get trans-piled before running, presumably into a build folder. So, am I right in thinking I could just deploy the build folder?
(also grateful for any lessons-learned on this subject).
Yes, you absolutely can. The react-admin demo (https://marmelab.com/react-admin-demo/) is indeed a static site. What is deployed is just the built version of https://github.com/marmelab/react-admin/tree/master/examples/demo.
The react-admin codesandbox is another example of that: https://codesandbox.io/s/github/marmelab/react-admin/tree/master/examples/simple

Prestashop admin panel modules and service link not work

Everyone, I have a prestashop site www.nepick.com it's going fine but when i login in my back end and click modules and services than it's automatically redirected to index page. I tried 100+ but I face same issue please help me.
it takes some tweaking with nginx bit it works. Do check out the sample nginx.configuration file at:
https://github.com/MattLoyeD/Prestashop-Nginx
The main issue is that it uses /adminXXX/index.php/product/... urls and those need to be directed to adminXXX/index.php?...
P.S. If you build on that add "attribute" and "feature" to the list of modules in that list of symfony names as well, as they are needed but currently missing.

How do you precompile MVC 5 Razor Views in VB.NET?

hope this is an easy one. I've googled all over to find the answer to this, but have only come up with C# instructions. I can't seem to correlate/find the files that are mentioned to implement this. Any quick direction?
Publish you web app and change the settings to precompile the application.
Menu->Build->Publish XYZ->Create Profile->Select connection->Settings->File Publish Options->Precompile during publishing (Check), click on configure to configure more.
Edit:
In advanced precompile settings, uncheck the updatable option. Merge all output to single assembly. Check Treat as library component.
Yes I do see some improvement in the first call to website after AppPool starts. Rest all is same.

Multiple apps in umbraco with IApplicationEventHandler

I recently started refactoring my site resulting in the following situation. I have a separate project containing all the surface controllers, views etc for the frontend users. In this project there is also StartupEventHandler wich registers the interfaces, controllers etc using AutoFac. I started a second project file containing the controllers, etc for the backend users. This project also uses AutoFac in the startupeventhandler and registers practically the same iterfaces as both front end en backend share the same services amongst them.
Now when I start the site, the frontend looks good. But when going via the umbraco backend the views dont get rendered with an error "Parameterless constructors not found". When I rebuild and restart, the backend page gets rendered without errors, but now the frontend pages give me the same error. Until I restart the site.
My guess I has to do with AutoFac and two startup handlers. The handlers each reside in their own assembly and namespace ...web.client and ...web.admin.
Anyone any clue on how to resolve this. I dont think it has to do with Umbraco as there are plenty of plugins which probably have also their own startup handlers.
I think I have found a proper solution. As I told in my question I had a separate project productname.customername.web.client and productname.customername.web.admin. What I have done is taking all the start up event logic out of those projects, created a new project productname.customername.web and put in there. From there I added a reference to both client and admin project and registered the controllers. It works fine now.

Path problems with running a sub application (umbraco) inside my MVC4 web application

I have this MVC4 web application, I run it locally at mySite.local/. I created an application in IIS 7, mapping to mySite.local/corporateSite/. I point that application to an Umbraco (CMS) installation I have locally.
This works pretty well.
I have these UI images and .css files that were in my corporate site and were linked-to by absolute urls (Examples: /css/myCss.css, /media/ui/myFunLogo.png, etc.).
Now this "/" root has changed, if I want my css and images to work, I have to use /corporateSite/cssmyCss.css... this is logical.
How can I change my configuration or sites setup or code so that I don't have to write that whenever I'm linking to a file like that. Should I use rewrite rules to prepend the application url?
How to people integrate these elements normally ? I know a lot go through subdomains, but this would not be ideal for us at the moment.
Thanks for the help!
(I think my question is related to this one how to integrate umbraco with mvc4 but in some different aspects. And the answers are not good for me.)
In umbracoSettings.config, there is a setting for "ResolveUrlsFromTextString".
Setting it to true should tell Umbraco to add the virtual directory name to links and images.