Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#361 2018-08-31 15:34:40
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
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
Offline
#364 2018-09-01 00:03:40
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
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
Offline
#368 2019-06-26 18:48:42
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
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
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
Offline
#372 2019-06-27 16:58:10
Re: smd_thumbnail: manage multiple thumbnails of your images
etc wrote #318576:
Don’t think
<txp:image />
acceptssrc
attribute, you can test in debug mode.
That’s right … it doesn’t.
Offline