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?
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?
We made template update, not published yet.
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.
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.
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.
I will let him know, thanks for investigation.
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?