0 Votes

Changes for page MyWiki

Last modified by Ryan C on 2025/05/14 13:49

From version 22.1
edited by Ryan C
on 2025/04/28 07:51
Change comment: There is no comment for this version
To version 13.1
edited by Ryan C
on 2025/04/28 07:38
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -470,66 +470,46 @@
470 470  {{video url="https://www.youtube.com/watch?v=dQw4w9WgXcQ"/}}
471 471  {{/example}}
472 472  
473 -1. View File Macro — Fully Fixed
474 -Problem:
475 -The pdfviewer macro cannot be inside {{example}}...{{/example}}. It has to be standalone.
473 +== View File Macro ✅ ==
474 +Shows a file viewer for an attached file.
476 476  
477 -Solution 1: (Most Correct) Directly embed your PDF viewer like this:
476 +xwiki
477 +Copy
478 +Edit
479 +{{view-file name="MyAttachedFile.pdf" /}}
480 +Explanation:
478 478  
482 +name is the filename of an attachment (must already be attached to the page).
479 479  
484 +No errors like [Parameter [name] is mandatory] because name is now provided.
480 480  
481 -== View File Macro ==
486 +== UI Extension Macro ✅ ==
487 +Injects a UI element into a registered extension point.
482 482  
483 -The View File macro shows a file viewer for an attached file.
489 +xwiki
490 +Copy
491 +Edit
492 +{{uiextension extensionPointId="org.xwiki.platform.panels" /}}
493 +Explanation:
484 484  
485 -{{pdfviewer attachment="MyWiki@Reverse_Discrimination.pdf"/}}
486 -✅ This will show the PDF outside of any {{example}} wrapping.
487 -✅ Must be attached to the same page (your page is /bin/view/MyWiki/).
495 +extensionPointId is mandatory — here, we inject into the panel area.
488 488  
489 -Note:
490 -If you MUST put it inside an {{example}}, we have to fallback to iframe HTML instead of a macro (I can show that if you want).
497 +Fixes the [Property [id] mandatory] error.
491 491  
492 -== UIExtension Macro — Fully Fixed ==
493 -Problem:
494 -You used a non-existent extension point org.xwiki.platform.panels — that ID does not exist in your wiki.
499 +== UI Extensions Macro ✅ ==
500 +Lists all registered UI extensions for a given extension point.
495 495  
496 -Solution:
497 -➔ We need to use a real extension id.
498 -Example safer extension ID: Try org.xwiki.watchlist.menu (almost always exists).
502 +xwiki
503 +Copy
504 +Edit
505 +{{uiextensions extensionpoint="org.xwiki.platform.panels" /}}
506 +Explanation:
499 499  
500 -Fixed Example:
508 +extensionpoint is mandatory — here, again referring to "panels."
501 501  
510 +Fixes the [Property [extensionpoint] mandatory] error.
502 502  
503 -== UI Extension Macro ==
504 504  
505 -The UIExtension macro injects UI elements into extension points.
506 506  
507 -{{example}}
508 -{{uiextension id="org.xwiki.watchlist.menu"/}}
509 -{{/example}}
510 -✅ This will NOT give you the [Failed to find an extension id] error because it's a real one.
511 511  
512 -Or, if you want me to list your real extensions dynamically so you can pick properly, I can show you how to list them.
513 513  
514 -== UIExtensions Macro — Leave it as-is ==
515 -
516 -✅ No syntax errors shown here.
517 -✅ Already correct.
518 -
519 -You can keep it exactly:
520 -
521 -
522 -== UI Extensions Macro ==
523 -
524 -The UIExtensions macro lists UI extensions for a given extension point.
525 -
526 -{{example}}
527 -{{uiextensions extensionpoint="org.xwiki.watchlist.menu"/}}
528 -{{/example}}
529 -
530 -
531 -
532 -
533 -
534 -
535 -
246921912.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.AdminAngriff
Size
... ... @@ -1,1 +1,0 @@
1 -18.6 KB
Content
Reverse_Discrimination.pdf
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.AdminAngriff
Size
... ... @@ -1,1 +1,0 @@
1 -15.4 KB
Content
sample.mp4
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.AdminAngriff
Size
... ... @@ -1,1 +1,0 @@
1 -1.4 MB
Content