... |
... |
@@ -470,66 +470,29 @@ |
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 |
|
- |
481 |
481 |
== View File Macro == |
482 |
482 |
|
483 |
|
-The View File macro shows a file viewer for an attached file. |
|
475 |
+The View File macro shows a file viewer. |
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/). |
|
477 |
+{{example}} |
|
478 |
+{{view-file reference="Space.Page@file.pdf"/}} |
|
479 |
+{{/example}} |
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). |
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. |
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). |
499 |
|
- |
500 |
|
-Fixed Example: |
501 |
|
- |
502 |
|
- |
503 |
503 |
== UI Extension Macro == |
504 |
504 |
|
505 |
|
-The UIExtension macro injects UI elements into extension points. |
|
483 |
+The UIExtension macro injects UI elements. |
506 |
506 |
|
507 |
507 |
{{example}} |
508 |
|
-{{uiextension id="org.xwiki.watchlist.menu"/}} |
|
486 |
+{{uiextension extensionPointId="org.xwiki.platform.template.header.after"/}} |
509 |
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 |
|
- |
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 |
522 |
== UI Extensions Macro == |
523 |
523 |
|
524 |
|
-The UIExtensions macro lists UI extensions for a given extension point. |
|
491 |
+The UIExtensions macro lists UI extensions. |
525 |
525 |
|
526 |
526 |
{{example}} |
527 |
|
-{{uiextensions extensionpoint="org.xwiki.watchlist.menu"/}} |
|
494 |
+{{uiextensions/}} |
528 |
528 |
{{/example}} |
529 |
529 |
|
530 |
530 |
|
531 |
531 |
|
532 |
|
- |
533 |
|
- |
534 |
|
- |
535 |
|
- |