Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » How do I…?
  3. » yields

#1 Today 03:08:44

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

yields

Hey all,

I have the following structure for a shortcode:

<li <txp:if_yield name="lang"> lang='<txp:yield name="lang" />'</txp:if_yield>>

The problem is that the parsed result is <li lang='el'> and not <li lang="el">. Am I missing something or have I hit a limit of the yield tag?


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

Offline

#2 Today 03:37:18

phiw13
Plugin Author
From: East Asia
Registered: 2004-02-27
Posts: 3,692
Website

Re: yields

Try this:

<li <txp:yield name="lang" wraptag='lang="<+>"' />> test</li>

In low-power mode.
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

  1. Index
  2. » How do I…?
  3. » yields

Board footer

Powered by FluxBB