Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test functions

new_featured_collection_form()

Description

Render the new featured collection form

Parameters

ColumnTypeDefaultDescription
$parent int Featured collection parent. Use zero for root featured collection category

Return

void

Location

include/collections_functions.php lines 4635 to 4666

Definition

 
function new_featured_collection_form(int $parent)
    {
    global 
$baseurl_short$lang;

    if(!
checkperm('h') || !can_create_collections())
        {
        
http_response_code(401);
        exit(
$lang['error-permissiondenied']);
        }

    
$form_action "{$baseurl_short}pages/collection_manage.php";
    
?>
    <div class="BasicsBox">
        <h1> echo escape($lang["createnewcollection"]); ?></h1>
        <form name="new_collection_form" id="new_collection_form" class="modalform"
              method="POST" action=" echo $form_action?>" onsubmit="return CentralSpacePost(this, true);">
             generateFormToken("new_collection_form"); ?>
            <input type="hidden" name="call_to_action_tile" value="true"></input>
            <input type="hidden" name="parent" value=" echo $parent?>"></input>
            <div class="Question">
                <label for="newcollection" > echo escape($lang["collectionname"]); ?></label>
                <input type="text" name="name" id="newcollection" maxlength="100" required="true"></input>
                <div class="clearleft"></div>
            </div>
            <div class="QuestionSubmit" >
                <input type="submit" name="create" value=" echo escape($lang["create"]); ?>"></input>
                <div class="clearleft"></div>
            </div>
        </form>
    </div>
    
    
}

This article was last updated 4th December 2024 08:35 Europe/London time based on the source file dated 27th November 2024 15:30 Europe/London time.