How do I link to an Anchor in an article?
Moderator: Thorsten
Re: How do I link to an Anchor in an article?
Hi,
I'll check thi issue.
bye
Thorsten
I'll check thi issue.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: How do I link to an Anchor in an article?
Hi Thorsten,Thorsten wrote:Hi,
I'll check thi issue.
bye
Thorsten
here is my patch for consideration.
in inc/link.php added fragment test and save the fragment
Code: Select all
protected function getHttpGetParameters()
{
$query = $this->getQuery();
$parameters = array();
if (!empty($query)) {
if ( isset($query['fragment']) ) {
$parameters[self::PMF_LINK_FRAGMENT_SEPARATOR] = urldecode($query['fragment']);
}
$params = explode(self::PMF_LINK_AMPERSAND, $query['main']);
foreach ($params as $param) {
if (!empty($param)) {
$couple = explode(self::PMF_LINK_EQUAL, $param);
list($key, $val) = $couple;
$parameters[$key] = urldecode($val);
}
}
}
return $parameters;
}
Code: Select all
case self::PMF_LINK_GET_ACTION_ARTIKEL:
$url .= self::PMF_LINK_CONTENT.$getParams[self::PMF_LINK_GET_CATEGORY].self::PMF_LINK_HTML_SLASH.$getParams[self::PMF_LINK_GET_ID].self::PMF_LINK_HTML_SLASH.$getParams[self::PMF_LINK_GET_ARTLANG].self::PMF_LINK_SLASH.$this->getSEOItemTitle().self::PMF_LINK_HTML_EXTENSION;
if (isset($getParams[self::PMF_LINK_GET_HIGHLIGHT])) {
$url .= self::PMF_LINK_SEARCHPART_SEPARATOR.self::PMF_LINK_GET_HIGHLIGHT.'='.$getParams[self::PMF_LINK_GET_HIGHLIGHT];
}
if ( isset($getParams[self::PMF_LINK_FRAGMENT_SEPARATOR]) ) {
$url .= self::PMF_LINK_FRAGMENT_SEPARATOR.$getParams[self::PMF_LINK_FRAGMENT_SEPARATOR];
}
break;
Lidio.
Re: How do I link to an Anchor in an article?
Hi,
I reviewed your patch and it looks good. I'll add it to 2.6.8. Thanks!
bye
Thorsten
I reviewed your patch and it looks good. I'll add it to 2.6.8. Thanks!
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: How do I link to an Anchor in an article?
Hi,
I have the same issue on my fresh from today install (2.9.9 on CentOS 7)
When i edit my article it sounds ok but when i'm on my faq the link is http://my.domain.name/faq/#anchor and obviously it doesn't work.
mod_rewrite is disabled
can someone help ?
Best regards,
Hprosupp
I have the same issue on my fresh from today install (2.9.9 on CentOS 7)
When i edit my article it sounds ok but when i'm on my faq the link is http://my.domain.name/faq/#anchor and obviously it doesn't work.
mod_rewrite is disabled
can someone help ?
Best regards,
Hprosupp
Re: How do I link to an Anchor in an article?
Hi,
how do you add the anchors?
bye
Thorsten
how do you add the anchors?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: How do I link to an Anchor in an article?
Anyone can help ?
Re: How do I link to an Anchor in an article?
Hi,
I'll check it.
bye
Thorsten
I'll check it.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: How do I link to an Anchor in an article?
Hi,
not yet.
bye
Thorsten
not yet.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: How do I link to an Anchor in an article?
Hi,
So what can i do ?
Best regards and happy new year !
So what can i do ?
Best regards and happy new year !