Jump to content

Followable depends on Searchable


newbie LAC

Recommended Posts

Hello,

1. Simple class 

class _Item extends \IPS\Content\Item implements \IPS\Content\Followable
{
}

2. Code

{template="follow" app="core" group="global" params="'myapp', 'item', $item->id, $item->followersCount()"}

Follow button doesn't work.


applications/core/modules/front/system/notifications.php

				/* Work out the index ID */
				try
				{
					$indexId = \IPS\Content\Search\Index::i()->getIndexId( $thing );
				}
				catch ( \UnderflowException $e ) { }

I must implemented \IPS\Content\Searchable but I don't want.

Link to comment
Share on other sites

  • 4 weeks later...
  • 4 weeks 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...