Announcement

Collapse
No announcement yet.

Save Page Template as Variable

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Save Page Template as Variable

    Is there an mvt:do function that will save a page output in a variable?

    I can't find something similar to TemplateManager_Render_Page in the LSK tui_mgr folder.
    http://www.alphabetsigns.com/

    #2
    You can call the function you reference in the template language like this:

    Code:
    <mvt:do name="l.result" file="g.Module_Feature_TUI_MGR" value="TemplateManager_Render_Page( 'ABUS' )" />
    Or do you need to save it into a variable vs outputting it directly? Typically you would us MvCAPTURE but that is not available in the templates.
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      Brennan,

      Thanks for the quick reply.

      MvCapture would do it.

      I had come across a function in the LSK and the wheels in my head started to turn and I was looking for an easier way.

      As you said, it's not just not available in the templates yet.



      http://www.alphabetsigns.com/

      Comment


        #4
        quite the work-around, but if you really needed to capture a rendered template as a variable, you could mvt:call it and use assign the output of mvt:call to a variable. (Note, you might need to do the mvt:call in a iframe or ajaxed post.
        Bruce Golub
        Phosphor Media - "Your Success is our Business"

        Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
        phosphormedia.com

        Comment

        Working...
        X