Originally Posted by
DK_Scully
Ideally we want to create author pages for each of our authors.
Yes, we know we can list the author names in the Manufacturers' sidebox...but while that creates a very nice dynamic list of the books each one has published, it does not provide the option for an author bio.
Perhaps what you need is just a little customizing of the Manufacturers display?
What if the pick-list of authors in the sidebox could still be used? That would let there be a quick-search for books by that author, and also display a bio at the top of the list.
This could be done by adding a manufacturer description. There's probably already a plugin for this, but you can do it yourself pretty easily:
SQL to add field to db:
Code:
ALTER TABLE manufacturers_info ADD COLUMN `mfg_description` text NOT NULL;
/includes/modules/pages/index/main_template_vars.php, (around line 219 in v1.5.5) :
Code:
if ($current_categories_name == '' && isset($_GET['manufacturers_id'])) { $result = $db->Execute( "SELECT * FROM " . TABLE_MANUFACTURERS . " m
LEFT JOIN " . TABLE_MANUFACTURERS_INFO . " mi on (m.manufacturers_id = mi.manufacturers_id)
WHERE m.manufacturers_id = " . (int)$_GET['manufacturers_id'] . "
AND languages_id = " . (int)$_SESSION['languages_id'] . "
LIMIT 1");
if (!$result->EOF) {
$current_categories_name = $result->fields['manufacturers_name'];
$current_categories_description = $result->fields['mfg_description'];
}
}
The above will make the mfg-description show above their products.
To enter the author bio's you'd need to add the raw HTML to the mfg_description field in the manufacturers_info table for each manufacturer.
How do you enter your data to the store now? Do you always use the built-in Admin screens? Or do you load data using other tools?
Bookmarks