This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

dab69574
dab69574

Hi, newbie here, determined to get better. I installed the siteSearch plugin and it didn't work. A little detective work and I found that the form tag in my editor <form action="{{ 'search' | page }}" method="get"> renders this on the page: <form action="" method="get"> Well that's weird. So I did a {{ dump(page) }} and was informed that the object variable 'page' was null. How can this be? Maybe this is why my other plugins like forum aren't working for me either. I'm using my own theme built from scratch, have I missed something? How do I create the page object so plugins can be happy?

dab69574
dab69574

I did some research and it seems that the page object is an array containing the url's of the pages. The lookup was failing so I hard coded the address of my search results into the form like this: <form action="/search.htm" method="get"> and it worked. I don't know why it worked on the video and not for me but there is the fix.

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.