Jump to content

\IPS\Content::$includeInUserProfiles


newbie LAC

Recommended Posts

Posted

Hello,

system/Content/Content.php

	/**
	 * @brief	[Content\Item]	Include this content type in user profiles
	 */
	public static $includeInUserProfiles = TRUE;

How this should work?

I think this should hide a tab in user profile and exclude items or comments or reviews from activity.

But this works with items only. Partly. Hide all tabs only.

Example

I created new event, added comment and review

activity.thumb.jpg.c65d2c0209f1b0d8d92c5eb6fa0103cd.jpg

I want to hide Event Comments tab and exclude event comments. I added in applications/calendar/sources/Event/Comment.php

	/**
	 * @brief	[Content\Item]	Include this content type in user profiles
	 */
	public static $includeInUserProfiles = false;

Result

comments.thumb.jpg.8198ce9395502d38e5400ba5deb16eaa.jpg

I have reverted the changes.

Now I want to hide Events tab and exclude events. I added in applications/calendar/sources/Event.php

	/**
	 * @brief	[Content\Item]	Include this content type in user profiles
	 */
	public static $includeInUserProfiles = false;

Result

items.thumb.jpg.71807c98a4259cc7445a12a61f6183ef.jpg

Posted

Right now it applies to a content item and that content items children (comments/reviews), and does not affect the all activity view.

I've raised this internally, however, to see if we can make improvements to the code based on your feedback.

  • 1 year later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...