![]() |
|
in_context() - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: in_context() (/thread-6136.html) |
in_context() - gjr - 2009-11-15 Hi, Can anyone tell me what all the available in_context() are? I've seen: in_context(ZP_ALBUM) I am trying to display different content based on this function. Also is there something for zenpage distinguishing pages, news, and news article? Thanks! in_context() - acrylian - 2009-11-15 There is: What are you trying to do? If you use the standard theme files you don't need to check. You can also check via the objects. in_context() - gjr - 2009-11-15 Thanks Acrylian - just what I needed for zenpage. I am looking for a method to display certain content (latest news, latest comments, etc) in a sidebar dependant in what context you are (or page). Are there any more for zp core besides the ones I mention above? [b]Is there one to determine if you are on the index page?[/b] I suppose I could make separate sidebar files for each context, but I would rather use conditional statements in one sidebar for all... in_context() - gjr - 2009-11-15 I just took a look at the pdf's included in the package - wow never noticed these before they are an awesome resource! Thanks - I see what I need... in_context() - gjr - 2009-11-15 Acrylian - what do the _LINKED in_context() distinguish? in_context() - acrylian - 2009-11-15 The refers to images/albums in search context when they are not really in context of their own image/album. The pdfs were introduced with 1.2.6. |