Guest Posted January 6, 2005 Posted January 6, 2005 I have posted previously regarding this problem, but have discovered some additional information. Here is the link to that post for those interested: http://www.oscommerce.com/forums/index.php?act=ST&f=11&t=128966 It seemed that I had done everything necessary to add a new page to my site, but for some reason it wasn't showing properly. The page is there, but there was no HEADING_TITLE or TEXT_INFORMATION, so it was assumed there was a problem with catalog...english/new_page.php (called new_page.php for purposes of post), namely that the define commands were not correct, however, they are ok. A web developer had previously add the all_products.php for me, so I looked at that (in catalog) to see if there was a difference in the define commands ... there is: all_products.php: require(DIR_WS_LANGUAGES . $language . '/all_products.php'); verses my new page (basically a copy of conditions.php with filenames changed) require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_NEW_PAGE); So, I used the define from all_products in my new page, obviuosly changing the file name, and tried that. It still didn't work, however, using Dreamweaver I previewed the page in my browser, and it worked! Any ideas? Thanks
♥Vger Posted January 6, 2005 Posted January 6, 2005 Okay, did you create TWO new pages of the same name, one in the root and one at the level of includes/languages/english/ ? Did you then add the new filename to includes/filenames.php? Vger
Guest Posted January 6, 2005 Posted January 6, 2005 Yes, all done. here is my original post to give you some background: I've been trying to add a new page to my site but haven't been able to. I have searched on the forum for information, but everything I read involves creating a box in the left or right columns, which I don't want (to have) to do. I have done what I think is necessary, and even started the process of making a new box in column_left.php just in case I was missing something, but think there must be something I have missed. Here's what I did: Using catalog/conditions.php as a template, I created a new file (we'll call it new_page.php), and changed the following: CODErequire(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONDITIONS); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONDITIONS));to CODErequire(DIR_WS_LANGUAGES . $language . '/' . FILENAME_NEW_PAGE); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_NEW_PAGE)); Then, in languages/english I used conditions.php as a template again, saved it as new_page.php, and changed the NAVBAR_TITLE and HEADING_TITLE, but left the TEXT_INFORMATION as it was. I then added CODEdefine('FILENAME_NEW_PAGE', 'new_page.php'); to includes/filename.php Have I missed something? Many thanks.
Guest Posted January 7, 2005 Posted January 7, 2005 I should add, if I use the following define command, I am able to preview the file (correctly) in browser (using Dreamweaver), and can go to the live page. However, the live page has the missing HEADING_TITLE and TEXT_INFORMATION. require(DIR_WS_LANGUAGES . $language . '/new_page.php'); But, if I use this define command, it won't preview in browser and the live page cannot be found: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_NEW_PAGE); I have created a file in languages/english called new_page.php (exactly the same as in catalog), and have defined the file in filenames.php.
ozcsys Posted January 7, 2005 Posted January 7, 2005 I should add, if I use the following define command, I am able to preview the file (correctly) in browser (using Dreamweaver), and can go to the live page. However, the live page has the missing HEADING_TITLE and TEXT_INFORMATION. require(DIR_WS_LANGUAGES . $language . '/new_page.php'); But, if I use this define command, it won't preview in browser and the live page cannot be found: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_NEW_PAGE); I have created a file in languages/english called new_page.php (exactly the same as in catalog), and have defined the file in filenames.php. <{POST_SNAPBACK}> sounds like you either have a problem with your language file or one of your defines. There is a good set of instructions for adding pages in the knowledge base I would read through it and double check what I have done and see what step I have missed, you can find it HERE The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
Guest Posted January 7, 2005 Posted January 7, 2005 Hi, Thanks for replying. Yes, I came across the adding boxes & adding pages in boxes the other day while searching for help. I feel I have followed all the relevant steps to add the page, without it having to be included in a box. I did at one point, create a box just to see if there was something in that process which would rectify the problem, but it didn't. Thanks
Guest Posted January 7, 2005 Posted January 7, 2005 HAHA, I've sussed it! It seems Dreamweaver wasn't putting the files properly. Now, it may be that it was my fault being new to Dreamweaver, but when I was changing the files in remote view I assumed when I saved it, it was saving it on the server and there would be no need to put the file. But, after going through all the files in local and remote views and putting them, the page worked! Thanks to everyone for their help and suggestions.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.