List the Sites created in Fatwire

Posted: December 20, 2011 in Fatwire
Tags: , , , , , , ,

The sites which are created in Fatwire can be listed using the tag  publication:list. In this article, we are going to display the list of sites created in Fatwire content server.

Following is the code piece:

<%@ taglib prefix="publication" uri="futuretense_cs/publication.tld" %>

//This library helps in the usage of the publication tag

//To retrieve the list of the sites, we are going to use the following code snippet
<publication:list list="mysites"/>

//Now, to display the sites, the following code snippet is used. We are going to display the sites using the listloop and listget tags:
<ics:listloop listname="mysites">
	    ID OF SITE: <ics:listget listname="mysites" fieldname="id"/>,
	    SITENAME :<ics:listget listname="mysites" fieldname="name"/>
</ics:listloop>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s