join the community conversations

5000+
active members

Developing advanced HTML templates using gulp

Comments

6 comments

  • Avatar
    Mariana Cañavera H.
    community manager

    Thanks for sharing! 🤩

    0
  • Avatar
    Pathum Madushanka
    Conversation Starter

    That's cool. Thanks for sharing. 

    0
  • Avatar
    Sarvani Thatiparti
    Conversation Starter

    Thanks for sharing! Please share the index.html file as well for a quick reference.

    0
  • Avatar
    Micah Jank

    Note as of May this is no longer something that will work. 

    Via inRiver Release notes May 6th - May 7th, 2023 / Release notes – inriver community

    Improvements and/or enhancements for Control Center:

    • As a user of Control Center, I want REST API Extension actions to be logged in Control Center logs
    • As a Control Center user working with the fields of an entity in the model, I want the ability to see the FieldTypeId parameter in the list of fields so that I can more easily understand what field to work with.
    • Correction for Control Center when the user is unable to save more than one row of name and description for a FieldSet after first save
    • Please note that input validation for HTML templates is enforced - restricted strings are system.iowwroot and stacktrace. Uploading an HTML template containing these strings will trigger a "Not Acceptable" error. This validation will be enforced via Remoting API soon as well.

    The output from the react builds contains references to "prepareStackTrace" and because stacktrace is now a restricted string the inRiver html templates will not save. 

    The best workaround i have so far is to create another script to remove references of StackTrace from the build output and then just run that script as a part of the build process.

    "gulp": "gulp && node remove-prepare-stack-trace.js",
     
    0
  • Avatar
    Sivert kjøller Bertelsen
    inriver champion

    Thank you for sharing this workaround. Do you know what the reason for this limitation of restricted strings is?

    0
  • Avatar
    Micah Jank

    Not sure on the reasoning exactly, I assume it conflicts with something on their side like a reserved keyword perhaps. 

    0

Please sign in to leave a comment.