Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: if_first_image
It’s really strange, as I was thinking of the if_first_article
tag last night, and implemented it this morning.
Here’s the final snippet
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: if_first_image
For the record, you can spare some time/memory by replacing
<txp:article_custom section="projects,about" pubs limit="999" break=","><txp:article_id /></txp:article_custom>
with
<txp:article_custom section="projects,about" pubs fields="list(thisid)"><txp:article_id /></txp:article_custom>
Offline
Re: if_first_image
etc wrote #340086:
For the record, you can spare some time/memory
<txp:article_custom section="projects,about" pubs fields="list(thisid)"><txp:article_id /></txp:article_custom>...
Thanks so much Oleg, I did it and works just fine. I was not aware of the fields
attribute which is also not documented under the article tags.
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: if_first_image
etc wrote #340089:
It is outlined here, so anybody having time to document it, please be my guest.
Just did. github.com/textpattern/textpattern.github.io/blob/master/tags/article_custom.md. Somebody please edit me.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: if_first_image
Thanks Yiannis, that’s the way I like it! The fields
attribute is still missing in the list, will add it.
Offline
Re: if_first_image
That’s ace. Before we go too far, can someone please confirm the changes have synced? I have a feeling that the master
branch is outdated and the self-hosted
branch is the one that our live docs use now.
The commits might need merging into self-hosted
so they show up. I haven’t checked.
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: if_first_image
Bloke wrote #340098:
That’s ace. Before we go too far, can someone please confirm the changes have synced? I have a feeling that the
master
branch is outdated and theself-hosted
branch is the one that our live docs use now.The commits might need merging into
self-hosted
so they show up. I haven’t checked.
Hi stef,
The edits have not merged with the docs subdomain.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: if_first_image
colak wrote #340087:
I was not aware of the
fields
attribute which is also not documented under the article tags.
I was not aware of the pubs
attribute which is also not documented under the article tags. Then I awoke and, by reading the initial post of this thread, learned that pubs
is a custom field’s name.
Is this ‘custom field name to attribute propagation’ global knowledge to everyone but me, or present in the docs at a place a fail to find, or would this also deserve a new mention in the docs?
Offline
Re: if_first_image
wet wrote #340101:
I was not aware of the
pubs
attribute which is also not documented under the article tags. Then I awoke and, by reading the initial post of this thread, learned thatpubs
is a custom field’s name.Is this ‘custom field name to attribute propagation’ global knowledge to everyone but me, or present in the docs at a place a fail to find, or would this also deserve a new mention in the docs?
You are absolutely right! I cannot find it either. Added.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: if_first_image
PRBFP: s/polulated/populated
Offline
Re: if_first_image
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline