Thanks Matt.
I had thought about going this route. This might defeat the purpose of what I'm trying to accomplish. That is, moving template page type renders to RT Content sections. I've done some benchmarking and the RTs increases the page speed. This is the main reason I was looking for a variation as I described prior. I think a database/table function call would load that data faster than a Template_Render -- which EVals to the web page doesn't it. I can't seem to find that function in the docs.miva or in the LSK. (I've used...before too).
Scott
Announcement
Collapse
No announcement yet.
ReadyTheme API style functions?
Collapse
X
-
Hi Scott,
I was introduced to this today so I thought I would pass it on to you. It will load the content section and output the contents without the wrapping DIV..
Code:<mvt:item name="readytheme" param="Load_ContentSection(g.colContent2)" /> <mvt:if expr="l.settings:readytheme:loaded:active"> <mvt:do name="l.return" file="g.Module_Feature_TUI_DB" value="ManagedTemplate_Load_ID( l.settings:readytheme:loaded:templ_id, l.loaded_template )" /> <mvt:do name="l.null" file="g.Store_Template_Path $ l.loaded_template:filename" value="Template_Render( l.null, l.all_settings )" /> </mvt:if>
Leave a comment:
-
This works:
Code:&mvte:global:ids:col2:name;
Code:`id` `active` `code` `name` `descrip` `templ_id` `css_id` `css_class`
IOW, this function doesn't load the template content. The only info I can glean is that the RT content item exists or not.
This is my suggestion:
Code:<mvt:item name="readytheme" param="Load_ContentSection(g.colContent2, g.ids:col2, g.ids:templatecontent )" />
Then, that variable could be checked for length of the string -- I'd have what I needed for this scenario.
Scott
Leave a comment:
-
Well, the Load Image function is documented just above the function list. But, not the other functions.
I'll need to dig into the data tables, assuming the column names will be the member names. I could easily find out myself if the RT module were in the LSK.
Scott
Leave a comment:
-
Hi Scott,
Unfortunately, all the information I have at this time is what is in that documentation.
Leave a comment:
-
Matt, I think there should probably be more documentation on this:
Code:<mvt:item name="readytheme" param="Load_ContentSection(g.colContent2, g.ids:col2 )" /> <br>**<br>&mvte:global:ids:col2;<br>**<br>
Scott
Leave a comment:
-
Hi Scott,
Are you referring to the Template Language Functions at the bottom of this page? https://docs.miva.com/template-langu...-documentation
Leave a comment:
-
ReadyTheme API style functions?
I am not finding any API functions for this at the template level. I need to be able to find out if a Readytheme content item exists and then if true, find out if there is any content. Do these exist somehow/somewhere? Or, is there a way to run the component item without rendering so I could parse the return value?
ScottTags: None
Leave a comment: