Loading...
 
Skip to main content

Themes


Content Template Problem

Hi all, I'm new to this and need a little help on Content Templates.

I'm trying to add a small table to the bottom of a content table that has, in the first column, Category and in the second column the name of the category that was assigned when the page was created.

I'm getting nowhere with the documentation and so I'm trying here.

Any help would be appreciated

Tim

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?


I too am confused about creating templates (for content, not CSS / themes)

In the following Webpage:
http://doc.tikiwiki.org/content+templateQuestion

you indicate:
To create or edit a content template, follow the "content templates" link from the admin section of the application menu.

I am logged in as an administrator to my instance of TikiWiki, and cannot for the life of me see this option.

I have tried changing the settings for the site, but can't see it. I don't have access to the PHP source code, but can pass along any instructions needed to make the template link viewable.

Would you be able to point me in the right direction? It is essential that our site provides the ability to create templated entries, given the homogeneity and volume of content.

Thanks


Thanks Chibaguy.

It wasn't exactly the answer I was looking for, but thanks anyway. What you described is nothing like my idea of templates. I want a template (Like a form maybe a better definition) that I can enforce the load of when the editor starts. That pre-populates some of the variables that tikiwiki uses already (like created date and author).

If I can't enforce the loading of any template we will have ground to a halt right there. I'll check back regulary in case anything comes to mind by anybody.

Tim