Sp Simple Portfolio Ordering like date created - Forum | JoomShaper
Staff replied Extensions

Sp Simple Portfolio Ordering like date created

Asked by Alena Merklová 3 years ago Last activity 11 months ago

Great extension, but it has its flies. The biggest one is that I can't sort portfolio items by creation date.
I'm not a programmer but I tried to modify it and it works so far.
So a guide for others….

/components/com_spsimpleportfolio/models/items.php

find on line line 74

list($order, $direction) = explode(':', $params->get('ordering', 'ordering:ASC'));

replace

list($order, $direction) = explode(':', $params->get('created', 'created:DESC'));

This will cause the most recent items to be on top.

Please consider checking and adding this option in the next update.

8 replies

Ofi Khan Staff

Hello Alena Merklová

Thanks for your feedback and sharing the fix. We will try to implement it.

Best regards

kweb

Defenetly agree - SP Portfolio could be much much better with simple little fixes. One of them is individual sorting but also the performance when having a lot of items....

Ofi Khan Staff

Thanks for your feedback, guys

MoneyPeet

@Alena Merklová, works perfect! Thanks for the tip.

@Ofi Khan, still not implemented in the component?

Regards., Peter

Josef Rosner

Hello,

however, for me the text within the SP Simple Portfolio item is not indexed in Smart Search, only the title, or does that work for you?

regards Josef

MoneyPeet

Hi,

no, the text it not being indexed. Doesn't work here.
For me it is not so much important, but it would be a nice extra feature when added.

@Joomshaperteam, is it possible to add these two features?

  1. Sort by date, of by ID, or by...
  2. Smart search also searches the Discription form the portfolio items.

Regards, Peter

Ofi Khan Staff

Hello friends,

Thanks for your reminder.

I have asked the developer team to work on these issues. Hopefully, we will get a fixed version with Joomla 6 and PHP 8.4 support very soon.

Best regards

Log in to reply.