Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2012-02-02 18:12:18

rossharvey
Member
From: Earth. Sometimes.
Registered: 2005-03-16
Posts: 233
Website

Re: Make article_custom ignore current article in produced list?

Got it working, thanks. I will have to eat my hat – you were right, it had to be “x” in ‘y’.

This works well:

<txp:article_custom section="weddings,venue" keywords='<txp:custom_field name="related"/>'>
<txp:if_article_id>
<txp:else />
<div class="container testimonial">
    <div class="column span-3 thumb"><txp:article_image thumbnail='1' /></div>
    <div class="column span-17 prepend-1 last">
        <h2><txp:permlink title='<txp:title />'><txp:title /></txp:permlink></h2>
        <blockquote>
            <p><txp:excerpt /></p>
        </blockquote>
    </div>
</div>
</txp:if_article_id>
</txp:article_custom>

I’ve nested ‘x’ in “y” before and it’s worked fine. One to remember1

Thanks very much to those who helped :¬)

Offline

#14 2012-02-02 18:50:58

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,258
Website GitHub Mastodon Twitter

Re: Make article_custom ignore current article in produced list?

Glad you solved it. For future reference this might be of help.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#15 2012-02-02 19:09:37

rossharvey
Member
From: Earth. Sometimes.
Registered: 2005-03-16
Posts: 233
Website

Re: Make article_custom ignore current article in produced list?

colak wrote:

Glad you solved it. For future reference this might be of help.

Thank you :¬)

Offline

Board footer

Powered by FluxBB