Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Make the exclude attribute global
phiw13 wrote #340092:
Yes, but that builds a list of image categories, not a list of images
The point in this thread is adding the
exclude
attribute to more tags (in this case<txp:images />
.
I do agree with you that using exclude
would be simpler
There are various ways todo now what I suggested with category, one of which could be using categrory list in a variable.
Someting like this
<txp:variable name="img_cats">
<txp:category_list label="" type="image" exclude="my-category" wraptag="" break=",">
<txp:category />
</txp:category_list>
</txp:variable>
<txp:images category='<txp:variable name="img_cats" />' />
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Offline
Re: Make the exclude attribute global
etc wrote #340095:
Done.
Woohoo. Thank you. Will play.
I’m not quite happy with leading dots in
extension=".jpg, .png"
. Should we allow also dotlessextension="jpg, png"
syntax, for readability?
The extension dots in the field sometimes really annoy me and I’ve been caught out time and again with them. So if there’s a way to softly allow either syntax, that would be a boon.
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
Offline
Re: Make the exclude attribute global
etc wrote #340095:
Done, please test. It does not handle
size
attribute atm, but this can be added if necessary.
Nice! I’ll try to play with it tomorrow or so.
I’m not quite happy with leading dots in
extension=".jpg, .png"
. Should we allow also dotlessextension="jpg, png"
syntax, for readability?
If that can be done, here are 10+ votes for dotless syntax, it reads just a more easily.
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg
Offline