SP Simple Portfolio URL field not working - Forum | JoomShaper
Solved Extensions

SP Simple Portfolio URL field not working

Asked by Peter Dowse 5 years ago Last activity 5 years ago

Hi Guys,

It seems the URL field in SP Simple Portfolio doesn't work at all.

When adding a URL into the field it's now atcually changing the title or the view button.

Can you please advise on how to fix this bug?

Accepted answer

Marked as the solution
Paul Frankowski Senior Staff

We made template update, not published yet.

5 more replies

Paul Frankowski Senior Staff

Hi,
On my demo it works.
This link is used in single item view only. Not in global items view!

Please share URL
and tell me your template name.

Peter Dowse Asked this

Ok - so when changing templates/wimble/html/com_spsimpleportfolio to templates/wimble/html/com_spsimpleportfolio-OFF

I get different results on the 'view' page (previously I was getting a <!-- on the page, whereas now I'm getting more details - see https://marketeam.com.au/new/item/1-iuih

There's issues with the override for Wimble - I'm thinking the Devs have commented out stuff that should be enabled.

Paul Frankowski Senior Staff

I will let him know, thanks for investigation.

Lukasz
5 years ago · edited

I noticed that this problem is also on the helper.php side in the module itself - just in line 140 helper.php is

$item->url = Route::_('index.php?option=com_spsimpleportfolio&view=item&id='. $item->id . ':' . $item->alias . SpsimpleportfolioHelper::getItemid($item->catid));

hence, whatever is entered in the project URL field, there will be no trace of it in the view generated by the module...

Well, maybe there would be some banal condition, e.g.

if (empty($item->url)) {
                $item->url = Route::_('index.php?option=com_spsimpleportfolio&view=item&id='. $item->id . ':' . $item->alias . SpsimpleportfolioHelper::getItemid($item->catid));
            } else {
                if (preg_match('~index\.php\?option~',$item->url)) {
                    $item->url = Route::_($item->url);
                }
            }

what do you think?

Log in to reply.