
Appifio Creator · Lesson EM04 · Easy · 5 composite methods
Composite helpers
content + route · index - full structure
content + route · index - full structure
Built on writeFile + addRoute. Fields / findByName: see EM03.
Note: These are convenience helpers - when something fails, still debug step-by-step with EM03 / EM05 / EM06.
appifio_createContentWithRoute(title, content, type, options?)Job: Generate slug → save to data store → addRoute → (optional) update index.
const r = await appifio_client.appifio_createContentWithRoute( 'Article about AI', '
Content...
', 'blog' );
Notes: The HTML handler file must exist (ensureHandlerFile or EM05).
appifio_ensureHandlerFile(filePath, content?)await appifio_client.appifio_ensureHandlerFile('blog/detail.html', htmlDefault);Job: Missing page file → create; already exists → keep.
appifio_deleteContentWithRoute(slug, type)await appifio_client.appifio_deleteContentWithRoute('article-about-ai', 'blog');Job: Delete related content + removeRoute + remove from index.
appifio_updateContentIndex(type, item)await appifio_client.appifio_updateContentIndex('blog', { slug: '…', title: '…' });appifio_removeFromContentIndex(type, slug)await appifio_client.appifio_removeFromContentIndex('blog', 'article-about-ai');EM04 checklist (5/5): createContentWithRoute · ensureHandlerFile · deleteContentWithRoute · updateContentIndex · removeFromContentIndex
Next
EM05 - Page files & upload
Internal navigation (same language)
Appifio Creator · User guide · EM04