0 Votes

Changes for page MyWiki

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

From version 10.1
edited by Ryan C
on 2025/04/28 06:27
Change comment: There is no comment for this version
To version 28.1
edited by Ryan C
on 2025/05/14 13:49
Change comment: Changed the author of the page to fix programming rights

Summary

Details

Page properties
Content
... ... @@ -326,4 +326,217 @@
326 326  {{/menu}}
327 327  {{/example}}
328 328  
329 +== Button Macro ==
329 329  
331 +The Button macro inserts a styled clickable button.
332 +
333 +{{example}}
334 +{{button link="https://xwiki.org" style="primary"}}
335 +Click Me
336 +{{/button}}
337 +{{/example}}
338 +
339 +== Carousel Macro ==
340 +
341 +The Carousel macro displays a slideshow of images.
342 +
343 +{{example}}
344 +{{carousel}}
345 +image:Space.Page@Image1.png
346 +image:Space.Page@Image2.png
347 +{{/carousel}}
348 +{{/example}}
349 +
350 +== Embed Macro ==
351 +
352 +The Embed macro shows external content like YouTube videos.
353 +
354 +{{example}}
355 +{{embed url="https://www.youtube.com/watch?v=dQw4w9WgXcQ"/}}
356 +{{/example}}
357 +
358 +== Expandable Macro ==
359 +
360 +The Expandable macro shows expandable hidden content.
361 +
362 +{{example}}
363 +{{expandable title="Click to Expand"}}
364 +Hidden details appear here.
365 +{{/expandable}}
366 +{{/example}}
367 +
368 +== Excerpt Macro ==
369 +
370 +The Excerpt macro marks content for reuse elsewhere.
371 +
372 +{{example}}
373 +{{excerpt}}
374 +This is excerpted content.
375 +{{/excerpt}}
376 +{{/example}}
377 +
378 +== FAQ Macro ==
379 +
380 +The FAQ macro lists FAQ entries.
381 +
382 +{{example}}
383 +{{faq space="FAQ"/}}
384 +{{/example}}
385 +
386 +== Live Data Macro ==
387 +
388 +The LiveData macro displays dynamic data tables.
389 +
390 +{{example}}
391 +{{liveData source="document"/}}
392 +{{/example}}
393 +
394 +== Panel Macro ==
395 +
396 +The Panel macro creates styled content boxes.
397 +
398 +{{example}}
399 +{{panel title="Panel Title"}}
400 +This is inside a panel.
401 +{{/panel}}
402 +{{/example}}
403 +
404 +== PDF Viewer Macro ==
405 +
406 +The PDFViewer macro embeds PDFs using PDF.js.
407 +
408 +{{example}}
409 +{{pdfviewer attachment="MyPage@file.pdf"/}}
410 +{{/example}}
411 +
412 +== Profile Picture Macro ==
413 +
414 +The Profile Picture macro shows a user’s picture.
415 +
416 +{{example}}
417 +{{profile-picture user="xwiki:JohnDoe"/}}
418 +{{/example}}
419 +
420 +== Recently Updated Macro ==
421 +
422 +The Recently Updated macro lists recent changes.
423 +
424 +{{example}}
425 +{{recently-updated/}}
426 +{{/example}}
427 +
428 +== Status Macro ==
429 +
430 +The Status macro adds a colored status label.
431 +
432 +{{example}}
433 +{{status value="In Progress" color="yellow"/}}
434 +{{/example}}
435 +
436 +== Team Macro ==
437 +
438 +The Team macro shows avatars of a team.
439 +
440 +{{example}}
441 +{{team space="TeamSpace"/}}
442 +{{/example}}
443 +
444 +== Tooltip Macro ==
445 +
446 +The Tooltip macro shows hints on hover.
447 +
448 +{{example}}
449 +Hover {{tooltip content="Extra Information"}}here{{/tooltip}}.
450 +{{/example}}
451 +
452 +== Tree Macro ==
453 +
454 +The Tree macro shows a hierarchical list.
455 +
456 +{{example}}
457 +{{tree}}
458 +
459 +[[Parent>>Parent.Page]]
460 +** [[Child 1>>Parent.Child1]]
461 +** [[Child 2>>Parent.Child2]]
462 +{{/tree}}
463 +{{/example}}
464 +
465 +== Video Macro ==
466 +
467 +The Video macro embeds videos.
468 +
469 +{{example}}
470 +{{video url="https://www.youtube.com/watch?v=dQw4w9WgXcQ"/}}
471 +{{/example}}
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 +== View File Macro ==
482 +
483 +The View File macro shows a file viewer for an attached file.
484 +
485 +
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 +
505 +== UI Extension Macro ==
506 +
507 +The UIExtension macro injects UI elements into extension points.
508 +
509 +{{example}}
510 +
511 +{{uiextension id="org.xwiki.watchlist.menu"/}}
512 +
513 +{{/example}}
514 +
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 +
527 +== UI Extensions Macro ==
528 +
529 +The UIExtensions macro lists UI extensions for a given extension point.
530 +
531 +{{example}}
532 +
533 +{{uiextensions extensionpoint="org.xwiki.watchlist.menu"/}}
534 +
535 +{{/example}}
536 +
537 +
538 +
539 +
540 +
541 +
542 +
246921912.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.AdminAngriff
Size
... ... @@ -1,0 +1,1 @@
1 +18.6 KB
Content