• Resolved twohumans

    (@twohumans)


    Hi, I have templates to display different information and I realized that the [before] & [after] tags stopped working.

    Here is an example of the code that used to work :

    [if licences]
    	[before]<table style="width:100%">
    		<tr>
    			<th style="width:60%">Licence</th>
    			<th style="width:20%;text-align: right;"><b>Coût unique</b></th>
           	 <th style="width:20%;text-align: right;"><b>Coût annuel</b></th>
    		</tr>
    	[/before]
    	[each licences]
    		<tr>
            	<td style="width:60%"><a href="{@permalink}" target="_blank" rel="noopener">{@post_title}</a></td>
            	<td style="width:20%;text-align: right;">[if cout_unique_de_licence]{@cout_unique_de_licence}[/if]</td>
            	<td style="width:20%;text-align: right;">[if cout_licence_annuel]{@cout_licence_annuel}[/if]</td>
        	</tr>
    	[/each] 
    	[after]</table>[/after]
    [else]
    	<p>Aucune licence associé à ce client</p>
    [/if]

    To get it working again and display as a table I had to remove the [before] & [after] tags. The new code looks like :

    [if licences]
    <table style="width:100%">
    		<tr>
    			<th style="width:60%">Licence</th>
    			<th style="width:20%;text-align: right;"><b>Coût unique</b></th>
           	 	<th style="width:20%;text-align: right;"><b>Coût annuel</b></th>
    		</tr>
    	[each licences]
    		<tr>
            	<td style="width:60%"><a href="{@permalink}" target="_blank" rel="noopener">{@post_title}</a></td>
            	<td style="width:20%;text-align: right;">[if cout_unique_de_licence]{@cout_unique_de_licence}[/if]</td>
            	<td style="width:20%;text-align: right;">[if cout_licence_annuel]{@cout_licence_annuel}[/if]</td>
        	</tr>
    	[/each] 
    </table>
    
    [/if]

    Is this normal?
    I’m running Pods 2.8.4.1 with WordPress 5.8.2, I’ve tried disabling everything else, but the problem is solid. The website is protected by a firewall so you can access it, sorry,
    Tx

    • This topic was modified 4 years, 6 months ago by twohumans.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[before] & [after] tag stopped working’ is closed to new replies.