Add migration guide from 6.1
authorCyperghost <olaf_schmitz_1@t-online.de>
Tue, 12 Nov 2024 14:08:03 +0000 (15:08 +0100)
committerCyperghost <olaf_schmitz_1@t-online.de>
Tue, 12 Nov 2024 14:08:03 +0000 (15:08 +0100)
docs/javascript/components_image_viewer.md
docs/migration/wsc61/templates.md [new file with mode: 0644]
mkdocs.yml

index 4f30e722c05a2036720c76ccb393e5d49de56cd9..385a9068a9004709efd940d98d65b99a810f3b4e 100644 (file)
@@ -64,6 +64,8 @@ final class FooBBCode extends AbstractBBCode
             ], true);
         } elseif ($parser->getOutputType() == 'text/simplified-html') {
             return StringUtil::getAnchorTag($foo->getLink(), $foo->getTitle());
+        } else {
+            return StringUtil::encodeHTML($foo->getLink());
         }
     }
 }
diff --git a/docs/migration/wsc61/templates.md b/docs/migration/wsc61/templates.md
new file mode 100644 (file)
index 0000000..9d678aa
--- /dev/null
@@ -0,0 +1,23 @@
+# Migrating from WoltLab Suite 6.1 - Templates
+
+## Image Viewer
+
+The previous image viewer `WCF.ImageViewer` has been open by the HTML class `.jsImageViewer`.
+From now on this is done via the attribute `data-fancybox`, which opens the new [Image Viewer](../../javascript/components_image_viewer.md).
+Which also now supports grouping, `data-fancybox="foo"`.
+
+#### Previous Code Example
+
+```smarty
+<a href="{$link}" class="jsImageViewer" title="{$title}">
+    <img src="{$link}">
+</a>
+```
+
+#### New Code Example
+
+```smarty
+<a href="{$link}" data-caption="{$title}" data-fancybox>
+    <img src="{$link}">
+</a>
+```
index e992b066d7e6d8ff493b6509e22dfb050c2b9940..0636997445c130ce950582cc174dfc6c819bdd2a 100644 (file)
@@ -128,6 +128,7 @@ nav:
   - 'Migration':
       - 'From WoltLab Suite 6.1':
           - 'Deprecations and Removals': 'migration/wsc61/deprecations_removals.md'
+          - 'Templates': 'migration/wsc61/templates.md'
       - 'From WoltLab Suite 6.0':
           - 'PHP API': 'migration/wsc60/php.md'
           - 'Templates': 'migration/wsc60/templates.md'