CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#12520] Built-in {anchor} tag not working on News module pages

avatar
Created By: (JamesT)
Date Submitted: Wed Jan 26 06:15:38 -0500 2022

Assigned To:
Version: 2.2.16
CMSMS Version: 2.2.16
Severity: Minor
Resolution: Fixed
State: Closed
Summary:
Built-in {anchor} tag not working on News module pages
Detailed Description:
The built-in {anchor} tag works by constructing a full url with a fragment on
the end for the purpose of navigating to various sections on the current page.

https://docs.cmsmadesimple.org/tags/cmsms-tags/anchor

However it does not work on News module pages, it simply creates a link to the
root url.


History

Comments
avatar
Date: 2022-10-01 05:46
Posted By: tom (tomphantoo)

"News module pages" in this context presumably means a frontend page displaying
the 'detail' of a news item. Otherwise, the 'current page' used in the anchor
tag would have no meaning.

It seems that when a news item detail-page is displayed via a link on another
page, that originating-page remains 'current' for the purposes of the anchor
tag, instead of the newly opened page.

Hmmm.
      
avatar
Date: 2022-10-01 20:50
Posted By: tom (tomphantoo)

"News module pages" in this context presumably means a frontend page displaying
the 'detail' of a news item. Otherwise, the 'current page' used in the anchor
tag would have no meaning.

It seems that when a news item detail-page is displayed via a link on another
page, that originating-page remains 'current' for the purposes of the anchor
tag, instead of the newly opened page.

Hmmm.
      
avatar
Date: 2022-10-01 20:57
Posted By: tom (tomphantoo)

The current-page URL is useless for dynamically-populated pages such as used for
displaying news details. Instead, construct the URL from $_SERVER contents.
      
Updates

Updated: 2022-10-01 20:57
resolution_id: 6 => 7
state: Open => Closed

Updated: 2022-10-01 05:46
resolution_id: => 6
severity_id: 2 => 3