on ‎2018 Jul 02 4:47 PM
Hi,
I want to customize for smartedit the webroot to have it like for example /custom/smartedit.
I tried smartedit.webroot= /custom/smartedit and some other variations, but this didn't worked.
How could I do this?
BR Goran
Request clarification before answering.
Update with 2005 version and following major release should be similar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
add properties in local.properties
smartedit.webroot=/customedit
then do "ant deploy"
Now Replace "smartedit" with "customedit" (or give your custom name) in below file
FileName: resourceLocations.ts (you will find this file in 2 localtion. update values in both)
Values to be updated:
Original Values:
.constant('SMARTEDIT_ROOT', 'smartedit')
.constant('SMARTEDIT_RESOURCE_URI_REGEXP', /^(.*)\/smartedit/)
.constant('CONFIGURATION_URI', '/smartedit/configuration/:key')
.constant('CONFIGURATION_COLLECTION_URI', '/smartedit/configuration')
Update Values:
.constant('SMARTEDIT_ROOT', 'customedit')
.constant('SMARTEDIT_RESOURCE_URI_REGEXP', /^(.*)\/customedit/)
.constant('CONFIGURATION_URI', '/customedit/configuration/:key')
.constant('CONFIGURATION_COLLECTION_URI', '/customedit/configuration')
Also update "smarteditcommons.js" (there are 2 file with this name on different location. update in both file)
search for above properties and do the same replacement.
Now open "https://localhost:9002/customedit"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The other option is go to your smartedit extensioninfo.xml which is in /hybris/bin/ext-content/smartedit/extenioninfo.xml ->
<webmodule jspcompile="false" webroot="/custom/smartedit"/>
This will surely work without any problem 🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This didn't worked for me I get following error:
thirdparties.js:114 GET https://localhost:9012/smartedit/configuration 404 (Not Found)
Yes I added it in the local.properties, but it won't open the smartedit. The webroot is set, as I saw it in the hac Configuration Properties. In the stack trace are no errors.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you added this in local.properties??
smartedit.webroot=/custom/smartedit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.