Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#361 2018-08-31 15:34:40

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,134
GitHub

Re: smd_thumbnail: manage multiple thumbnails of your images

phiw13 wrote #303742:

I get the following:

Tag error: <txp:smd_thumbnail type='hero-M'> -> Notice: Undefined variable: alt while parsing form default on page archive...

Did you resolve this, phiw13? I’m getting the same thing.

Offline

#362 2018-08-31 21:51:43

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,578
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

I think Stef’s already addressed that here perhaps?


TXP Builders – finely-crafted code, design and txp

Offline

#363 2018-08-31 21:52:45

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,134
GitHub

Re: smd_thumbnail: manage multiple thumbnails of your images

jakob wrote #313746:

I think Stef’s already addressed that here perhaps?

Looks promising – thank you!

Offline

#364 2018-09-01 00:03:40

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,058
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

gaekwad wrote #313744:

Did you resolve this, phiw13? I’m getting the same thing.

That patch Jakob mentions fixed it here. I also completely rebuild my image forms to rely on the 4.7 goodness, that may also have improved things.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#365 2018-09-26 22:13:30

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: smd_thumbnail: manage multiple thumbnails of your images

How avoid this :

“Permitted thumbnails to be larger than the original images”.

—> If thumbnails settings w and h are > than the original image, I want the thumbnail is not created …

Offline

#366 2018-12-08 13:23:14

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,595
GitHub Twitter

Re: smd_thumbnail: manage multiple thumbnails of your images

Hi! Folks ;)

Do you think it is possible to replace only one thumbnail into a list previously generated by the smd_thumbnail plugin?


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#367 2019-06-26 16:03:10

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 805
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

Is there an upgraded language pack (EN) for smd_thumbnail v4.0 (Txp 4.7.3)? I get this and this … Txp has EN and smd_thumbnail has some EN strings … but not all as you can see.

Offline

#368 2019-06-26 18:48:42

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 805
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

In former days I used smd_thumbnail with smd_macro. Now I’m trying <txp:if_yield>:

<figure>
<txp:image<txp:if_yield name="id"> src='<txp:smd_thumbnail id='<txp:yield name="id" />' type="400"><txp:smd_thumbnail_info item="url" /></txp:smd_thumbnail>' alt="" srcset='<txp:smd_thumbnail id='<txp:yield name="id" />' type="400"><txp:smd_thumbnail_info item="url" /> 400w</txp:smd_thumbnail>, <txp:smd_thumbnail id='<txp:yield name="id" />' type="800"><txp:smd_thumbnail_info item="url" /> 800w</txp:smd_thumbnail>, <txp:smd_thumbnail id='<txp:yield name="id" />' type="1200"><txp:smd_thumbnail_info item="url" /> 1200w</txp:smd_thumbnail></txp:if_yield>'
sizes="400px" />
<txp:if_yield name="caption">
        <figcaption><txp:yield name="caption" escape="tidy,textile" /></figcaption>
    <txp:else />
        <txp:image_info id='<txp:yield name="id" />' wraptag="figcaption" escape="tidy,textile" />
    </txp:if_yield>
</figure>

The article snippet is <txp::figure id="113" caption="" /> … but it doesn’t work … :o

Last edited by RedFox (2019-06-26 18:49:53)

Offline

#369 2019-06-26 21:14:33

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,250
Website GitHub

Re: smd_thumbnail: manage multiple thumbnails of your images

@RedFox

Try v0.5.0 which also has Textpacks available in the release.

Regarding your short code issue, it may be a quoting thing. You can’t use single quotes inside when you’re using single quotes around an attribute already. Look at the Nesting quotes in… section of that doc page for an example of using double-apostrophes to “break out” of the single quote that’s already in force from the surrounding attribute.

EDIT: Oh, and Oleg is right. You don’t use the <txp:image> tag like that!

Last edited by Bloke (2019-06-27 13:46:03)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Online

#370 2019-06-27 06:27:17

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 805
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

Great … thanks Stef … :)

Code issue: <txp:image> doesn’t work … <img> does … :o

Offline

#371 2019-06-27 12:57:26

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: smd_thumbnail: manage multiple thumbnails of your images

RedFox wrote #318573:

Code issue: <txp:image> doesn’t work … <img> does … :o

Don’t think <txp:image /> accepts src attribute, you can test in debug mode.

Offline

#372 2019-06-27 16:58:10

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 805
Website

Re: smd_thumbnail: manage multiple thumbnails of your images

etc wrote #318576:

Don’t think <txp:image /> accepts src attribute, you can test in debug mode.

That’s right … it doesn’t.

Offline

Board footer

Powered by FluxBB