简体   繁体   中英

My Concrete5 Page Types Will Only Use Default.php

For some reason, my theme will not use any of the .php templates that I have built. For instance, in my theme file, there is a template called "gridLayout.php" In Page Types I have created a "Grid Layout" page type with handle "gridLayout"—shouldn't that be all I need to do? I cannot see the template in the Defaults mode, or when I create a specific page of that type. I also tried de-activating and re-activating the theme, thinking that would refresh things; still nothing. I must be missing something simple.

页面类型应该遵循concrete5的命名规则,grid_layout.php优先于gridLayout.php,concrete5只会在主题安装或使用“检查”按钮时要求您注册新的页面类型。

There are a couple of options here. One, de-activating the theme is not enough. Uninstalling and installing the theme will restart the process of identifying page types. Even easer though is the "Inspect" button for the custom theme. It will identify page templates that are not being used and ask you to create said page type.

Check your cache settings in Concrete5. Make sure you turn off all caching while developing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM