GithubHelp home page GithubHelp logo

sergeytolkachyov / wt-content-image-gallery Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 78 KB

Image gallery plugins package for insertion into Joomla articles and modules, as well as wherever the content group plugins work. Create your own image gallery layouts

Home Page: https://web-tolk.ru/en/dev/joomla-plugins/wt-content-image-gallery

License: GNU General Public License v3.0

PHP 96.78% JavaScript 3.22%
content content-management image images joomla joomla-cms joomla-extension joomla-extensions joomla-plugin

wt-content-image-gallery's Introduction

WT Content Image Gallery for Joomla

Image gallery plugins package for insertion into Joomla articles and modules, as well as wherever the content group plugins work. Create your own image gallery layouts. More info on developer site

Shortcode

{gallery}...{/gallery} - layout default {gallery tmpl=tmplname}...{/gallery} - layout tmplName.php in plugins/content/wtcontentimagegallery/tmpl

Inserting images

Image path

{gallery tmpl=tmplName}images/path/to/images{/gallery}

Comma-separated list of file paths

{gallery tmpl=tmplName}images/photo_1.webp, images/folder1/photo_2.webp, images/folder4/folder16/photo_3.webp{/gallery}

HTML code between tags {gallery}...{/gallery}

{gallery tmpl=tmplName}<p> <img src="images/photo_1.webp" alt="Alt attribute"/> </p> <ul> <li><img src="images/folder_3/photo_114.webp" alt="Alt attribute"/> </li></ul>{/gallery}

Alt and title attributes

If you insert the path to the directory with images, then you can specify the alt and title attributes for each image in the file labels.txt, which should be placed in the directory near with the images. The contents of the file must contain information in the following form: file_name.webp | alt attribute | title attribute. For each image, the information is contained in a separate line. There is no need to put the | character at the end of the line. Title for images can be omitted, then the string will look like image_2.webp|alt for image_2.

labels.txt example

image_1.webp|alt for image_1|title for image 1
image_2.webp|alt for image_2
image_3.webp|alt for image_3|title for image 3

wt-content-image-gallery's People

Contributors

sergeytolkachyov avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

wt-content-image-gallery's Issues

Поддержка SVG

Добрый день!
Часто бывает необходимо вывести, например, логотипы партнеров или же логотипы сертификатов или что угодно в SVG.
Будьте добры, добавьте пожалуйста $image_file_allowed_extensions = [.., 'svg']

Двойной слэш

Если путь к картинкам начать со слэша
{gallery}/images/...{/gallery}

то на выходе получаем двойной слэш
<img src"//images/..." />

Понятно, что в документации у вас указано, что нужно писать путь без начального слэша, но хотелось бы на всякий случай проверку на первый слэш. Люди по привычке пишут по-разному. Хотя и так работает, но всётаки.

Ошибка индексации

Joomla 5 чистая, PHP 8.2.8, MySQL 8. Установлен плагин WT Content Image Gallery.
При индексации выдается ошибка "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3".
Оказалось, что из-за плагина WT Content Image Gallery.
Отключил плагин, индексация заработала. Проиндексировал, потом включил плагин опять.
PS: плагин - бомба. Спасибо за разработку.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.