risingisland / Easy-2-Gallery

A MODx Evolution 1.1+ image gallery
4 stars 4 forks source link

Can't print gallery description [+easy2:cat_description+] #8

Open ABatsulin opened 7 years ago

ABatsulin commented 7 years ago

Thanks for developing e2g.

After updating MODx to 1.2-d9.0.5 by dmi3yy the old version of e2g wasn't work. So i update it also. But some problem appeared. Before gallery tumbnails i print description (in gray rectangle) and navigation (left up right)

Before updating:

image

so after updating e2g i have:

image

The template for gallery assets/modules/easy2/templates/default/g.htm is

 <div class="e2g_wrapper" id="[+easy2:wrapper+]_[+easy2:sid+]">
    [+easy2:gallerypluginprerender+]
    [+easy2:permalink+]
    <div class="e2gdir" [+easy2:desc_class+]>
        <div class="e2gdesc">[+easy2:cat_description+]</div>
    </div>
    <div class="e2g_gallery" id="e2g_gallery_[+easy2:sid+]">
        <div  style="min-height:10px" class="e2gpnums">
            [+easy2:prev_link+]
            [+easy2:up_link+]
            [+easy2:next_link+]
        </div>
        <div>[+easy2:content+]</div>
        <div class="e2gpnums">[+easy2:pages+]</div>
    </div>
</div>
[+easy2:gallerypluginrender+] 

So, what i gonna do?

risingisland commented 7 years ago

@ABatsulin is it possible to send me a link, so I can take a look?

ABatsulin commented 7 years ago

http://kirpichiki.pro/gallery/russkie.html

ABatsulin commented 7 years ago

__Or i have to write another issue?, first time at github.....___

One more bug. when sorting files/dirs by tags if table - ok, tumbnails - error. Also some strange sumbols.... image

image

risingisland commented 7 years ago

I cant reproduce the problems :/ Maybe a dumb question, but is it enabled in "settings=>thumbnails=>display settings"? Your first screen, maybe check the lang file? the second, no idea. I am adding a new gallery now with titles, tags copied from yours, to see if it is a problem with cyrillic characters, but it seems to work fine for me.

ABatsulin commented 7 years ago

you mean this? gal_desc i= on, &nav_prevUpNext=on

image

risingisland commented 7 years ago

Sorry ABatsulin, I am not able to reproduce your problem on my end. And unfortunately I am not really the developer of this plugin. I mainly adjusted the styles to work with the newer versions of Evo. You may try reaching out to @Breezer to see if he has any suggestions. Also, what version of Evo are you using?

ABatsulin commented 7 years ago

1.2-d9.0.5

ABatsulin commented 7 years ago

Hi, I'm close to fix the problem. [+easy2:cat_description+] must be used inside description.tpl. It isn't works in my g.htm tamplate. Next one - prevUpNext navigation. It appeares if i comment isset($this->e2gSnipCfg['static_tag']) ,like this in e2g.snippet.class.php, 2155 string:

private function _prevUpNext() {
        if ($this->e2gSnipCfg['nav_prevUpNext'] !== '1'
                || $this->e2gSnipCfg['orderby'] === 'rand()'
                || $this->e2gSnipCfg['cat_orderby'] === 'rand()'
                || (!empty($this->e2gSnipCfg['gid']) && strpos(',', $this->e2gSnipCfg['gid']) !== false) // it must be a single gid
                //|| isset($this->e2gSnipCfg['static_tag'])

What does it mean? May be i have to change smth in configs? what is static_tag?