TGPX Question: How The Hell To I Automatically Insert The Category's Name Into The HTML??
I assumed this would work:
{$category.name|htmlspecialchars} But obviously I'm dumb. I have the feeling I'm missing something like maybe coding that needs to be added to the top of the page so that it works, but fuck me if I can find it |facepalm| Can anyone tell me WTF I'm doing wrong? Or show me an example of it in action? Thank you :) |
Nevermind |facepalm|
{$page_category.name|htmlspecialchars} (leaving this here as yet another example of my stupidity) |
I'm not aware of a template variable that displays the current category value.
|
When you Add TGP Page, if you assign it a category, the name of that category will be inserted anytime it sees:
{$page_category.name|htmlspecialchars} I just tried it on the Porn Luv Amateur category page & it works. So this: Becomes this: This: Becomes this: ...and so on. I didn't try this: category={$page_category.name|htmlspecialchars} Because I actually knew that: category=MIXED Would be ok since I assigned the page a category & TGPX automatically changes it to that category. Of course, I just |banghead| for a good hour or so trying to figure out why {$category.name|htmlspecialchars} wouldn't work, which is what we use for the category lists on all the pages. I'm too embarrassed to tell anyone how I realized my mistake. |
Quote:
You got it figured out, so you learned something. +1 for Greenguy today, ya know? I have spent countless hours searching code for an issue only to find it being one misplaced parentheses or some other programming 101 error and I have been doing this shit for over 30 years. You have figured out a whole mess of stuff this week. Kudos to you |banana| |
Quote:
|
All times are GMT -4. The time now is 05:55 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc