Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Execute other functions -- lifecycle

$
0
0
Based on looking at the source and some experimentation it seems like there is no way to pass any data to a function (excluding parameters) regardless of the method you use. The pages are built from the bottom up in the case of the function markup so there is no opportunity pass along any data and even when using @function the pagedata is always "new" although i thought based on the source that would have worked.

In my scenario I need data to flow top down which isn't an option so i was forced to have my functions (template parts) be responsible for getting the data and then jammed it into session for all other parts to use it as well.

If anyone sees a better way please let me know.

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>