Member
Member
kilroy   2011-11-07, 07:42
#1

I am creating a custom homepage with a slideshow on top and content (website presentation) below.

When I place printSlideShow before printPageContent, the page content does not show.
When I place printPageContent before printSlideShow, the content appears normally.

Here is the code I use

and

Administrator
Administrator
acrylian   2011-11-07, 10:38
#2

Any errors? Is it really not showing or maybe just overlapped display in whatever theme your are using?

Member
Member
kilroy   2011-11-11, 10:40
#3

The area where the content is supposed to appear is entirely blank.

No error.

If I place the Slideshow code in a codeblock in a Zenpage, I do get an error:
Notice: Bad gallery in instantiation of album top.alb. in D:\wwwroot\fep\zp-core\class-album.php on line 48

Administrator
Administrator
acrylian   2011-11-11, 11:08
#4

Yes, within the codeblox the $_zp_gallery global is not set/available as it is a call within a function.

You did correctly add the needed js files to the page's ``? Except for the slideshow.php page you need to do that manually.

I will have to try that later myself as that generally should work.

Administrator
Administrator
acrylian   2011-11-14, 14:18
#5

Finally I did get to try this. The reason is that the slideshow changes the context so the page does not work. So after the slideshow call you need to do set_context(ZP_ZENPAGE_PAGE); to restore the page context.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.