Skip to content

Unused att--filename parameter in Layout cell macro #174

@petrenkonikita112263

Description

@petrenkonikita112263

Prerequisites:

  • XWiki instance 13.10
  • Latest version of Pro Macros
  • Trial license
  • Having at least one attachment (any type) on a test page

Step to reproduce:

  1. Go into Test Page, start editing it via Wiki mode.
  2. Copy/paste this line of code. Don't forget to replace filename with the existing one on your page.
{{layout-cell att--filename="image.jpg"}}
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
{{/layout-cell}}
  1. Save it.

Actual result
Despite of specified attachment, only text in a cell will be visible.
image

Expected result
I see that field att--filename was introduced in commit 5ef0116 in LayoutCell.xml file. I don't know what was the intention of it to display image/player/viewer in a cell, but if it has no effect, it can be removed other macros of Layout don't use it. That's why only content of macro shall be as input for this macro

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions