Let a thousand I.C.E. APIs bloom!

Create New Page

In I.C.E. CMS, a Page is a piece of content such as a news article, a news release or a content page such as About Us or Privacy Policy. It can also act as a container for media such as images, videos, Flash etc. Pages are assigned to Channels and their look and feel is determined by the HTML code and dynamic content entered in the Page Template Code field of the Channel it's assigned to.

Create New Content

To create a new Page, select Page in the New select box. Enter a Title (or headline) for the page and select the Channel that the Page belongs to. If the Page will include a summary, enter this in Summary field. Next, enter the body content of the Page using the WYSIWYG HTML Editor. You can use the editor for formatting and inserting static images and Flash into the page. If you plan to use link text such as "More" or "Read" on the index page of the Channel this page belongs to you may enter it in the Link Text field.

The fields Meta Title, Meta Keyword, Meta Description and Anchor Text allow you to implement Search Engine Optimization on the page. This is done by referencing these fields programmatically (using the page Content Widgets) in the Index Template Code and Page Template Code of your Channels.

Next, enter a Rank (number starting from 1) which determines the order in which content is retrieved. Pages with a Rank of 1 appear at the top. Set the Status to Active and if your Site is multi-lingual, select the language for the content.

 

Adding Dynamic, Images, Flash, Videos, Audio and Documents

In I.C.E. CMS, a page acts as a holder for text  and media such as Images, Flash, Videos, Audio and Documents. If you wish to associate media with a page. You must first Browse the media and click the Favorites (star) icon next to the media(s) you wish to use. A yellow star means that that media is selected. Once media has been favorited, it's available for addition to your pages. On the New Page form, select the media you wish to associate with the page, then click the Save button.

 

Displaying Media in the Index Template Code and Page Template Code fields of a Channel

To display media associated with a Page, you need to ensure that your Channel templates (the Index Template Code and Page Template Code fields) contain the dynamic code to do so. To do this, you can use the Media Content Widget (media.cfm) to which you pass the Page ID for which to retrieve media. Bear in mind that if you use the Media Content Widget in the Index Template Code field of a Channel, you'll be passing the variable #id# as the page_id attribute and if using it in the Page Template Code field of a Channel you can pass either #id# or the page id URL variable #url.pid#.

Example Code:

<!--- Retrieve Media for the Page --->
<cfmodule template="../../../widgets/media.cfm" page_id="url.pid#">
<!--- Retrieve Media for the Page --->

 

<!--- Display the Images --->
<cfoutput query="session.page_image">

<p>
Image: #ice_image#<br />
File: #file#<br />
Caption: #caption#<br />
Created: #created#<br />
Alt Text: #alt_text#<br />
</p>
</cfoutput>
<!--- Display the Images ---> 

 

 

<!--- Display the Videos --->
<cfoutput query="session.page_video">

<p>
Video: #ice_video#<br />
File: #file#<br />
Embed Code: #embed_code#<br />
Video URL: #video_url#<br />
Caption: #caption#<br />
Created: #created#<br />
</p>
</cfoutput>
<!--- Display the Videos ---> 

 

 

<!--- Display the Audio --->
<cfoutput query="session.page_audio">

<p>
Audio: #ice_audio#<br />
File: #file#<br />
Audio URL: #audio_url#<br />
Caption: #caption#<br />
Created: #created#<br />
</p>
</cfoutput>
<!--- Display the Audio ---> 

 

 

<!--- Display the Flash --->
<cfoutput query="session.page_flash">

<p>
Flash: #ice_flash#<br />
File: #file#<br />
Caption: #caption#<br />
Created: #created#<br />
</p>
</cfoutput>
<!--- Display the Flash ---> 

 

<!--- Display the Document --->
<cfoutput query="session.page_document">

<p>
Document: #ice_document#<br />
File: #file#<br />
Caption: #caption#<br />
Created: #created#<br />
</p>
</cfoutput>
<!--- Display the Document ---> 

Note: Videos have additional fields: Embed Code [for embedding Youtube videos etc], Video URL [for calling a video from the Internet]. Audio has an additional field Audio URL [for calling audio from the Internet].

Conditional Logic

Because Pages can have unknown numbers of media attached it is important to check in your code if a media type is available for display before displaying it.

Example Code:

<!--- Display Images only if they exist --->
<CFIF session.page_image.recordcount IS NOT 0>
<cfoutput query="session.page_image" startrow="1" maxrows="#session.page_image.recordcount#">

<p>
Image: #ice_image#<br />
File: #file#<br />
Caption: #caption#<br />
Created: #created#<br />
Alt Text: #alt_text#<br />
</p>
</cfoutput>
</CFIF>
<!--- Display Images only if they exist --->

Because Videos can be in the form of a file on the server, a Video URL or embed code from a video service, you may also need to use conditional logic to check what type of video output you wish to display.

Example Code:

<!--- Display the Videos --->
<cfoutput query="session.page_video">

<p>
Video: #ice_video#<br />


<CFIF file IS NOT ''>
File: #file#<br />
</cfif>

<cfif embed_code IS NOT ''>
Embed Code: #embed_code#<br />

</cfif>

<cfif video_url IS NOT ''>
Video URL: #video_url#<br />
</cfif>

Caption: #caption#<br />
Created: #created#<br />
</p>
</cfoutput>
<!--- Display the Videos ---> 



DEMO (Beta)

Don't take our word for it. Try Lingxia 273 I.C.E. content managent system now: (Contact us to access the demo with Admin privileges)

E-mail:


Password:


DOWNLOAD IT!