... |
... |
@@ -470,38 +470,46 @@ |
470 |
470 |
{{video url="https://www.youtube.com/watch?v=dQw4w9WgXcQ"/}} |
471 |
471 |
{{/example}} |
472 |
472 |
|
473 |
|
-== View File Macro == |
474 |
|
-The View File macro shows a file viewer. |
|
473 |
+== View File Macro ✅ == |
|
474 |
+Shows a file viewer for an attached file. |
475 |
475 |
|
476 |
|
-{{example}} {{view-file reference="Space.Page@file.pdf"/}} {{/example}} |
|
476 |
+xwiki |
|
477 |
+Copy |
|
478 |
+Edit |
|
479 |
+{{view-file name="MyAttachedFile.pdf" /}} |
|
480 |
+Explanation: |
477 |
477 |
|
478 |
|
-Fix applied: |
|
482 |
+name is the filename of an attachment (must already be attached to the page). |
479 |
479 |
|
480 |
|
-Now uses correct reference parameter. |
|
484 |
+No errors like [Parameter [name] is mandatory] because name is now provided. |
481 |
481 |
|
482 |
|
-No missing "name" error. |
|
486 |
+== UI Extension Macro ✅ == |
|
487 |
+Injects a UI element into a registered extension point. |
483 |
483 |
|
484 |
|
-== UI Extension Macro == |
485 |
|
-The UIExtension macro injects UI elements. |
|
489 |
+xwiki |
|
490 |
+Copy |
|
491 |
+Edit |
|
492 |
+{{uiextension extensionPointId="org.xwiki.platform.panels" /}} |
|
493 |
+Explanation: |
486 |
486 |
|
487 |
|
-{{example}} {{uiextension extensionPointId="org.xwiki.platform.template.header.after"/}} {{/example}} |
|
495 |
+extensionPointId is mandatory — here, we inject into the panel area. |
488 |
488 |
|
489 |
|
-Fix applied: |
|
497 |
+Fixes the [Property [id] mandatory] error. |
490 |
490 |
|
491 |
|
-Correct parameter: extensionPointId="...". |
|
499 |
+== UI Extensions Macro ✅ == |
|
500 |
+Lists all registered UI extensions for a given extension point. |
492 |
492 |
|
493 |
|
-No missing "id" error anymore. |
|
502 |
+xwiki |
|
503 |
+Copy |
|
504 |
+Edit |
|
505 |
+{{uiextensions extensionpoint="org.xwiki.platform.panels" /}} |
|
506 |
+Explanation: |
494 |
494 |
|
495 |
|
-== UI Extensions Macro == |
496 |
|
-The UIExtensions macro lists UI extensions. |
|
508 |
+extensionpoint is mandatory — here, again referring to "panels." |
497 |
497 |
|
498 |
|
-{{example}} {{uiextensions/}} {{/example}} |
|
510 |
+Fixes the [Property [extensionpoint] mandatory] error. |
499 |
499 |
|
500 |
|
-Fix applied: |
501 |
501 |
|
502 |
|
-The listing macro uiextensions has no parameters required now for a basic use. |
503 |
503 |
|
504 |
|
-If you want to filter by extensionpoint later, I can show you how, but basic call now works cleanly. |
505 |
505 |
|
506 |
506 |
|
507 |
|
- |