SP Simple Portfolio URL Field Not Working - Question | JoomShaper

SP Simple Portfolio URL Field Not Working

PD

Peter Dowse

Extension 3 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?

0
6 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 3 years ago #7520

We made template update, not published yet.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 3 years ago #7145

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.

0
PD
Peter Dowse
Accepted Answer
3 years ago #7172

URL is https://marketeam.com.au/new/portfolio-new

Template is Wimble.

View button takes me to https://marketeam.com.au/new/item/1-iuih

Also - as a side note templates/wimble/html/com_spsimpleportfolio/item/default.php has lots of stuff commented out - which I think might be causing the issues. Comparing it to other installs, they don't have all this stuff commented out.

0
PD
Peter Dowse
Accepted Answer
3 years ago #7177

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.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 3 years ago #7205

I will let him know, thanks for investigation.

0
L
Lukasz
Accepted Answer
2 years ago #20431

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?

0