Hippo CMS resets the mapped domain configuration data after rebuild - maven

I have installed an instance of Hippo CMS (version 7) and I already mapped a domain to a website. I also have an external repository for Hippo.
The problem is, Hippo will reset all of my domain mapping data if I clean the project by maven. Any rebuild command will be effect my domain mappings on Hippo. How can I solve this problem.
Note: after rebuild, I can see all of the documents in the CMS browser and console except domain mapping configurations.

are you using auto-export? if not I would look at the bootstrap module:
bootstrap/configuration/src/main/resources/hst/configurations/{sitename}/sitemap.xml.
This is the file it will bootstrap everytime you do a mvn clean install (or verify).
If you add your changes to this xml (or turn auto-export on when making your sitemap changes) they will be reloaded once your rebuild your site.
Regards,
Dodo

Related

Use multiple themes on one website jeykll

I have recently found out about jekyll, and want to make a project landing page with it. I would like to have a home page using one theme (e.g. ubuild) and have another page for the docs (accessed via a navigation bar at the top) that uses a different theme (e.g. just-the-docs). How can I go about doing this?
EDIT: I want to use Github Pages for this.
Since you plan to use one of the themes on just a single page, I think the best solution would be to use two base layouts instead of two themes.
It will take some minor work initially, but will greatly ease future maintenance.
First set up the site to render just-the-docs theme for all pages including the landing page. Then modify _layouts/home.html to be a parent layout (like the default layout)
to render the markup from the ubuild.. theme.
I solved this with help from #JoostS's answer but with a few modifications:
Make an organization on GitHub pages with a repo called <org-name>.github.io. This repo should contain the theme for the home page (ubuild in my case) and all the content for it.
Make another repo with a jeykll site, called docs. This site should have the theme you want for the other page (just-the-docs in my case) and all the content along with it.
In the docs repo, add baseurl: "/docs" to your _config.yml
The <org-name>.github.io repo, should now be hosted at <org-name>.github.io/:
The docs repo should now be hosted at the <org-name>.github.io/docs url:
To link to the docs page, you should just be able to use /docs now.
The solution is to create two separate websites. The first site contains just the homepage and should be deployed to the root of your web folder. The second site contains all docs and should be deployed to a subdirectory, like '/docs/'. You might want to use baseurl for this: https://byparker.com/blog/2014/clearing-up-confusion-around-baseurl/
I do not think you can use this solution on Github pages. You can TRY to add the same CNAME to both repositories, as I am not 100% sure. Any other static hosting environment should work.
You can link from the docs to the homepage by linking to '/'. You can link from the homepage to the docs by linking to '/docs/pagename/' (assuming you use permalink: pretty).
The simplest way to maintain two layouts on the same site using Jekyll with GitHub Pages is for you to create a new repository for the new layout, so the main site is in a GitHub organization and the pages that need to use a different layout must be in your repositories.
However, if you are not using GitHub, just jekyll, just configure each folder as a new Jekyll project, and direct them to write to the respective subfolders in the _site folder. For everything to work out you need to start Jekyll Server from the main folder, and then build each subfolder separately, so it will update without removing the main one

Oracle Field Service Cloud Plugin with Cordova.js

I want to know if its posible to make a plugin for OFSC with cordova integration. I have a web page with a simple HTML plugin, and I want to add SQLite storage into the plugin.
I have tried including the cordova.js reference to the index.html plugin page, and it's loads well, but don't works on the application, When I try to open a database I alwais get an error.
If I load the plugins files outside OFSC context on a cordova package the SQLite plugin works perfectly.
I am not sure if the it is posible or if it's not necesary to load cordova on the plugin index page because I have seen references to cordova on the OFSC package.js file.
thanks in advance
You can only use browser cache to enable your application for offline working. You can use browser local storage or browser's IndexedDB etc in your plugin.

Laravel missing composer.json

I've pulled a client's project from FTP and web has structure as follows:
error_docs
httpdocs (where laravel files are stored)
logs
So I've pulled files inside httpdocs to a folder and updated the homestead.yaml and hosts file accordingly, and everything works fine, like it does on the website.
The problem I'm facing is that the folder structure is somehow different from what I'm used to on Laravel, and composer.json is missing, which as a side-effect has that I can't for example create new controllers.
[ErrorException]
file_get_contents(/home/vagrant/Code/my_project/composer.json): failed to open stream: No such file or directory
If I create one manually, I can't make a composer update or something similar, so the controller never gets registered in the project, and is as if I've never created it.
I tried running a composer init and then composer update which results in removal of all dependencies, and crashing the project.
Does anyone know how can I resolve the issue?
EDIT:
The project also has public folder empty, so I ended up mapping homestead.yaml like this:
- map: project.dev
to: /home/vagrant/Code/my_project
EDIT2:
Just found out it's a bought template from a web...still no update
So you basically downloaded a project from a shared hosting right?
Ask your client about source control / version control tools like Git if they use one and download the project from the repository.
Also, don't run composer update but run composer install and if you downloaded the project together with the vendor file, you shouldn't need to install the dependencies or update them.
Go to the laravel's github repository and download the default composer.json file just so you can autoload the classes and files.
The public folder is most likely empty because shared hostings use public_html as a default folder. Map everythng to it and change the code in your laravel application to point to public_html instead.
Laravel does not have support for shared hosting, but you can hack it up and make it possible only if you have composer available on that shared hosting server / console / cpanel, because some shared hostings are way too limited with it.
If you have to pay for extra support like server access, you are better off going with DigitalOcean which is a VPS and you have better server access there.

Make a new site with Joomla

I just started a new job, where I have to make a Joomla landing page for a client in Joomla. I have never worked with Joomla before, so I have just seen some tutorials. I have set it up on my localhost, which is working fine, and I have access to the all the backend and CMS system.
But I would like to make a new practice site called "testpage". fx: http://localhost:8888/Joomla_3.5.1/testpage.php, so I can start from scratch and build up a site, instead of deleting things on the default template.
Does anyone knows how I can make a new site?
Best Regards
You can go several ways:
remove all files and flush the DB on you local computer and create a fresh install, but in the end of it you'll anyway have to choose the default template (Beez3 or alike)
get a simplistic template (like https://github.com/gsuez/master-bootstrap-3 or http://www.blank.vc/) add it to your current install and start customising it; plus remove menus/blocks/content manually

IIS Express and asp.net 1.0.0-Beta8

after updating my test project to beta8 (not without a huge pain), I finally managed to have my project up and running.
Now, every time I try to debug with IISExpress, I have explicitly point to the page "index.html" and this breaks my angularjs app.
There is a way to map index.html as default document in IIS Express?
I think you need to properly configure the middleware:
app.UseDefaultFiles();
It has some overrides if you need them. You can find more details here.

Resources