Loading...
 
Skip to main content

Themes


You are viewing a reply to Content Template Problem

Re: Content Template Problem

I just had a look at http://doc.tikiwiki.org/content+templateQuestion and understand why it wasn't very helpful. I thought there was more documentation on the topic than that. Anyway, to be clear, content templates are simply static HTML or wiki syntax templates that can be chosen and pasted into a page when it's being created/edited. In your case you could make the table, as you described, using HTML markup or wiki syntax and save it as a template. Then that would be available from a dropdown list in the editing form. But it isn't dynamic. The category name would have to be input manually by the page creator/editor.

The functionality you're describing sounds like maybe it could be done using some category plugin, like

Copy to clipboard
Category: {CATPATH(divider=>>,top=>no)}{CATPATH}


-- Gary - zukakakina.comQuestion

Hi Gary,

Thanks for the prompt reply.

I understand that a content template is a way of controlling the layout of the page. In my mind I'm looking to find the equivalent of a mail-merge document template.

The maketoc command for example, will add a toc to the page at the point specified on the layout. So far so good. Assuming (which always gets us into trouble) Dynamic Variables are what they say they are - Dynamic and a Variable, is there no way that a list of the available variables can be displayed, or made available and then inserted where required in the content template when it is created\edited.

To take a simplistic view; In a mail-merge document I am able to call the (name) and (country) variables and the page will use the info in the (name) and (country) place holders on the document.

Is that kind of functionality available in Tikiwiki?