Hi, is there a way to 'save and close' button on the nestform on betterbuttons? so after saving the box closes?
ok, so ive manually removed the <body> tags from the code and that seem to work, i think because the body tags are there silverstripe defaults are set to render scripts? correct?
ok, so i have HTML code in this format
<body> <h1 code etc </h1> <p> code etc </p> </body> which is saved in a field called
MyCode, when a dataobject is created in the backend. it saves the data ok in a HTMLText field. when i loop through the objects to render in the backend on a custom leftandmain extension it renders the Title, date, and other fields form the DO fine, when i render the
MyCode it renders in html code not displaying the actual format of the code. if i try .RAW on the field the SS loading screen just displays, if i delete that element in the browser the code is rendered correctly but it includes all the js and css files of the backend. if i do
requirements::clear it removes all the css and js from the whole page.
No joy, i added the Requirements::clear() before the the data is written to database, but still sticks on SS loading screen in backend when trying to render it, if i delete that element in dev tools i can see the rendered HTML fine, but console error error
only one instance of babel-polyfill is allowed and all requirements are still added?
Would i still use .RAW or casting?
So that will stop them being called on that variable? as no requirements are in the code in the database?
All thats stored in the database is code so
<body> <h1 code etc </h1> <p> code etc </p> </body> field name
MyCode so when i render $MyCode to the template it just comes out as its stored in the db. ive tried .RAW which gives me the above error, and ive tried casting which doesnt do anything different?
I did try that but it clears all requirements for the whole page, i just need it to clear then for the HTML code thats called form the database in a variable?
ive saved html content to the db in a HTMLText field, so when i try and render it in the backend it comes out as html code, if i do .RAW in the template it loads all the requirements for the backend twice and then gets stuck in the loading screen
error only one instance of babel-polyfill is allowed
HI, while rendering .RAW to a template to display html content, how do you block all the requirements ( css / js etc ) for that?