Related Pages Block Query

Permalink
I'm using the related pages block type in my side nav & I want to display the active page in the list.
However, the block type is set up to not display the current page. Does anyone know how I could achieve this?

 
moosh replied on at Permalink Reply
moosh
Hi,

What blocks type are you talking about exactly?
Because I don't find "Related pages" block type ...

++
michaelPassion replied on at Permalink Reply
Hi moosh,
Related pages is a paid for add-on.
http://www.concrete5.org/marketplace/addons/related-pages/...
Any help would be much obliged.
moosh replied on at Permalink Reply
moosh
Oh, ok !

So, I don't have this addon...

I only should help you if you send me the block controller + view.
michaelPassion replied on at Permalink Reply 1 Attachment
Thanks moosh,
looking forward to hearing from you.
moosh replied on at Permalink Best Answer Reply
moosh
Thank you.

In controller.php, try to add, between line 147 ( $this->set('pl', $pl); ) & 148 ( return $pages; ) :

array_unshift($pages, $c);
michaelPassion replied on at Permalink Reply
Moosh my friend, you are the man.
Thank you.
moosh replied on at Permalink Reply
moosh
You're welcome ^^