cyandi_man Posted November 28, 2006 Posted November 28, 2006 Hi I am a designer currently working on a project for a client ...however I am not that familiar with PHP. or this type of template. I am currently trying to make pages that can be shown from clicking on the navbarbuttons. I noticed that the navbar link coding are as follows: <?=tep_href_link('index.php')?> or services or whatever page the utton links to. in the begining of the particular pages in question i noticed the following: define('NAVBAR_TITLE', 'services'); define('HEADING_TITLE', 'Our Services'); define('TEXT_INFORMATION', 'text info goes here'); My question is what is 'NAVBAR_TITLE' refering to? I know the heading title shows up in the heading of the page - i also have changed the tep_href_link to link to the services page - however the page does not show. is there other information in the navbar and includes that i must change? please help as this is the first time im working on a template such as this. Thanks in advance! also - i have noticed that the navbar (header.php) is in my modules folder and my pages are in the folder languages/english. The original pages were in this folder as well and worked fine. however now that im pointing to the newer pages that i wish to use instead they dont show? i get a "cannot find page" error.
Jack_mcs Posted November 28, 2006 Posted November 28, 2006 The NAVBAR title is what is added to the breadcrumb trail and doesn't effect your page linking. You have to use the tep_href_link function to create links or you will lose the session ID's that oscommerce uses to track cusomters movements. A typical page will have a file in the root and a file in the english directory with the same name. The one in the root contains the formatting code. The one in english contains text. Hope this helps clarify what is going on. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
cyandi_man Posted November 28, 2006 Author Posted November 28, 2006 hey thanks! will run with that for now...pages seems to be linking fine now. Thanks!
cyandi_man Posted November 29, 2006 Author Posted November 29, 2006 okay - i did as you suggested....however the new pages that i created are not showing up...i get the old page that i used as a template to creat the newer pages! i saw that there was a Filename.php file in the admin section that contained the TEP HREF info ... eg. define(FILENAME_CHECK_OUT, checkout.php) however i don't see the declarations for the main pages like contact, about, privacy etc... where do i find this info? is that why the pages are not linking?
Jack_mcs Posted November 29, 2006 Posted November 29, 2006 If you created your pages the way oscommerce does them, then you will need an entry in the filenames.php file. You have to add that yourself. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
badkitty Posted November 29, 2006 Posted November 29, 2006 If you created your pages the way oscommerce does them, then you will need an entry in the filenames.php file. You have to add that yourself. Jack thanks jack, i figured that out, only it will only accept one file name. when duplicating the line of code then adding a new file name for a diff product. it does not work. it only allows the download of one entry. How do i add multiple entries? can you help? bad kitty
Jack_mcs Posted November 30, 2006 Posted November 30, 2006 I don't understand what you mean. If you post the first part of the file here, it might make it clear. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
starcad Posted November 30, 2006 Posted November 30, 2006 Hi I am a designer currently working on a project for a client ...however I am not that familiar with PHP.or this type of template. I am currently trying to make pages that can be shown from clicking on the navbarbuttons. I noticed that the navbar link coding are as follows: <?=tep_href_link('index.php')?> or services or whatever page the utton links to. in the begining of the particular pages in question i noticed the following: define('NAVBAR_TITLE', 'services'); define('HEADING_TITLE', 'Our Services'); define('TEXT_INFORMATION', 'text info goes here'); My question is what is 'NAVBAR_TITLE' refering to? I know the heading title shows up in the heading of the page - i also have changed the tep_href_link to link to the services page - however the page does not show. is there other information in the navbar and includes that i must change? please help as this is the first time im working on a template such as this. Thanks in advance! also - i have noticed that the navbar (header.php) is in my modules folder and my pages are in the folder languages/english. The original pages were in this folder as well and worked fine. however now that im pointing to the newer pages that i wish to use instead they dont show? i get a "cannot find page" error. Hey cinadiman, I know how overwhelming php and better OSC can be after working with it for almost four years now. Recently I found this site that will help in understanding it all and explain how OCS works. View the tutorials it's the best site I've found yet. http://www.oscommerce-template-easy.com/
Recommended Posts
Archived
This topic is now archived and is closed to further replies.