nickm
Advanced Member
Germany
443 Posts Pre-sales questions only (More Details...)
|
Posted - 03/17/2019 : 21:43:52
I'm looking at using dynamic meta tags for products.php, etc. More specifically, I want to utilize sectionname.
I'm on PHP v7.0.3. Should sectionname be available for use? If so, how would I set up the dynamic title.
PS I have used dynamic meta tags in the very distant past but now can't seem to get them to work> Is it possibly something in includes.php inhibiting?
|
Andy
ECT Moderator
95440 Posts |
Posted - 03/18/2019 : 01:04:44
Hi Nick That shouldn't be a problem - are you using something like this <title>Bob's widget store: <?php if($topsection != "") print $topsection . ", "; print $sectionname?></title> https://www.ecommercetemplates.com/seo/dynamic-title-meta-php.asp Andy Please feel free to review / rate our software
|
nickm
Advanced Member
Germany
443 Posts Pre-sales questions only (More Details...)
|
Posted - 03/18/2019 : 01:08:05
Yes and I'm getting just "Bob's widget store:"
|
Andy
ECT Moderator
95440 Posts |
Posted - 03/18/2019 : 01:09:23
Do you have something like this at the top of the code on products.php <?php session_cache_limiter('none'); session_start(); ob_start(); include "vsadmin/db_conn_open.php"; include "vsadmin/inc/metainfo.php";?><html> You will need the metainfo line. Andy Please feel free to review / rate our software
|
nickm
Advanced Member
Germany
443 Posts Pre-sales questions only (More Details...)
|
Posted - 03/18/2019 : 01:20:51
We have
<?php session_cache_limiter('none'); session_start(); ob_start(); include "vsadmin/db_conn_open.php"; include "vsadmin/inc/languagefile.php"; include "vsadmin/includes.php"; include "vsadmin/inc/incfunctions.php"; include "vsadmin/inc/metainfo.php"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><!-- #BeginTemplate "Templates/nextgen.dwt" --><!-- DW6 --> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="viewport" content="width=device-width">
<!-- #BeginEditable "doctitle" --> <? $pno=$_GET["pg"]; if(empty($pno))($pno="1"); $pagenumber=" page ".$pno; ?> <title>Bob's widget store: <?php if($topsection != "") print $topsection . ", "; print $sectionname?></title> <!-- #EndEditable -->
|
Andy
ECT Moderator
95440 Posts |
Posted - 03/18/2019 : 01:29:50
|
nickm
Advanced Member
Germany
443 Posts Pre-sales questions only (More Details...)
|
Posted - 03/18/2019 : 01:32:13
<snip>
please delete reply
Edited by - nickm on 03/18/2019 01:40:49
|
Andy
ECT Moderator
95440 Posts |
Posted - 03/18/2019 : 01:46:09
That appears to be a static URL so the syntax will be different https://www.ecommercetemplates.com/seo/static-url-php.asp#dynamic <?php session_cache_limiter('none'); session_start(); ob_start(); include "vsadmin/db_conn_open.php"; include "vsadmin/inc/languagefile.php"; include "vsadmin/includes.php"; include "vsadmin/inc/incfunctions.php"; $explicitid="prodref"; $prodid="prodref"; include "vsadmin/inc/metainfo.php";?> Andy Please feel free to review / rate our software
|
nickm
Advanced Member
Germany
443 Posts Pre-sales questions only (More Details...)
|
Posted - 03/18/2019 : 01:52:27
I now have
<?php session_cache_limiter('none'); session_start(); ob_start(); include "vsadmin/db_conn_open.php"; include "vsadmin/inc/languagefile.php"; include "vsadmin/includes.php"; include "vsadmin/inc/incfunctions.php"; $explicitid="prodref"; $prodid="prodref"; include "vsadmin/inc/metainfo.php"; ?>
but it is still the same.
|
Andy
ECT Moderator
95440 Posts |
Posted - 03/18/2019 : 02:08:21
Sorry, that would be with catid <?php session_cache_limiter('none'); session_start(); ob_start(); include "vsadmin/db_conn_open.php"; include "vsadmin/inc/languagefile.php"; include "vsadmin/includes.php"; include "vsadmin/inc/incfunctions.php"; $catid="7"; include "vsadmin/inc/metainfo.php";?> Where the "7" comes from the identifier in the category admin page. Andy Please feel free to review / rate our software
|
nickm
Advanced Member
Germany
443 Posts Pre-sales questions only (More Details...)
|
Posted - 03/18/2019 : 02:10:42
That's got it. Thanks.
|
|
|