0 Votes

Changes for page MyWiki

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

From version 11.1
edited by Ryan C
on 2025/04/28 07:29
Change comment: There is no comment for this version
To version 25.1
edited by Ryan C
on 2025/05/07 10:37
Change comment: Deleted attachment "Reverse_Discrimination.pdf"

Summary

Details

Page properties
Content
... ... @@ -470,29 +470,73 @@
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.
476 +
477 +Solution 1: (Most Correct) Directly embed your PDF viewer like this:
478 +
479 +
480 +
473 473  == View File Macro ==
474 474  
475 -The View File macro shows a file viewer.
483 +The View File macro shows a file viewer for an attached file.
476 476  
477 -{{example}}
478 -{{view-file reference="Space.Page@file.pdf"/}}
479 -{{/example}}
480 480  
486 +{{pdfviewer attachment="MyWiki@Reverse_Discrimination.pdf"/}}
487 +
488 +
489 +✅ This will show the PDF outside of any {{example}} wrapping.
490 +✅ Must be attached to the same page (your page is /bin/view/MyWiki/).
491 +
492 +Note:
493 +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).
494 +
495 +== UIExtension Macro — Fully Fixed ==
496 +Problem:
497 +You used a non-existent extension point org.xwiki.platform.panels — that ID does not exist in your wiki.
498 +
499 +Solution:
500 +➔ We need to use a real extension id.
501 +Example safer extension ID: Try org.xwiki.watchlist.menu (almost always exists).
502 +
503 +Fixed Example:
504 +
481 481  == UI Extension Macro ==
482 482  
483 -The UIExtension macro injects UI elements.
507 +The UIExtension macro injects UI elements into extension points.
484 484  
485 485  {{example}}
486 -{{uiextension extensionPointId="org.xwiki.platform.template.header.after"/}}
510 +
511 +{{uiextension id="org.xwiki.watchlist.menu"/}}
512 +
487 487  {{/example}}
488 488  
515 +✅ This will NOT give you the [Failed to find an extension id] error because it's a real one.
516 +
517 +Or, if you want me to list your real extensions dynamically so you can pick properly, I can show you how to list them.
518 +
519 +== UIExtensions Macro — Leave it as-is ==
520 +
521 +✅ No syntax errors shown here.
522 +✅ Already correct.
523 +
524 +You can keep it exactly:
525 +
526 +
489 489  == UI Extensions Macro ==
490 490  
491 -The UIExtensions macro lists UI extensions.
529 +The UIExtensions macro lists UI extensions for a given extension point.
492 492  
493 493  {{example}}
494 -{{uiextensions/}}
532 +
533 +{{uiextensions extensionpoint="org.xwiki.watchlist.menu"/}}
534 +
495 495  {{/example}}
496 496  
497 497  
498 498  
539 +
540 +
541 +
542 +
246921912.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AdminAngriff
Size
... ... @@ -1,0 +1,1 @@
1 +18.6 KB
Content
sample.mp4
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AdminAngriff
Size
... ... @@ -1,0 +1,1 @@
1 +1.4 MB
Content