Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#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
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
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
Pages: 1