Goto main content

help desk

how can I use ct in sncode

How can we use the ct function to generate content the client and extenso admin will be able to edit.

Asked on 0000-00-00 00:00:00

OFFICIAL ANSWER

Usage: sed_core_util::ct(‘code for the ct’);

By default it uses the variable ct for all definition
It look in the table ct_local for the following variables
item_code
item_table

Module
If modify use ct_local
If not, use ct_global

Typical definition of ct in a resource or page:

use lg;
use item;

ct = {  
    "lg" : lg, 
    "module" : module, 
    "ct_global"     : "sed_site_ct_global",
    "ct_local"      : "sed_site_ct_local",
    "item_code"     : item.rows.code,
    "item_table"    : "sed_mod_resource",
    "module"        : "sed_search",
    "edit"          : false
};

 

When a client modify a ct, he can re-publish all pages using this CT.
You must TEST this.
 

Link to the documentation

Answer by:
Pierre Laplante

Replied on: 2020-01-24 00:00:00