AndrewM Posted November 24, 2004 Posted November 24, 2004 Is there something out there that allows me to edit the footer by page via the admin section in much the same way as Header Tags Controller? Can Header Tags Controller be hacked to allow this? Andrew
Jack_mcs Posted November 24, 2004 Posted November 24, 2004 Your question isn't clear to me. Are you wanting to change what appears in the footer depending on what page you are? 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
AndrewM Posted November 24, 2004 Author Posted November 24, 2004 Hi there... Sorry...yes, similar to the concept of having meta tag info relate to the particular page the customer is viewing as in the contribution above. I want to have info displayed in the footer relevant to the particular product that the customer is viewing. I want this to be editable through the admin area, specifically on the screen where the product is added. AndrewM
Jack_mcs Posted November 25, 2004 Posted November 25, 2004 That is doable and sounds like a good idea but I don't think anything exists in the contributions section that will do that for you. 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
AndrewM Posted November 25, 2004 Author Posted November 25, 2004 Yeah it's a shame actually. I'm not proficient enough in PHP to be able to do it myself :( AndrewM
Guest Posted November 25, 2004 Posted November 25, 2004 There is a simple thing that you can do that might help further your goal. If you have just a few footer pages that you want to switch between, you can switch them based on a PHP variable called $PHP_SELF that stores the value of the page you're on. For example, you could rename footer.php to footer1.php, and create a new one (similar to footer1.php, probably) named footer2.php. Then, you'd create a new footer.php with something like this: <?php if ($PHP_SELF == "product_info.php") { require(DIR_WS_INCLUDES . 'footer1.php'); } else { require(DIR_WS_INCLUDES . 'footer2.php'); } ?> That would use footer1 for product_info.php and footer2.php for everything else. There are many more variables that you have to work with - - look at the server info page in the admin section, under Tools. If you can clarify exactly what your needs are, maybe we can figure out a way to get it going for you. -jared Edit: forgot to close the code block properly. -jc
AndrewM Posted November 26, 2004 Author Posted November 26, 2004 Thanks Jared! I'll give it a shot. AndrewM
Guest Posted November 26, 2004 Posted November 26, 2004 Let us know how it goes - - I'm curious to see how you implement it. -jared
Recommended Posts
Archived
This topic is now archived and is closed to further replies.