Precisely Enterworks

 View Only
  • 1.  Creating a custom HTML page?

    Posted 11-09-2020 16:09
      |   view attached

    I am trying to create a custom widget using the guide attached. The guide says I should find a folder by name `custom` on the server. 

    path - `\\<server>\d$\Enterworks\EnableServer\tomcat\webapps\webcm\custom`

    I tried looking up for the path in web and app enable server but I did not find any folders as in the document. 

    Did anyone try it out and can help me finding the right location?

    Thanks for the help.



    ------------------------------
    Vamsi 
    ------------------------------

    Attachment(s)



  • 2.  RE: Creating a custom HTML page?

    Employee
    Posted 11-10-2020 12:44
    Vamsi,

    The custom folder needs to be created under the <drive>:\Enterworks\enable2020 folder (e.g., D:\Enterworks\enable2020\custom).  The enable-web-server-service needs to be configured to point to this folder.  You may find it helpful to watch the following Brown Bag Session recordings (available on the Partner Portal):

    Brown Bag Session 20 - Creating a Java Microservice
    Brown Bag Session 31 - Custom Actions with Upload and Link Digital Assets Example

    -Brian

    ------------------------------
    Brian Zupke | Senior Technical Support Engineer
    Winshuttle North America | 9099009179
    ------------------------------



  • 3.  RE: Creating a custom HTML page?

    Posted 11-10-2020 14:44

    Brian, 

    Thanks for the quick response. Unfortunately I do not have access to that protal. I signed up just now and waiting for approval. Once I get access to portal I will go through the sessions and will get back to you.

    Thanks,
    Vamsi



    ------------------------------
    Vamsi Krishna Karamsetty | Sr Software Developer
    Shutterfly, Inc. | +1 602 904 6568
    ------------------------------



  • 4.  RE: Creating a custom HTML page?

    Posted 11-13-2020 04:03
      |   view attached

    Brian,

    The brown bag session 31 - Custom Actions with Upload and Link Digital Assets Example is helpful and give many insights about the custom HTML, JS and how to use them. But, my problem here is that when you say go to server I am not albe to find the particular folders. Our application is hosted on linux and I / we got access to 6 different servers. Below is the list of 6 servers I have access to

    1. PROD-APP
    2. PROD-API
    3. PROD-ESEARCH
    4. PROD-JQ
    5. PROD-WEB
    6. PROD-RDS
    In this list of servers which one has tomcat installed in it as shown in the document or brown bag session?
    `\\<server>\d$\Enterworks\EnableServer\tomcat\webapps\webcm\custom`​

    This is my first step. Then I will try out a few things with the API's.

    Thanks



    ------------------------------
    Vamsi Krishna Karamsetty
    Shutterfly, Inc.
    ------------------------------



  • 5.  RE: Creating a custom HTML page?

    Posted 12-04-2020 15:58
    Hi Vamsi. I just wanted to follow up with you to see if you've been able to resolve this issue.  Not knowing specifically how you have your server deployed, you need to make sure you are accessing the server and the file structure you have available to you on Linux server where Tomcat is installed.  In the path described in the documentation, if the custom folder is missing I believe you (or someone with appropriate rights) can create it and add your custom HTML there...

    ------------------------------
    David Howard | Solution Engineer
    Winshuttle North America | 240-534-3511
    ------------------------------



  • 6.  RE: Creating a custom HTML page?

    Posted 12-04-2020 17:06

    David,

    I have access to the server as root. So, access is not a problem. In order to create a custom folder on my own, I will need to know where there Tomcat is installed. I don't see in in the list of servers that I provided. if you can help me figure out where Tomcat is located I will be able to create a custom HTML folder as suggested. 

    Thanks,



    ------------------------------
    Vamsi Krishna Karamsetty
    Shutterfly, Inc.
    ------------------------------



  • 7.  RE: Creating a custom HTML page?

    Employee
    Posted 12-06-2020 23:04
    The enable-web-server-service microservice (Windows) and web-server container (Linux) must define the path for the custom widgets.  In the case of Windows, this needs to be added:



    In Linux, the path should already be defined:


    The directory /app/enable2020/custom in the web-server may need to be created in the web-server container.  I have copied the files needed for the Upload Assets widget and Upload and Link Assets custom action:


    The custom widget is configured to reference the html page busing the path (/custom) that was defined with the physical path:





    Here's what that widget looks like:


    -Brian

    ------------------------------
    Brian Zupke | Senior Technical Support Engineer
    Winshuttle North America | 9099009179
    ------------------------------



  • 8.  RE: Creating a custom HTML page?

    Posted 12-07-2020 16:11

    Brian,

    Out the the 6 servers that I have access to only `PROD-APP` has a folder y name `app` at root level. So, I went ahead and created folders as suggested.


    Then I added simple HTML to the file as below 
    -----------------
    <!DOCTYPE html>
    <html>
    <head>
    </head>
    <body> My First Custom HTML page
    </body>
    </html>

    -----------------

    After doing all this I see a blank widget and if I inspect it, it says 404 page not found.
    Also, these steps are for enable2020, how about the path for classic UI / webcm?
    Thanks,
    Vamsi.


    ------------------------------
    Vamsi Krishna Karamsetty
    Shutterfly, Inc.
    ------------------------------



  • 9.  RE: Creating a custom HTML page?

    Employee
    Posted 01-16-2021 02:23
    Vamsi,

    The custom folder needs to be colocated with the server hosting the enable-web-server-service or the path specified in the arguments for that service must reference a network file path that it can access.  Have you confirmed that the custom path has been defined in the arguments for that service?  Is there a reason you cannot be granted access to the PROD-WEB server or the actual file path defined within that service for custom points to a folder that resides on PROD-APP?

    -Brian

    ------------------------------
    Brian Zupke | Senior Technical Support Engineer
    Winshuttle North America | 9099009179
    ------------------------------