Developer forum

Forum » Development » Use visual Editor as a stand-alone page

Use visual Editor as a stand-alone page

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hoi guys,

I have a project where I had to connect a Content page to a product in order to allow a more editable-feature-rich description for products.

My need right now is to be able to open the visual builder as a pop-up (outside of the Iframe).

I have found the right link: /Admin/Content/ContentBuilder.aspx?ID=PageId and I can add an additional parameter &popout=true.

The page opens correctly and I can add rows and columns without any issues.

The only piece that is not working is the File manager upload. I can open the file manager and browse and select images but I cannot upload.

I have managed to figure out that this is caused by some javascript that is not included (/Admin/Resources/js/layout/upload.js and /Admin/Resources/js/layout/dwglobal.js).

From here on, I am stuck. I cannot make it work no matter if I customize my pages or the javascript. At this moment I am on a critical moment where I need to make this feature available and I am willing to customize the pages or the javascript to make it work until (hopefully) a supported solution is released.

Thank you,
Adrian


Replies

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply

Hi Adrian,

The popout functionality in Visual Editor was a feature we were considering adding. We tried it out internally and decided that it wasn't something we wanted to add at the time. That's why there's no button for it in the UI. It hasn't been continually developed, as the Visual Editor itself has, which is probably why you're running into issues. I don't think we're going to add the popout as a standard feature as there isn't much of a demand for it. However, if I understand the core of what you're trying to achieve, a solution has already been implemented in Swift 1.5 (https://doc.dynamicweb.com/swift/setup-project/guides/multiple-product-details-pages). Perhaps this might be worth a look?

- Jeppe

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Jeppe,

Thank you very much for the detailed explanation.

I am sorry to hear that you have dropped it. It was very close. The only thing not working is the Upload functionality.

I have played with the new option in swift but it's not what I need. Descriptions in my case are custom per product. Nothing I can automate.

You can see some examples here: https://altex.ro/telefon-poco-m4-pro-5g-64gb-4gb-ram-dual-sim-cool-blue/cpd/SMTPOCOM4PRO4BL/ 

And here: https://altex.ro/epilator-braun-silk-epil-5-beauty-set-5-5-885-28-pensete-2-viteze-3-accesorii-baterie-alb-roz-perie-faciala/cpd/EPLSE5885/

Look at the section called "Descriere". You will notice they are very different and they can have one paragraph or multiple paragraphs. That's why we needed a visual editor approach.

We have managed to create a Custom Field that would handle the connection between the product and a Content page and we have opened the Visual editor as a pop-up. But the missing upload functionality ruined it and I have to consider alternate ways of handling it. Which is not ideal. I was hoping that someone can help me activate the Upload functionality in the pop-up. Reading between the lines (of your answer), it seems that it might not be possible at all.

 I will explore other options.

Thank you,

Adrian

 

You must be logged in to post in the forum