Create custom article display view – anybody who has done this before ?

Posted in: Newspaper
Post count: 101

For the lp/cd reviews on our site we are looking for a category page which displays the thumbnails as squares at a fixed size of 200px X 200px (the artwork for either a cd or lp is always a square shape).

We would like to use the ARTICLE DISPLAY VIEW M1 as a basis, and add this option to the list.
We noticed that this is possible given the api modules instruction, though we were hoping someone could help us out a bit.

We have already added this bit of code to the includes/td-config.php, which hopefully is sufficient ?
thank in advance.

td_api_module::add('td_module_20',
array(
'file' => td_global::$get_template_directory . '/includes/modules/td_module_20.php',
'text' => 'Module 20',
'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_20.png',
'used_on_blocks' => array('td_block_25'),
'excerpt_title' => 30,
'excerpt_content' => 50,
'enabled_on_more_articles_box' => false,
'enabled_on_loops' => true,
'uses_columns' => false, // if the module uses columns on the page template + loop
'category_label' => true,
'class' => 'td_module_wrap td-animation-stack',
'group' => '' // '' - main theme, 'mob' - mobile theme, 'woo' - woo theme
)
);

Post count: 20688

You could add a new module or block, or modify an existing one to display a different thumbnail. Add modules/blocks like this
https://forum.tagdiv.com/api-modules-introduction/
Add thumbnails sizes like this
https://forum.tagdiv.com/api-thumbnail-introduction/
Use the custom size on existing modules or new modules you add. Be sure to regenerate the thumbnails after making any changes
https://forum.tagdiv.com/thumbnails-fix-strange-looking-images-on-blocks/

Post count: 101

perfect thank you very much. will get on this asap 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.