Documentation > Services API > ServicesOutput
CrownPeak.CMSAPI.Services.ServicesOutput
Output template utility methods for commonly used output code.
Name | Description | Type |
---|---|---|
BuildHyperLinkList | Called by RenderHyperLinkList to generate a HTML list of links (and/or sub-links) |
Method |
MetaOutputBuilder | Output method supporting fields generated by ServicesInput.ShowMetaInput, ServicesInput.ShowMetaRobotsInput. Also includes parameters for showing common crownPeak properties (id, template) |
Method |
RenderConditionalField | 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 | 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 | 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 | For creating links to CSS assets. Accepts an asset and 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 |
RenderCSSLink | 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 | 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 | Given an Asset and a ServicesInput.ShowHyperLink fieldname, Creates a ServicesOutput.HyperLink object and calls HyperLink.ToString() or HyperLink.ToString(LinkOutputType.ImageLink). |
Method |
RenderHyperLink | Given a PanelEntry and a ServicesInput.ShowHyperLink fieldname, Creates a ServicesOutput.HyperLink object and calls HyperLink.ToString() or HyperLink.ToString(LinkOutputType.ImageLink). |
Method |
RenderHyperLinkList | Given an Asset and a fieldname from a List Panel that contains a ShowHyperLink input panel, 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 |
RenderHyperLinkList | 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 | Accepts a name and content value and renders a standard html meta tag. Use when building meta output functions. Used by MetaOutputBuilder. |
Method |
RenderScriptLink | For creating links to JavaScript assets. Given an asset, renders a link to it in an HTML script element. Use as a convenience function for creating links to javascript assets. |
Method |
RenderScriptLink | 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 | 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 |