Documentation > Services API > ServicesOutput

CrownPeak.CMSAPI.Services.ServicesOutput

Output template utility methods for commonly used output code.

NameDescriptionType
MetaOutputBuilder(Asset,Asset,Boolean,Boolean,Boolean)

Output method supporting fields generated by ServicesInput.ShowMetaInput, ServicesInput.ShowMetaRobotsInput. Also includes parameters for showing common crownPeak properties (id, template)

Method
RenderConditionalField(Asset,String,String,String,String,String)

A flexible convenience method to help in common output scenarios where rendering a tag or code fragment is dependent on the value of an Asset field.

Method
RenderConditionalField(PanelEntry,String,String,String,String,String)

A flexible convenience method to help in common output scenarios where rendering a tag or code fragment is dependent on the value of a PanelEntry field.

Method
RenderConditionalString(String,String,String,String,String)

Related to RederConditionalField but for a string input. Useful if the condition being checked is output resulting from a previous renderConditionalField or RenderConditionalString rather than from a single or specific field

Method
RenderCSSLink(Int32,String,String,String,OutputContext)

For creating links to CSS assets. Accepts an asset Id and if loaded, renders a link to it as an HTML link elementt. Use as a convenience function when building wrapper templates and anywhere you need to load a css asset in output.

Method
RenderCSSLink(String,String,String,String,OutputContext)

For creating links to CSS assets. Accepts an asset path and if loaded, renders a link to it as an HTML link element. Use as a convenience function when building wrapper templates and anywhere you need to load a css asset in output.

Method
RenderHyperLink(PanelEntry,String,LinkOutputType)

Given a PanelEntry and a ServicesInput.ShowHyperLink fieldname, Creates a ServicesOutput.HyperLink object and calls HyperLink.ToString() or HyperLink.ToString(LinkOutputType.ImageLink).

Method
RenderHyperLinkList(PanelEntry,String,LinkListType,String,String,String,LinkListType,Int32)

Given an PanelEntry and a fieldname from a List Panel (e.g., Input.NextPanel(fieldname)) that contains a ShowHyperLink input panel (e.g., ServicesInput.ShowHyperLink(fieldname)), Renders a list of HTML links (and/or sub-links) using the fields from ServicesInput.ShowHyperLink with the same base fieldname. Make sure the fieldname of the List Panel (e.g., Input.NextPanel(fieldname)) is the same as the one given to ServicesInput.ShowHyperLink (e.g., ServicesInput.ShowHyperLink(fieldname)).

Method
RenderMetaField(String,String,Boolean,String)

Accepts a name and content value and renders a standard html meta tag. Use when building meta output functions. Used by MetaOutputBuilder.

Method
RenderScriptLink(Int32,String,String,OutputContext)

For creating links to JavaScript assets. Loads an asset by Id and renders a link to it in an HTML script element. Use as a convenience function for creating links to javascript assets.

Method
RenderScriptLink(String,String,String,OutputContext)

For creating links to JavaScript assets. Loads an asset by path and renders a link to it in an HTML script element. Use as a convenience function for creating links to javascript assets.

Method

Connect with CrownPeak