Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Add-ons for VP-ASP
 Add extra boxes to your panels via layout manager
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

devshb
Senior Member

United Kingdom
1904 Posts

Posted - February 20 2010 :  22:15:32  Show Profile  Visit devshb's Homepage  Reply with Quote
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:
http://bit.ly/byz162

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:
http://bit.ly/byz093

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.

Simon Barnaby
Developer
[email protected]
www.BigYellowZone.com
www.BigYellowKey.com
Follow us on Twitter: http://twitter.com/bigyellowzone
Web Design, Online Marketing and VPASP addons
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00