-
☆ A M B ☆
- 3,112 Posts
Change your template.
Snippet call:
<a href="[~10~]">
[!easy2?
&fid=`3`
&w=`140`
&h=`120`
&thumb_tpl=`path/to/your/tpl/spooner-thumb.htm`
&css=`path/to/your/tpl/spooner-thumb.css`!]
</a>
And the
spooner-thumb.htm template is simply:
<div class="thumb">
<div class="boxcontent">
<img src="[+easy2:src+]" alt="[+easy2:title+]" width="120" height="100" />
</div>
</div>
Or, am I misunderstanding you?
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
-
☆ A M B ☆
- 3,112 Posts
If you set your gallery folder = assets/images/gallery, you can just attach the image through the TinyMCE.
E2G uses 4 gallery image harvesters:
- gid: folder’s id
- fid: image’s id
- rgid: random gallery
- tag: using tag string (E2G 1.4.0)
You can see the samples here
http://arslantic.co.id/evo/e2g-test-page.html
Quote from: gregst at Jun 17, 2010, 02:14 AM
и как убрать pagination?
gallery.htm, remove [+easy2:pages+]
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
-
☆ A M B ☆
- 3,112 Posts
Please consider to upgrade to 1.4.0 RC1 r202. Download from the MODx’s extra page.
I’ve been trying to get the random pictures to be able to run on the same page from the same gallery.
But, it can not be done (while we’re speaking, i’m still doing it. honest!).
You should make different galleries:
(you don’t have to call &limit=`1`. It’s already limited to 1.)
[!easy2?&rgid=`2` &rand_tpl=`assets/modules/easy2/templates/spooner-thumb.htm`!]
[!easy2?&rgid=`3` &rand_tpl=`assets/modules/easy2/templates/spooner-thumb.htm`!]
[!easy2?&rgid=`4` &rand_tpl=`assets/modules/easy2/templates/spooner-thumb.htm`!]
[!easy2?&rgid=`5` &rand_tpl=`assets/modules/easy2/templates/spooner-thumb.htm`!]
Use CSS to arrange the floating position.
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
я понял.
создаю отдельную галерею, откуда будут браться картинки (допустим, id=5)
вызов на главной странице [!easy2?&rgid=`5` &rand_tpl=`assets/modules/easy2/templates/spooner-thumb.htm`!]
шаблон spooner-thumb.htm
<a href="[~15~]"><img src="[+easy2:src+]" alt="[+easy2:title+]" width="700" height="550" /></a>
как сделать картинку без ее уменьшения? следует ли в вызове добавить &h=`550` &w=`700` (по размеру самой катинки)
но тогда все равно делается превью, но оно имеет размер, равный самой картинке
-
☆ A M B ☆
- 3,112 Posts
hang on...
This is not right.
I should realize this from the beginning.
The &rgid system was invented back from the version 1.3.5, and has never been updated ever since.
The concept was very limited.
Tell me, is this the random gallery you’re looking for?
http://arslantic.co.id/evo/multiple-random-gid-or-rgid.html
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
мы не понимаем друг друга =)
мне нужна 1 картинка (не превью) на первой странице со ссылкой на заданную страницу.
уже ясно как сделать следующее:
1. как вывести одну картинку из определенной галереи
2. как сделать картинку ссылкой на определенную страницу
не ясно как делать:
1. как вывести картинку из всего множества картинок, разбитых на несколько галерей
2. как не делать превью картинки (должна выводиться исходная картинка)
на данный момент вывод такой [!easy2?&rgid=`2`&h=`550`&w=`700`&rand_tpl=`assets/modules/easy2/templates/spooner-thumb.htm`!]
-
☆ A M B ☆
- 3,112 Posts
Quote from: gregst at Jun 17, 2010, 05:31 AM
мы не понимаем друг друга =)
не ясно как делать:
1. как вывести картинку из всего множества картинок, разбитых на несколько галерей
2. как не делать превью картинки (должна выводиться исходная картинка)
на данный момент вывод такой [!easy2?&rgid=`2`&h=`550`&w=`700`&rand_tpl=`assets/modules/easy2/templates/spooner-thumb.htm`!]
Lol. Yep, Lost in Translation.
Can anyone translate this better than Google?
Ok, another try:
You want that if people click the navigation from
http://spooner.akron3.ru/gallery.html, then it should open the particular gallery id in (e.g.: )
http://spooner.akron3.ru/srilanka.html.
Right?
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.