API CreateCustomMenuCategory: Porovnání verzí

Z Podpora.nextis.cz
Přejít na: navigace, hledání
 
(Není zobrazena jedna mezilehlá verze od stejného uživatele.)
Řádka 19: Řádka 19:
 
|int
 
|int
 
|
 
|
|ParentID
+
|Parent category ID
 
|
 
|
 
|-
 
|-
Řádka 67: Řádka 67:
 
|API_GetBranches.ID
 
|API_GetBranches.ID
 
|}
 
|}
 +
 +
==== Return ====
 +
0 : OK
 +
100 : Item could not be created
  
 
==== Example ====
 
==== Example ====
 
<syntaxhighlight lang="sql">
 
<syntaxhighlight lang="sql">
EXEC [API_CreateCustomMenuCategory] @ParentID= -1 ,@PageID= 1 ,@Title= 'Title' ,@Tooltip= 'Tooltip' ,@Language= 0 ,@URL= 'https://nextis.cz' ,@OrderIndex= 0, @BranchID= -1  
+
DECLARE @return_value int
 +
EXEC @return_value = [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.

Aktuální verze z 20. 9. 2017, 16:13

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 Parent category 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

Return

0 : OK
100 : Item could not be created

Example

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

Notices

None.