Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-09-10 14:38:20

GreggyZed
New Member
Registered: 2009-09-10
Posts: 2

Using BibTeX in Textpattern

Hi,

I am looking to use a Content Management System to handle a website. The idea is to upgrade the Publications section of this site to be able to be automatically updated from a database. The plan is to use BibTeX and parse the information as it appears in the Publications section of the site including a link to a .PDF of the article if it is available. Would this be possible to do with Textpattern? If so, how would one go about accomplishing this?

Offline

#2 2009-09-10 16:39:48

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Using BibTeX in Textpattern

Check out bibtex2html (or others depending on your server). Once you have it available via shell, do something like this in an article form:

<txp:php>
// untested
echo shell_exec('bibtex2html -o - custom_field(array('name' => 'pathToBib'))');
</txp:php>

As you can see, your articles will need to specify the path to the .bib file in a custom field named “pathToBib”.

Last edited by jm (2009-09-10 16:40:18)

Offline

#3 2009-09-10 16:46:21

GreggyZed
New Member
Registered: 2009-09-10
Posts: 2

Re: Using BibTeX in Textpattern

Thanks for the information! I’ll add it to my page of notes as I try to make a choice.

Offline

#4 2009-09-10 16:57:38

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Using BibTeX in Textpattern

No problem. It’ll probably be similar for any other PHP-based CMS (except <txp:php> will be raw PHP tags <?php...?>).

Offline

Board footer

Powered by FluxBB