Loading...
 
Skip to main content

Features / Usability


template with "create new page" function

Hi all,

Thank you all for a really amazing product.

I'm using a freshly installed Tiki-10.1 on a linux (Centos 6.3 based) distro.

I'm trying to build a simple app with a hierarchy of screens.

Eg: Book -> Chapter(s) -> Sections(s) -> etc.

At each level, I want a button for creating new instances of the next level down, and a display of the existing items of the next level down.

So for each Book page I want a button for creating new Chapters, and a display of the existing Chapters in this book.

My top level Books page is a simple wiki page.
As per the excellent tutorials, I included a tracker_input module for creating new Books, and a tracker_list plugin to display existing books.

Copy to clipboard
{module module="tracker_input" trackerId="10" success="redirect(/tiki/tiki-index.php?page=Books)" title="New Book" float="right"} {trackerlist trackerId="10" fields="50:51" showlinks="y" showpagination="y"}


Which produces this really attractive wiki page:
Image

Following the tutorials, I "prettified" the output of the tracker_list using a BookView template page, which also worked really well for the layout of the fields.

However, on each Book page, I want to include a way to create a new chapter, and a way to view existing chapters.

So I added an appropriate tracker_input module and tracker_list plugin to the BookView template - essentially copying the code shwn above, with the parameters changed.

The plugin works, but adding the module completely trashes the page display - basically large parts of the initial page contents are simply not generated.

I had read somewhere in the tiki docs that plugins and "even modules" are supported in templates, so here are my questions:

Q1. do template pages support the inclusion of modules?
Q1a. if so, is there a special syntax for making that happen?
Q1b. is my display problem an issue in this version of Tiki?

Comment: From the only similar post I found in these forums, it seems the answer is possibly 'no'.

Q2. what is the easiest way to get a button on the Book template page that will lead to an input page for a new Chapter?

Q3. what is the best way to get a button on the Book template page that will lead to an input page for a new Chapter?

Q4. should I be using different technology/features, such as Structures, instead or in addition?

Thank you all in advance for any and all suggestions.

Kind Regards,
Nik