Can We Make Search Result Pages With Less Fat?
Posted
#4000
(In Topic #796)

Standard member

Please?
Greetings,The good news is that Composr has a nice search feature. The bad news is it is full of fat. What I mean is, it displays the entire page that contains what you are searching for in the search result page, with a button at the bottom to let you view the page. If you have large pages of content and many pages of content containing the searched-for word or phrase, this can sause quite a mess. Imagine, if you will, 20 full pages, each in their pretty little boxes, on a search result page.
I would like to trim it up some, make it less fatty and more like how a search engine would show things. Basically, I'd like the page title, maybe 50-150 characters, and an easy way to go straight to the page for more info.
I've tried to do this by editing SEARCH_RESULT.tpl, and I managed to basically get what I want, with one exception. I can't get a working link to the actual page to display because the link to the page is put at the bottom of the result-view and my method basically was the overflow elipse method.
So, is there a way I can do this? Maybe some magical tempcode I could use or could add to what I've tried? I've looked through the tempcode programing page and found nothing to help me.
Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
"Those who want help should first be willing to give help."
Posted

Site director

Could you attach a full screenshot of the issue. There are browser plugins that let you take a long screenshot of a page (i.e. it not just the visible part).
We are meant to be taking only the text around search terms, but I am imagining maybe in case the search term occurs so much it is showing the whole page. The screenshot will help me understand better.
Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Posted

Standard member

Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
"Those who want help should first be willing to give help."
Posted

Site director

https://github.com/ocproducts/composr/commit/81a0ae64dd54221336ef411fe4cd51cade9fdfd9
Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Posted

Standard member

Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
"Those who want help should first be willing to give help."
1 guest and 0 members have just viewed this.