Posted - 11/15/2021 : 21:33:43
Hi Vince, to better explain what I am on about ... On products.php I use this dynamic code in the <body>: <h1><?php if(!empty($pagetitle) && $pno == 1) {print $pagetitle;} else if(!empty($pagetitle) && $pno != 1){print $pagetitle . $pagenumber;} else if(!empty($sectionname) && $pno == 1) {print $sectionname;} else if(!empty($sectionname) && $pno != 1) {print $sectionname . $pagenumber;} else if($pno == 1) {print $allpagestitle;} else {print $allpagestitle . $pagenumber;} ?></h1>
<?php include_once "vsadmin/inc/incproducts.php") ?>The <h1> heading works fine. But for <p>This is a the short description I would like to see when viewing All Pages.</p> ... incproducts.php currently does this: <?php if(!empty($sectiondescription)) {print str_replace('"','"',$sectiondescription);} else {print $rootcategorydescription;} ?>when I would really prefer that it does this: <?php if(!empty($sectiondescription) && $pno < 2) {print $sectiondescription;} else if(!empty($sectiondescription) && $pno > 1) {print $sectiondescription . $pagenumber;} else if($pno < 2) {print $allpagesdescription;} else {print $allpagesdescription . $pagenumber;} ?>The similar dynamic code I have in the <head> to generate <title> and <meta name="Description"> works just fine. I can send you that of you would like. If any of these optional variables had not been defined in the includes.php file $GLOBALS['rootcategorytitle'] $GLOBALS['rootcategorydescription'] $GLOBALS['allpagestitle'] $GLOBALS['allpagesdescription']then they would print as empty? I guess here I am assuming the advanced dynamic title and meta description code for categories.php and products.php should be stock standard for all Ecommerce Templates websites, which I suppose is wrong  . Therefore, what I am wishing for cannot be implemented in your ECT Updater releases? Gary 
Edited by - ITZAP on 11/15/2021 21:54:08
|