Jump to content

Featured Replies

Posted

Hi,

It looks like that the breadcrumb JSON script is currently empty?

I can't see it on my community (4.2.3), neither on this website, under the list of javascript files:

<script type='text/javascript'>
		
			ips.setSetting( 'date_format', jQuery.parseJSON('"mm\/dd\/yy"') );
		
			ips.setSetting( 'date_first_day', jQuery.parseJSON('0') );
		
			ips.setSetting( 'remote_image_proxy', jQuery.parseJSON('1') );
		
			ips.setSetting( 'ipb_url_filter_option', jQuery.parseJSON('"none"') );
		
			ips.setSetting( 'url_filter_any_action', jQuery.parseJSON('"allow"') );
		
			ips.setSetting( 'bypass_profanity', jQuery.parseJSON('0') );
		
		
	</script>


### JSON breadcrumb structured data missing here?

		

		<script src="//use.typekit.net/aeh4hzr.js"></script>

Thanks :) 

Edited by LaCollision

IPS has been mucking about with the meta tags and json output recently. If you want them to warn you this is happening prior to a release being released you'll need to poke the various parties responsible.

		/* Wipe JsonLD for now until issues resolved */
		\IPS\Output::i()->jsonLd = array();

That includes breadcrumbs. Sorry.

  • Author

Thank you for your answer!

I didn't notice the Json reset in the source code.

I hope the issues will be soon addressed, as the IPS Suite currently has no structured data! The schema.org metadata has been removed from the templates.

4 minutes ago, LaCollision said:

The schema.org metadata has been removed from the templates.

Yep... 

I see it's still not back in 4.2.4 pre-release. 

Could someone from IPS give us an idea on when it's coming back? 

  • Author

Up!

Apparently, the new beta released today doesn't include the metadata either.

  • Author
1 hour ago, Stuart Silvester said:

JsonLD data was restored in 4.2.4 beta 2, I'm also seeing it working in communities that have been upgraded to Beta 2.

Great!

Thanks!

  • 3 years later...
On 9/11/2017 at 12:12 PM, Stuart Silvester said:

JsonLD data

Is there a guide for this?

I have a database for medical drugs and Pages uses article type schema. I would like to use the specific drug schema:

https://schema.org/Drug

I have tried:

{{\IPS\Output::i()->jsonLd['Drug']['activeIngredient'] = $record->_title;}}

But the result is incorrect:

<script type='application/ld+json'>
    {
        "activeIngredient": "Fenilpropionato de nandrolona"
    }	
    </script>

 

You probably have to define the "Drug" array entry first.

Recently Browsing 0

  • No registered users viewing this page.