rmyles Posted March 9, 2003 Share Posted March 9, 2003 Hi there, I've got a question in the header tag controller, specifically this piece of code: // product_info.php - if left blank in products_description table these values will be used define('HTTA_PRODUCT_INFO_ON','1'); define('HTKA_PRODUCT_INFO_ON','1'); define('HTDA_PRODUCT_INFO_ON','1'); define('HEAD_TITLE_TAG_PRODUCT_INFO',''); define('HEAD_DESC_TAG_PRODUCT_INFO',''); define('HEAD_KEY_TAG_PRODUCT_INFO',''); I don't want to use the defaults so I know I have to set the 1's to 0's. How do I set the title, desc, and key words when they're different for every product? Example: I'm selling comic books so if my product is Batman #1 my description is going to be the same (no need to be more descriptive than that) and my key words will be Batman. I've entered the information for each product using the admin tool but I just don't know how to call on it. Please help, and if this doesn't make sense don't be afraid to tell me! Ron Quote Link to comment Share on other sites More sharing options...
Ajeh Posted March 9, 2003 Share Posted March 9, 2003 There are fields in the tables for each product. You might get the Admin add-on that goes along with this that I asked Richard to write so that you could add them in when editing products on the Admin side. Much easier than playing with the raw tables. Also I think I added to the README.txt a quick way to get the product_names into the products title field, this lets each be unique. Quote Link to comment Share on other sites More sharing options...
rmyles Posted March 10, 2003 Author Share Posted March 10, 2003 The admin tool was used to enter all the tags information but for some reason it isn't working. I just don't understand how the header tags controller uses the tag information in the database. Is it automatic or do I have to do something to the php file to make it call on the info on the database? Quote Link to comment Share on other sites More sharing options...
Ajeh Posted March 10, 2003 Share Posted March 10, 2003 // product_info.php - if left blank in products_description table these values will be used define('HTTA_PRODUCT_INFO_ON','1'); define('HTKA_PRODUCT_INFO_ON','1'); define('HTDA_PRODUCT_INFO_ON','1'); define('HEAD_TITLE_TAG_PRODUCT_INFO',''); define('HEAD_DESC_TAG_PRODUCT_INFO',''); define('HEAD_KEY_TAG_PRODUCT_INFO',''); I don't want to use the defaults so I know I have to set the 1's to 0's. How do I set the title, desc, and key words when they're different for every product? Setting the INFO_ON definitions to 1 will pull from the database the settings you have added to each individual product. There is a _ALL definition that is the "default" value that can be added to the individual settings. There is a _DEFAULT ... but this is for the default.php page, not the system default. So do not confuse _ALL and _DEFAULT settings. If you have definitions for each product on the _INFO_ON settings set to 1 then you should see the values from the products_description table in your meta tags. Quote Link to comment Share on other sites More sharing options...
rmyles Posted March 10, 2003 Author Share Posted March 10, 2003 Thanks Linda, that makes it a little more clear for me. Is there anyway to test this to make sure that it's working or is it simply a matter of doing a search in google? Quote Link to comment Share on other sites More sharing options...
Ajeh Posted March 10, 2003 Share Posted March 10, 2003 View Source on your pages. What you see is what the spiders see ... :D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.