Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-08-08 21:49:26

keukenkikker
Member
From: Netherlands
Registered: 2006-08-08
Posts: 79
Website

Attempt to add an extra table to Textpattern

I’m trying to add some extra information to Textpattern. I’ve been told that you can add an extra table to the MYSql database and that the content can be shown in modules from Textpattern.

I’ve seen the possibility of using <txp:custom_field name=“name” />, but this only applies to the existing table.

Is there a way to show information from a custome table in Textpattern?

Offline

#2 2006-08-08 22:21:16

Bastian
Plugin Author
From: Wuppertal, Germany
Registered: 2005-02-02
Posts: 376
Website

Re: Attempt to add an extra table to Textpattern

You can add extra tables to your database and shown them with a plugin that you have to code to do that.

But i guess, that you mean custom fields. These fields are included into TXP and you don’t have to code s plugin by yourselfe.

You find the custom fields under Advanced_Options under near at the write tab. Read about the custom-field tag at textbook

Hope it helps..

Offline

#3 2006-08-09 18:43:45

keukenkikker
Member
From: Netherlands
Registered: 2006-08-08
Posts: 79
Website

Re: Attempt to add an extra table to Textpattern

Thanks for your answer. ‘Unfortunatly’ I ment a custom database table and not the custom-field tag.

I’ve searched through the plugins for something I need, but can’t find any. As I’m rather new at working with Textpattern I was hoping someone else already made something with a different table, so I could have a look of how it is done. I think creating a new plugin is to difficult for me at this moment.

Offline

#4 2006-08-09 19:41:48

Bastian
Plugin Author
From: Wuppertal, Germany
Registered: 2005-02-02
Posts: 376
Website

Re: Attempt to add an extra table to Textpattern

As far i know there is no other method then creating an new plugin if you want to use an extra table in db.

It is not difficult! One of the things i love most with textpattern is that i can write a new plugin very fast and very easy. Check out zem’s template.

What kind of data do you want to store in these extra table?

Offline

#5 2006-08-09 19:56:17

keukenkikker
Member
From: Netherlands
Registered: 2006-08-08
Posts: 79
Website

Re: Attempt to add an extra table to Textpattern

I’ve downloaded it already! … but I can have a look at it at friday at the earliest.

I need to store course information in the extra table (approximatly 15 fields -> 250 records). The information wil be imported from a *.txt file (I’ve done that before) which originally comes from MS Access. This will be done once a year, but the admin must be able to change the course information and add a few courses during the year.

I want to create a course overview (grouped by type) and the possibility to enter detailed information.

Offline

Board footer

Powered by FluxBB