I'm trying to design a page that will contain to iViews. One would have an announcement text at the top of the page and the other would be a related iView. I would like the announcement header to only display if there's content to be loaded. I've thought of two methods of this.
One would be to create a JSPDyn page that loads both iviews and partner that with some Javascript that hides the top if there's no relevant content. However, I can't seem to find any examples of JSPDyn pages loading other iViews. Where would I look for examples on this?
The other method would be using a property of the iView API called
pageSupport.ivuRemove that appears to do what I want, but again, I haven't found any example code on how to use this.
If anyone has any ideas, example code, or even a better method for optionally displaying an iView, please let me know. I'll be sure to award points for answers that lead me on the right track.
Thank you.
- Craig