I am using 3dcart to host and run my website. 3dcart has various syntax commands that will go to the database's spreadsheet and get the info from the spreadsheet. We want to use page titles that differ from our product's names and in order to do this, I would assume an if then statement would be needed.
Does anyone know if this exists?
Currently we have <title>[TITLE]</title>..[title] is the 3dcart command to bring up the info from the spreadsheet. We would need something like
If info is in the [extra_field_1] field, ignore [title].
That way it would make the html <title>[extra_field_1]...
Does this make sense to anyone? I know it is probably tough to understand because it is using html with some custom proprietary commands, but maybe someone has some insight.
It sounds like an SEO nightmare waiting to happen. Different page titles for the same content? Maybe I am misunderstanding, but I would recommend creating separate pages for different content. As Jason said, more info would be helpful. Be a little more detailed about what you are trying to do:
Why do you feel you need to change the title but yet have the same page?
What sort of info would "extra_field_1" consist of?
By your statement of "our product's names" it sounds like you are trying to do some sort of catalog? If so you are definitely wanting to go the PHP/some other server side language for database queries. You can use this to change titles, however you will ALSO change your urls.
So for an example, say I am selling tshirts, I might have a catalog page that looks like this in the address bar:
then clicking on a particular shirt might take you to
Your title might be something like "Brown tank top shirts"
Obviously if you clicked "black" or "white" from the tank_tops address, you would have different pages with different titles. I hope this is making sense and please provide more information.