Drupal page.tpl.php template for dynamic URL's
I read about the basic path/template naming in Drupal, but I couldn't figure out how to handle dynamic URLs.
Say, I have a page on : www.example.com/company/companyname/news - and company name is dynamic. Is there a way that I can create a template page for this, such as page-company-*-news.tpl.php? (which, of course, is an illegal file name). This field, "company name" could also contain hyphens ("-").
I am running Drupal 6, and paths are created with Pathauto.
Thank you, Michael
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Add custom template suggestions in a preprocess function. See Working with template suggestions for details.