Search
Other ReReplacer questions
Forum

Count in replacement

Bas van den Dikkkenberg's Avatar Bas van den Dikkkenberg
I am trying to use rereplace to make good faq.

a port of the item looks like this
<div class="accordion-item">
	<h2 class="accordion-header" id="heading82761"></h2>
		<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse82761" aria-expanded="false" aria-controls="collapse82761"></p>

so i made this rereplacer code:
<?php
	$vraagcount = rand(1,100000);
?>
<div class="accordion-item">
	<h2 class="accordion-header" id="heading<?php echo $vraagcount;?>"></h2>
		<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse<?php echo $vraagcount;?>" aria-expanded="false" aria-controls="collapse<?php echo $vraagcount;?>">

The replace tag is used mutilpe time in the same doc, but it alway keeps using the same vraagcount variable, i would exspect the for each replacement the php code runs again
Peter van Westen's Avatar Peter van Westen ADMIN
Please try the latest development version from:
regularlabs.com/development-releases
Please post a rating at the Joomla! Extensions Directory
Bas van den Dikkkenberg's Avatar Bas van den Dikkkenberg
I get this error when i klik on your link

JFolder: :files: Path is not a folder. Path: /home/regularlabs/webapps/regularlabs_com/../download.regularlabs.com/public_html/dev

and the message

Currently there are no development versions.

so i assum its fixed in stable ?
Peter van Westen's Avatar Peter van Westen ADMIN
The Development Releases page is now fixed.

Is your issue fixed in the latest stable release?
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription