Re: Creating an add-on "product type book" for ZC 1.5
Hi
@redransom very nice site , simple and clean !
Well , another question to master Philou :)
I was trying to get the author image (in product_info) , to link to the authors filter, because it's something that I think it's one of the first things people's will try to click.... I guess...
Anyway , the variable $author['searchlink'] gives the name with the link, I was wondering if there is a way that I can use this.... some php array magic, because the only way I found was to add to main_template_vars_product_type file another variable :
PHP Code:
$current_author['author_image_url'] = (!empty($authors->fields['bookx_author_id']) && !empty($authors->fields['author_name']) ? zen_href_link(FILENAME_DEFAULT, '&typefilter=bookx&bookx_author_id=' . $authors->fields['bookx_author_id']) . '' : '');
But I don't want to get much apart from the original files, for future updates, etc.....
Thanks !
“Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison
Bookmarks