Hi everybody,
I’m working on a glossary for a site. There are not so many entries, so I’d like to display them all at once on one page, but divided with a header for each letter. This wiki entry does pretty much what I, except that it generates only a list of entry titles - ie “{title}”. I cannot figure out how to get it to display my custom field “{definition}” as well.
I’m not so handy with the direct SQL queries, but willing to dig in. My final code should be something like the following:
<dl>
{exp:query sql="SELECT title, entry_id, url_title AS urlt FROM exp_weblog_titles WHERE weblog_id = '1' AND title LIKE '<?php echo $alphabet;?>%' ORDER BY title ASC"}
<dt>{title}</dt>
<dd>{definition}</dd>
{/exp:query}
</dl>
Can anyone help me figure out what code I need to put in that query that will extract the “{definition}” custom field from my weblog as well as “{title}”?
Thanks very much in advance for any help,
Willhaus