Posted on 14/08/2025 09:58:10
You guys are unbelievable. You are trying to change oil and install a turbo on an EV.... In my mind you have lost the fact that a regular person with no coding skills will be doing the content of the page. And you insist on doing things like you did in the past and not diving into the thoughts and concepts in Swift 2.
You use the word "developer" over and over again. Rows and paragraphs UI are for content editors. They will not need weird fields to write weird strings in. Developers can go into a code editor and do whatever they want.
You can go down this path - or you can call me when you have designs to implement where you believe your thoughts are the only way to go and we can have a practical look at how to solve it in this new concept. But only if you open up....
We have QA'ed and implemented a number of brands with just one row - and it is definitely doable. Adding distinct visuals without secret input fields on rows and pragraphs - also defnitely doable.
Adding new visual features to rows (or paragraph layouts for that matter) is super simple without touching a single standard Swift file and have them show up in the UI for the content editor. You simply add your own row definition file and call it whatever you want:
{
"Id": "myFancyCustomRonderCornerRowWithBellsAndWhistles",
"Name": "My custom designed row",
"Description": "1 column destinct designed row with rounded corners",
"Template": "Swift-v2_Row.cshtml",
....
}
Then the content editor can choose this - it even uses the standard row template - I guarentee that you only need this one row template in 99% of all situations and in the last 1% you either spend 2 seconds creating your custom row template or talk to someone to stick with what is possible (not what you believe is possible, but what I believe is possible) using the standard template.
A row definition like this one is a stand-alone file - you simply add it - no touching of existing files. Then add whatever CSS to style that row - or all the content inside that row. That is not more complicated than a weird freetext field on rows and paragraphs... Which would also require CSS.
Adding a CSS related field on content so that your CSS will not look like data-swift-gridrow[myFancyCustomRonderCornerRowWithBellsAndWhistles] but instead .myFancyCustomRonderCornerRowWithBellsAndWhistles is not a very solid argument...
Giving a content editor of list of class names they can add to a field so CSS is appplied is not less custom than adding a row definition file or a paragraph layout file - that again will not touch any Swift files.
You both have yet to show my a layout of something that is not doable in this new concept. Give me examples of what is not possible, and I will bow in the dust if a CSS field on rows and paragaphs are required.
@Adrian - rows also have horistontal control - not padding/margin as that is a 'thing of the past', but X and Y gaps controlled by the container width. This is to have a more modern approach to handling responsiveness using css grids. The product list with components is still a spill-over from Swift 1 and has its caveats - but I will be happy to show how one line of css can control anything on e.g. the product list in this regard - including adding padding and margin if that is really the need - based off the existing UI control for setting container width.
BR Nicolai