Needs work
Project:
Aboutpeople
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
10 Sep 2010 at 01:31 UTC
Updated:
7 Mar 2011 at 13:14 UTC
Jump to comment: Most recent file
I am converting aboutpeople theme to Drupal 7, but I'm a non-coder type, so it will be a bit of trial and error. I thought that it might be useful to document here for others to follow and comment. Any objections?
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | aboutpeople-7.tar_.gz | 177.42 KB | Scott J |
Comments
Comment #1
Scott J commentedFirst I have split the top off page.tpl.php and added it to html.tpl.php as required by D7. It works, but as expected, Drupal returns the following errors:
Comment #2
Scott J commentedThe only documentation that I know of is Converting 6.x themes to 7.x. If anyone has any other help, please let me know.
Comment #3
Scott J commentedHere is the outline of page.tpl.php
I have commented the closing divs so that we can find them after adding the code back in.
Comment #4
ddd2500 commentedI have the some problem as yours.
Notice: include() 中的 Undefined variable: search_box (/home/www/deng.in/public_html/sites/all/themes/ruoMarket/templates/page.tpl.php 的 128 行)
Comment #5
Scott J commentedYep,
search_box is not available in Drupal 7, you must use /admin/structure/block to place 'Search form' in a block of your choice.
I'll upload my theme so far to show my progress.
Comment #6
Scott J commentedHere is a working version. I'm not a programmer, so I have just deleted functions that I don't understand from template.php to get it working. It now seems safe to use as default and administration theme.
Comment #7
Scott J commentedGetting back to this now that D7 has been released.
I thought that it may be possible to keep style.css file from D6 unchanged, to make it easy for anyone with custom styling or a sub-theme, but now I think that a couple of changes are necessary:
Comment #8
Scott J commentedYou may wish to translate the Italian word "destra" into the English word "right" in line 634:
#primary .singlepage img.destra » #primary .singlepage img.right
The Italian "altobasso" at line 641 literally means "highlow" so I'm not sure what to do with #primary .singlepage img.altobasso but it seems to just be undoing everything that was applied with img.destra.
Also according to Google translate, the Russian phrase "Выводим в одну строку элементы списка и отступы между ними" at lines 1658 and 1664 /*login line*/ is something like "Derive the one-line list items and indenting between".
Comment #9
Scott J commentedThere is a problem with block styles such as .defaultblock{} and .blockcontent{} , which were originally only targeting sidebar blocks. If we change those to .block .content{} they will override the content region also, as the main content region is now a block.
I guess I need to be more specific with selectors, and probably add #primary .region-content .block{} selector some-place.
Comment #10
jpruizs commentedI'm using Drupal 7 and I got the same error:
Notice: Undefined variable: search_box in include()
The problem is that I've created a new template file (page--front.tpl.php) and the search box doesnt appear.
What can I do?