Posted - February 20 2010 : 22:15:32
| This is only relevant to VPASP V7....
The standard vpasp layout manager lets you enable/disable/move the various side/footer/central panel elements around, and it also lets you create new boxes for things like text blocks and html/images etc, but we found recently that one thing it can't do is let you create a box which calls an asp function that you've created.
To do that you'd need to change the way that the headers/trailers get processed, or start copying/pasting loads of calls/code from the layout processing into your actual header/trailer templates.
So, the example scenario goes like this:
"I want to create a new box in my side panel via the layout manager; I want to be able to enable/move it around just like I can with the other layout manager elements but my box content isn't standard text/html/images and it doesn't equate to any of the other element/box "types", it uses session values and stuff to show different text, and/or does a query to show some other info. I've coded-up my function which shows what I want, all I want to do is create the call for it in the layout manager; how can I get the layout manager to call a given function for a given element?"
or, put more simply:
"I've created an asp function to display something, how can I call/show it in the relevant place in my panel?"
Well, we had to do exactly that, and ended up creating this for it:
Extra Panel Elements for VP-ASP:
It's also available in the latest version of BYZ093 (product showcasing), so if you want to showcase different types of products in your panels, then you can get BYZ093 which also includes BYZ162 within it:
It might all sound like a fairly obscure thing to do, and perhaps not many people will want to use it, but other people have already needed this functionality so we ended up coding a generic way to do it all as an addon and then just used that; it worked a treat and did exactly what was needed.
Follow us on Twitter: http://twitter.com/bigyellowzone
Web Design, Online Marketing and VPASP addons