Message Boards

Not able to edit XML structure content, due not appears source tab

thumbnail
Fernando Paz, modified 2 Years ago.

Not able to edit XML structure content, due not appears source tab

New Member Posts: 11 Join Date: 9/16/16 Recent Posts

Hi friends, please you help!

I need to edit the source XML of an content structure, but in my Web UI I don see any option for do that.  Maybe is something with my insytallation or there is not an option? BTW I am connected with super admin user.

Liferay 7.4.1 ga2

Thanks 


 

thumbnail
Fernando Paz, modified 2 Years ago.

RE: Not able to edit XML structure content, due not appears source tab

New Member Posts: 11 Join Date: 9/16/16 Recent Posts

I observed that in 7.3 last version there is a tab wiith "Source", so its seem be deleted since 7.4... anyone can confirm why please?


 

Nikita Laitinen, modified 2 Years ago.

RE: Not able to edit XML structure content, due not appears source tab

Junior Member Posts: 44 Join Date: 12/18/19 Recent Posts

Hi
I am facing the same problem.
Have you found the solution??

Lee Jordan, modified 2 Years ago.

RE: Not able to edit XML structure content, due not appears source tab

Expert Posts: 449 Join Date: 5/26/15 Recent Posts

It's a JSON file and a HIGHLY valuable feature. They removed the feature, Imma gonna try hard to get it back.

I also did a quick analysis of what they have done and this is mad ... You can export the JSON file, ok great. You cannot import it back to the same structure and there's no "Edit Source" or "Import JSON" say on the menu item on the ellipsis. You can get the JSON out, you can't get it back in to that structure ID?? You can only import new or copies of. That means there's no way to automate structure changes, say there's wording in the tips or even wording of the field labels. That is now impossible to automate with find and replace.

Bonkers. We can edit JSON in a fragment configuration in the UI (at least we could in 7.3) so this no causes a disparity (think of a fragment configuration as the JSON in a web content structure).

Yeah this is pretty bad. At least allow Portal Admins use of the JSON editor, at least in the Properties sidebar have an import/export JSON so that we can get the code out edit it and put it back. Though an editor would be better than import export and maybe that can go in the Properties sidebar as an expandable modal popup say. They could even improve it with syntax highlighting.

Lee Jordan, modified 2 Years ago.

RE: Not able to edit XML structure content, due not appears source tab

Expert Posts: 449 Join Date: 5/26/15 Recent Posts

I can only think that connecting over WebDAV is the only way to live edit the source now? The WebDAV URL should still be there, if it can be authenticated in FileZilla is a question I may get round to anwering for myself soon enough. If WebDAV is broke, we're dead in the water here.

Lee Jordan, modified 2 Years ago.

RE: Not able to edit XML structure content, due not appears source tab

Expert Posts: 449 Join Date: 5/26/15 Recent Posts

Submitted as LPS without raising a help desk ticket yet (I have those poor souls maxed out on the help desk).
https://issues.liferay.com/browse/LPS-150780

Fingers crossed they don't say it's expected to have lost functionality