A simple Primo New UI customization package moving the 'details' section to the bottom of the Primo full view.
If you are on August 2017 release or a more recent version of Primo, you should use the back office to order the sections.
This package assumes that an angular module named 'viewCustom' is defined in your application. If not, create a new JS file under the 'js/' directory named as 'custom.module.js'. For example, if you are developing a package for the 'Auto1' view, you can create the file as 'primo-explore-devenv/primo-explore/custom/Auto1/js/custom.module.js'. The file should contain the following line.
angular.module('viewCustom', []);
Declare primo-explore-section-ordering
as a dependency in the 'package.json' file in your customization package folder root.
For example, if you are developing a package for the 'Auto1' view, add the file under 'primo-explore-devenv/primo-explore/custom/Auto1/'.
The content of the file should lool like:
{
"name": "<your view code>",
"version": "<your version>",
"description": "",
"author": "",
"devDependencies": {
"primo-explore-section-ordering": "git://github.com/muratseyhan/primo-explore-section-ordering.git"
}
}
Navigate to your customization package folder containing the 'package.json' file.
cd primo-explore-devenv/primo-explore/custom/Auto1
Type npm install
.
A new folder named 'node_modules' should be created, which contains the depended packages.
Restart your server.
If you would like to run this package as your primary customization package do the following.