Jump to content

Followable depends on Searchable


newbie LAC

Recommended Posts

Posted

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.

  • 4 weeks later...
Posted
Just now, Mark said:

This isn't a question so I'll move it to feedback.

If I ask you a question you'll move again? :) Also in forum description there is no word about the questions.

Ok.

How to use \IPS\Content\Followable without \IPS\Content\Searchable?

  • 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...