Anonymous | Login | Signup for a new account | 2024-05-04 06:25 CDT |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
View Revisions: Issue #359 | [ Back to Issue ] | ||
Summary | 0000359: Two different urls will lead to same physical template on Front-End | ||
Revision | 2009-10-08 11:42:22 by Dmitry | ||
Description | In case, when physical template link is build using st_CachedMenu tag, then actual path to template in structure (if any) is used for url. In case, when m_Link tag is used without st_CachedMenu tag, then url is actual path to template on disk. For example: 1. "terms-and-conditions" - st_CachedMenu variant 2. "terms" - m_Link variant |
||
Revision | 2009-10-08 11:40:08 by Dmitry | ||
Additional Information | |||
Revision | 2009-10-08 11:40:08 by Dmitry | ||
Additional Information | I propose this fix: 1. during menu cache ("cms_menu" variable in Cache table) build also build special mapping (only for pages marked as IsMenu) where key is physical template name (plus path) and value is template name (plus path) used in url (e.g. Array ('terms' => 'terms-and-conditions')). 2. in m_Link tag, when given template name (with path) matches one, that is in mapping, then template name (with path) from mapping should be used. Because st_CachedMenu only works with pages, that are marked as IsMenu, then proposed mapping will only cover that pages. Of course if anyone manually types physical template name in url, then it of course will be found too. |
||
Revision | 2009-10-08 11:40:08 by Dmitry | ||
Description | In case, when physical template link is build using st_CachedMenu tag, then actual path to template in structure (if any) is used for url. In case, when m_Link tag is used without st_CachedMenu tag, then url is actual path to template on disk. For example: 1. "terms-and-conditions" - st_CachedMenu variant 2. "terms" - m_Link variant |
||
Revision | 2009-10-08 11:40:08 by Dmitry | ||
Description | In case, when physical template link is build using st_CachedMenu tag, then actual path to template in structure (if any) is used for url. In case, when m_Link tag is used without st_CachedMenu tag, then url is actual path to template on disk. For example: 1. "terms-and-conditions" - st_CachedMenu variant 2. "terms" - m_Link variant |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
Web Development by Intechnic In-Portal Open Source CMS |