ReReplacer

Rereplacer and Sourcerer code with addHeadLink

1 year 8 months ago #75181

Willy's Avatar Willy

Hello,
I am using Sourcerer inside Rereplacer for writing to Joomla Head. However, it seems to do nothing. This is what I have in Replace area:

{source}
<?php
	$doc->addHeadLink('http://www.example.com/article-part1.html', 'next', 'rel');
?>
{/source}

Can you help me?

Best regards,

Willy

1 year 8 months ago #75183

Peter van Westen's Avatar Peter van Westen Admin

Adding stuff to the $doc only works in the first stages of building up the website. So during the rendering of the articles.
Make sure the Search Area of the ReReplacer item is set to 'Articles'.