开发者

Drupal Theming and custom variables in custom pages

开发者 https://www.devze.com 2023-02-04 13:37 出处:网络
I have created a custom page which sits at site.com/user/me/soe now im trying to theme this page and have created a subsequent 开发者_StackOverflow中文版template file.

I have created a custom page which sits at site.com/user/me/soe

now im trying to theme this page and have created a subsequent 开发者_StackOverflow中文版template file.

however if i copy in any basic html into my template file, all it does is produce a white page with my text and abandons the sites structure i originally had.

i was hoping somebody could help me understand preprocessing as i feel that is the way to solve this.


It sounds like want to override the template for just the node content, and not the entire page.

For example:

page-node-10.tpl.php will override the template for the entire page for node 10

node-10.tpl.php will override the template for just the content of node 10, and render inside of the default page.tpl.php template

0

精彩评论

暂无评论...
验证码 换一张
取 消