<![CDATA[ Where can I learn about 'context'? - My Forums]]> https://forums.modx.com/thread/?thread=32127 <![CDATA[Re: Where can I learn about 'context'?]]> https://forums.modx.com/thread/32127/where-can-i-learn-about-context#dis-post-174044 Quote from: sottwell at Feb 18, 2008, 06:15 PM

almost sounds like a context is an object, and you can extend and override the default basic context object, but it will still be able to access everything its parent base object can.
This is what I am understanding as well. I guess it will all make more sense once we start messing around with contexts. In other words I need to see it in context shocked]]>
dev_cw Feb 18, 2008, 12:49 PM https://forums.modx.com/thread/32127/where-can-i-learn-about-context#dis-post-174044
<![CDATA[Re: Where can I learn about 'context'?]]> https://forums.modx.com/thread/32127/where-can-i-learn-about-context#dis-post-174043 sottwell Feb 18, 2008, 12:15 PM https://forums.modx.com/thread/32127/where-can-i-learn-about-context#dis-post-174043 <![CDATA[Re: Where can I learn about 'context'?]]> https://forums.modx.com/thread/32127/where-can-i-learn-about-context#dis-post-174042
All settings are available in contexts; the way MODx requests work, they load the system configuration, then the specified context configuration, overriding any or all of the elements from the system configuration (though overriding all of them is likely never going to be real scenario). Via the API, you will be able to log users in or out of specific contexts (or all of them at once). And you will absolutely be able to use a plugin to detect the user-agent and take appropriate action, or detect language preferences, etc.

Theoretically, you will be able to share a single Resource (i.e. a Page or Document) across multiple Contexts, but the TV values would be the same in all contexts unless they contained logic to detect the context and render different content on that basis.]]>
opengeek Feb 18, 2008, 12:02 PM https://forums.modx.com/thread/32127/where-can-i-learn-about-context#dis-post-174042
<![CDATA[Re: Where can I learn about 'context'?]]> https://forums.modx.com/thread/32127/where-can-i-learn-about-context#dis-post-174041
ie: what settings are available for a context, what files are created to support those settings, is there any special API functions related to contexts... as in can I make a plugin to detect a user-agent and then re-direct them to a special context...

Also, do contexts share content or templates or resources? If so, in what way... as in can I share a *page* resource between contexts and update TVs in one place but see the changes in all the contexts that use that resource but have separate contextual templates for the output?


]]>
foniksonik Feb 18, 2008, 09:25 AM https://forums.modx.com/thread/32127/where-can-i-learn-about-context#dis-post-174041
<![CDATA[Re: Where can I learn about 'context'?]]> https://forums.modx.com/thread/32127/where-can-i-learn-about-context#dis-post-174040
Admittedly, it is difficult grasping some of the new concepts being presented in MODx 0.9.7 because they are all at various stages of implementation - I know I struggled initially wrapping my head round it all.

I’d safely ignore the Wikipedia explanation as that’s describing something totally different (just with the same name).

Hope that helps (rather than confusing you even more),
Garry
]]>
garryn Feb 16, 2008, 08:13 PM https://forums.modx.com/thread/32127/where-can-i-learn-about-context#dis-post-174040
<![CDATA[Where can I learn about 'context'?]]> https://forums.modx.com/thread/32127/where-can-i-learn-about-context#dis-post-174039

Wikipedia’s definition left me with more questions than answers:
In computer science, a task context (process, thread ...) is the minimal set of data used by this task that must be saved to allow a task interruption at a given date, and a continuation of this task at the point it has been interrupted and at an arbitrary future date. The concept of context assumes significance in the case of interruptible tasks, wherein upon being interrupted the processer saves the context and proceeds to serve the Interrupt service routine. Thus the smaller the context the smaller is the latency.

I have read this from the roadmap, but I am still not sure:
Contexts – This new concept will allow MODx configuration settings to be overridden, extended, isolated, or shared across domains, sub-domains, sub-sites, multi-sites, cultural-specific sections, specific web applications, etc.

I also read the "Transforming MODx: Tales of OO, MVC, and O/RM" article that mentions 1. CONTEXTS: FLEXIBLE FRONT CONTROLLERS and still not clear about the big picture of Contexts.]]>
dev_cw Feb 16, 2008, 07:36 PM https://forums.modx.com/thread/32127/where-can-i-learn-about-context#dis-post-174039