API CreateCustomMenuCategory: Porovnání verzí

Z Podpora.nextis.cz
Skočit na navigaci Skočit na vyhledávání
Založena nová stránka s textem „==== Description ==== Method allows You to create new custom menu category in system. ==== Exact name ==== <code>API_CreateCustomMenuCategory</code> ====…“
 
Bez shrnutí editace
Řádek 16: Řádek 16:
!Relation
!Relation
|-
|-
|@WorkshopID
|@ParentID
|int
|int
|
|
|ID of workshop from workshop list (see relation)
|ParentID
|API_GetWorkshops.ID
|
|-
|@PageID
|int
|
|ID of article from articles list (see relation)
|API_GetArticles.ID
|-
|@Title
|nvarchar(250)
|
|Title
|
|-
|@Tooltip
|nvarchar(250)
|
|Tooltip
|
|-
|@Language
|int
|
|Language
cs=0; pl=1; en=2; de=3; sk=4; hu=5; nl=6; ru=7; et=8; lv=9;
 
lt=10; ar=11; fr=12; it=13; pt=14; ro=15; es=16; tr=17; bg=17
|
|-
|@URL
|nvarchar(350)
|
|URL
|
|-
|@OrderIndex
|int
|
|Order index
|
|-
|@BranchID
|int
|
|ID of branch from branch list (see relation)
|API_GetBranches.ID
|}
|}


==== Example ====
==== Example ====
<syntaxhighlight lang="sql">
<syntaxhighlight lang="sql">
EXEC [API_CreateCustomMenuCategory] @WorkshopID = 1 ,@Name = 'Name' ,@Street = 'Street' ,@City = 'City' ,@ZIPCode = 'ZIPCode' ,@Country = 'Country' ,@Region = 'Region' ,@State ='Česká republika' ,@StateID = 15797 ,@Phone = '+420 556 621 300' ,@Fax = '+420 596 790 789' ,@MobilePhone = '+420 556 621 301' ,@Email = 'info@nextis.cz' ,@Web = 'www.nextis.cz'
EXEC [API_CreateCustomMenuCategory] @ParentID= -1 ,@PageID= 1 ,@Title= 'Title' ,@Tooltip= 'Tooltip' ,@Language= 0 ,@URL= 'https://nextis.cz' ,@OrderIndex= 0, @BranchID= -1
</syntaxhighlight>
</syntaxhighlight>


==== Notices ====
==== Notices ====
None.
None.

Verze z 31. 7. 2017, 10:40

Description

Method allows You to create new custom menu category in system.

Exact name

API_CreateCustomMenuCategory

Type

Standard executable stored procedure.

Specification

Parameter Data type Value range Description Relation
@ParentID int ParentID
@PageID int ID of article from articles list (see relation) API_GetArticles.ID
@Title nvarchar(250) Title
@Tooltip nvarchar(250) Tooltip
@Language int Language

cs=0; pl=1; en=2; de=3; sk=4; hu=5; nl=6; ru=7; et=8; lv=9;

lt=10; ar=11; fr=12; it=13; pt=14; ro=15; es=16; tr=17; bg=17

@URL nvarchar(350) URL
@OrderIndex int Order index
@BranchID int ID of branch from branch list (see relation) API_GetBranches.ID

Example

EXEC [API_CreateCustomMenuCategory] @ParentID= -1 ,@PageID= 1 ,@Title= 'Title' ,@Tooltip= 'Tooltip' ,@Language= 0 ,@URL= 'https://nextis.cz' ,@OrderIndex= 0, @BranchID= -1

Notices

None.