Hello,
In CF 7, linking to a form (e.g., a detail page) worked without any issues.However, even with the latest CF 8 update, I am unable to access the form page.
Here is an example where I navigate to the detail page via a link on the date in the date column of an HTML table:
public function formatEdit($d, $row)
{
$user_id = $row['user_id'];
$released = $row['Released'];
$isAdmin = $this->isAdmin();
$icon = '<i class="' . Icon::Edit .'">';
$ret = '<a href="/index.php/mein-bereich/meine-beobachtungsuebersicht?view=form&mtbuid=' . $user_id . '&beof_id=' . $d . '&gpage=edit_BeobKopf&mtbmode=edit">' . $icon . '</a>';
if (!$isAdmin && $released == 1) {
$ret = '<span class ="ui text grey">' . $icon . '</span>';
}
return $ret;
}
Changing "gpage" to "chronopage" does not work.
This code change doesn't work either:
public function formatDetailsLink($d, $row)
{
$date = $this->formatDate($d, $row);
$url = '/index.php/mein-bereich/meine-beobachtungsuebersicht'
. '?article_id=' . rawurlencode($row['beof_id'] ?? '')
. '&chronopage=view_beob_artliste'
. '&mtbuid=' . rawurlencode($row['user_id'] ?? '')
. '&saved=0';
return '<a href="' . htmlspecialchars($url, ENT_QUOTES, 'UTF-8') . '">'
. htmlspecialchars($date, ENT_QUOTES, 'UTF-8')
. '</a>';
}
Where is the problem?
F.
Hi Fred
That link should work, but its inside a function, do you call the function correctly ? do you get the link ?
if you get the link then just make sure the 2nd page named "view_beob_artliste" is actually in a different page group in order to be able to access it directly using a link, otherwise the form requires the page to load in order.
