RE: RE: There is no template code editor in liferay 7.4

Jamie Sammons, modified 3 Years ago. New Member Posts: 3 Join Date: 9/23/19 Recent Posts

Hi,
I made an upgrade in my environment from liferay 7.3 to 7.4 , and i saw that when i'm wrtiting a web content template , there is not editor in the code , means - i cant see colors on html , ftl variables , its make the writing code in liferay harder and force me to write the code outside of the portal.
Waiting for an answer.

thumbnail
Olaf Kock, modified 3 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts

You might want to look into content pages, and mapping of fields to fragments. This is waaaay more intuitive and maintainable, a lot less scripting work, and provides you with a lot more flexibility to position various elements anywhere on the page.

Personally, I try to phase out templates and largely only use them for a quick visual check of what's actually contained in that article - but that's typically facing the author (thus largely undesigned), not the end user.

Jamie Sammons, modified 3 Years ago. New Member Posts: 3 Join Date: 9/23/19 Recent Posts

Thanks , i understand your solution , but still i want this ability, like i had in 7.3 , any more solutions?

Lee Jordan, modified 3 Years ago. Expert Posts: 449 Join Date: 5/26/15 Recent Posts

"You might want to look into content pages"

Why? Creating fragments is harder and less intuitive than web content templates. Fragments also cannot do repeatible feilds and there are fields we have in web content that we still don;t have in fragment configurations so using web content and widget pages still makes the most sense. It's like just use content pages and your problems are solved. They are not, they get worse. .. AND there is no migration tool to convert web content templates to fragments. We also need the JSON editor putting back for web content structures.

I personally consider content pages in beta and not safe to use yet. Step out of the bubble Liferay, we need to get modern site building on the same level with antiquated site building.

When will Liferay 7 stop being Liferay 8 Perpetual Beta?

Lee Jordan, modified 3 Years ago. Expert Posts: 449 Join Date: 5/26/15 Recent Posts

To help people at Liferay understand what we are talking about, I would think from reading the OP that this is the editor that has been downgraded ....


 

Olaf a lot of the new code editors that are being put into 7.4 lack some features such as line numbers, syntax highlighting and even here in this case things like the short code snippets that help us build templates.

See the astrix next to the Social Network Link field? That is a a repeatible feild and is very helpful and is missing from fragments STILL.

I have a ticket in for the loss of the JSON editor:
https://issues.liferay.com/browse/LPS-150780

Lee Jordan, modified 3 Years ago. Expert Posts: 449 Join Date: 5/26/15 Recent Posts

I honestly haven't gotten around to fully looking at what happened in web content between 7.3 and 7.4 I know it's major.

We have lost syntax highlighting for sure



 

The fields and code snippets have moved from the left to the right under a hard to see sidebar ...



 

I think we lost the ability to "choose file"

None of these changes are noted in upgrade documentation, I just haven't gotten around to figuring out everything that we would have lost. Can Liferay stop dropping these features? It might not even be that they are doing this maliously or with intent to regress backwards. I think they are moving fowards too fast and dropping some apples out of the basket that we have to pick up and give back to them and ask them to put the apples back in the basket.

It can't continue though, even if we have a self driving car we still need the steering wheel.

Let's say you build a new car, great. Some boffin builds the new car with three wheels, that boffin should apply their skills somewhere else.

"Lost", "Missing", "Regressed", "Not As Good", "Somewhat Incomplete", whatever it might be as we progress we seem to be only putting some of the lego bricks back into place when we knocked the spaceship off the wall.