I have used the $edit-text widget to enter some text with paragraphs into a field.
I note that when I use the $transclude widget to view the field’s content the paragraph formatting is preserved; whereas when I use the $view widget it is not.
Out of interest is there an alternative to using the $transclude widget which would display the field content with paragraph formatting preserved?
Cheers, Rob
twMat
August 23, 2025, 12:43pm
2
Rob_Jopling:
I note that when I use the $transclude widget to view the field’s content the paragraph formatting is preserved; whereas when I use the $view widget it is not.
Out of interest is there an alternative to using the $transclude widget which would display the field content with paragraph formatting preserved?
(You seem to get your references mixed up in the above paragraphs?)
Anyway:
Note the $mode=block attribute in the Transcludewidget
Block elements typically need to be preceded by an empty row to preserve block mode
pmario
August 23, 2025, 1:03pm
3
Hi Rob,
What’s wrong with transclusion?
The view-widget has a different purpose. It’s mainly used to be able to save TW.
There is the wikify-widget, but this one can have a big performance hit. It should only be used, if there is no other possibility.
pmario
August 23, 2025, 1:18pm
5
OK bad wording. It is mainly used in templates. It happens that saving TW as file is done with templates.
If you search “$view” in the AdvancedSearch → Shadows tab, you will see, what I mean. It mainly lists templates.
twMat
August 23, 2025, 1:23pm
6
That’s interesting.
Regardless, I think Rob is asking about how to “preserve paragraph block formatting” however it is culled.