Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2021-02-06 11:09:31

ugur
New Member
Registered: 2021-02-05
Posts: 4

sample crud application

i need a sample crud application

help me please

Offline

#2 2021-02-06 13:50:37

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,129
Website

Re: sample crud application

I haven’t got that for you, but you can find the functions and a sample setup by looking at the core.

  • /lib/txplib_db.php contains the main DB CRUD functions.
  • /include/txp_link.php shows, for example, how the links panel is constructed, e.g. with the list of the entries, edit panel, load/edit/save and user messaging. If you were making your own content type, you’d create a similar set of functions but rather than adding a file, you’d bring them in as a plugin.
  • More details on writing a plugin in the docs

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB