Anonymous | Login | Signup for a new account | 2024-04-25 05:02 CDT |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
View Revisions: Issue #899 | [ Back to Issue ] | ||
Summary | 0000899: Create new "m_CurrentPageLink" tag to return current Page URL | ||
Revision | 2011-09-26 04:02:55 by alex | ||
Additional Information | Can't set 0.5 as a quote (mantis problem), so I set 1 hour, but I mean 0.5 hours. | ||
Revision | 2011-09-26 04:02:55 by alex | ||
Description | Create new <inp2:m_CurrentPageLink skip_query="1"/> tag to return current Page URL (without re-assembling it). That "skip_query" param is optional and will skip the ?QUERY part. For speed purposes use: 1. with query: $_SERVER['REQUEST_URI'] 2. without query: preg_replace('/\?' . preg_quote($_SERVER['QUERY_STRING'], '/') . '$/', '', $_SERVER['REQUEST_URI']) Note: as you can see no domain is added for faster performance |
||
Revision | 2011-09-24 22:42:34 by alex | ||
Additional Information | |||
Revision | 2011-09-24 22:42:34 by alex | ||
Description | Create new <inp2:m_CurrentPageLink skip_query="1"/> tag to return current Page URL (without re-assembling it). That "skip_query" param is optional and will skip the ?QUERY part. For speed purposes use: Current DomainName _SERVER["SCRIPT_NAME"] - script name _SERVER["QUERY_STRING"] - query By default it will return result of DomainName . _SERVER["SCRIPT_NAME"] . '?' . _SERVER["QUERY_STRING"]; |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
Web Development by Intechnic In-Portal Open Source CMS |