Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
if I call a render asset handler, how do I isolate asset conditionally.

e.g.
public function CategoriesController_BeforeRenderAsset_Handler($Sender) {
if I only want something to act on the content, but not the footer, not the header and not the panel.
what would be the way to test for that?
I haven't been successful in retrieving the AssetName out of wherever it is.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
0
Comments
Is it even possible to check for the asset it is about to render.
Is this a stupid question or do the people who know just ignore my questions?
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
If you don't see me answering any of your questions or posting on the board as frequently.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@x00
if it is not clear.
I was trying to echo something to the Content Asset after the event BeforeRenderAsset
public function CategoriesController_BeforeRenderAsset_Handler($Sender) {
since there is no other event just for ContentAsset in Vanilla 2.1
so if something is echoed in this function it gets echoed to the footer, panel, header, and every other assert with respect to the CategoryController.
I can remedy it by displaying none for the other asset classes in the css, but what is the better way besides adding my on event.
You seemed to be on to something similar in the CategoryAccordion plugin, but I'm stumped. And you seem to be the only one with the know how who is willing to help occasionally.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
have a look at the pokets plugin
grep is your friend.
will do. thanks much, you are the "superstar" in this forum @x00.
If I get it working with that, which seems pretty easy, it should make my plugin better.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
worked perfectly thanks again x00.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.