src/main/resources/aspects/FeaturedContent/featuredcontent.js
/**
 * Manage featured item, this is a flow entry point allowing the user to search for items by
 * their internal id or handle.
 */
Manage featured item, this is a flow entry point allowing the user to search for items by
their internal id or handle.
Manage featured item this is a flow entry point allowing the user to search for items by their internal id or handle .
function doManageFeaturedContent()
{
    assertAdministrator();
    var img_location;
    var link_target;
    var caption;
    var result;
    do {
        sendPageAndWait("admin/featured-content/status",{"img_location":img_location,"link_target":link_target,"caption":caption},result);
        assertAdministrator();
        result = null;
        if (cocoon.request.get("img_location") && cocoon.request.get("link_target") && cocoon.request.get("caption"))
        {
            img_location = cocoon.request.get("img_location");
            link_target = cocoon.request.get("link_target");
            caption = cocoon.request.get("caption");
            if( (img_location != "") && (link_target != "") && (caption != "") ){
                result = doPreviewFeaturedContent(img_location, link_target, caption);
            }
        }
    } while (true)
}
function doManageFeaturedContent ( ) { assertAdministrator ( ) ; var img_location ; var link_target ; var caption ; var result ; do { sendPageAndWait ( "admin/featured-content/status" , { "img_location" : img_location , "link_target" : link_target , "caption" : caption } , result ) ; assertAdministrator ( ) ; result = null ; if ( cocoon . request . get ( "img_location" ) && cocoon . request . get ( "link_target" ) && cocoon . request . get ( "caption" ) ) { img_location = cocoon . request . get ( "img_location" ) ; link_target = cocoon . request . get ( "link_target" ) ; caption = cocoon . request . get ( "caption" ) ; if ( ( img_location != "" ) && ( link_target != "" ) && ( caption != "" ) ) { result = doPreviewFeaturedContent ( img_location , link_target , caption ) ; } } } while ( true ) }
Manage featured item, this is a flow entry point allowing the user to search for items by
 their internal id or handle.
Manage featured item this is a flow entry point allowing the user to search for items by their internal id or handle .