165 Posts
redback
10 years ago
4
Topic

Hi,

just for information. Think i found a conflict. 

Constellation:

If you using kind of following code by the CodePack (beforeRender), the Load More Function on the List and Search type doesn't work anymore. It seems the Link get destroyed.

$doc =& JFactory::getDocument();

$doc->addCustomTag( '<meta name="robots" content="noindex, follow" />' );

Get a VIP membership
4229 Posts
Kadministrator
10 years ago
1
Level 1

Are you talking about Masonry template?

165 Posts
redback
10 years ago
0
Level 2

This functionality (Setting L&S)

(OMG whats that for an picture upload ;-) )

4229 Posts
Kadministrator
10 years ago
1
Level 1

Problem is that on ajax call JDocument becomes JDocumentRaw which does not have addCustomTag method and since throws fatal error (you should enable error reporting when you are changing code).

Solution is to check $doc class like this

 $doc = JFactory::getDocument();

if ( !($doc instanceof JDocumentRaw) )
{
$doc->addCustomTag( '<meta name="robots" content="noindex, follow" />' ); 
}
165 Posts
redback
10 years ago
0
Level 2

Hello Klas,

thanks a lot for your hint! Helped me for the solution.

Best

Chris

Get a Book for SEBLOD