我試圖在我的項目中使用通配符的URL,它不適合我。我設置頁面網址爲/path/to/page/{UserId}
(我也嘗試UserName
和NinjaMaster
通配符名稱以防止命名衝突),但我無法訪問模板或Web部件中的此變量(我只試過Repeater Web部件)。如何在Kentico 9中使用通配符URL?
在我的HTML模板中,我嘗試{% UserId #%}
,{% UserName #%}
和{% NinjaMaster #%}
來寫入傳遞值,但沒有發生。我嘗試過的網址類似於/path/to/page/12345
,/path/to/page/?UserId=12345
,/path/to/page/?userid=12345
等。