Using a Different Template for Similar Articles

Posted in: Newspaper
Post count: 263

Is there a way to set the ‘Similar articles’ at the bottom of a post to a different structure, a different block?

Post count: 555

Yes there is a way but it need some editing in the “module_modifier”

To find this you need to go in theme,includes,modules,module_modifier

After look for the code i give you way to the bottom and change both 6 to what you need…

this is the code that need to be edited

$buffy .= $td_template_layout->layout_open_element();
$td_module_6 = new td_module_6($post);
$buffy .= $td_module_6->render();
$buffy .= $td_template_layout->layout_close_element();

the 6 you have to change to which module you want..like say you change it to 3 then you will get the small images..

Post count: 263

Great, that works! Now if im trying to use Module 9, how do I get it so its just set in one column. When i set it to Module 9, it will set it correctly but have 2 columns so its all messaged up.

Post count: 6600

Hi,

I will also have to set the layout to 1 column, change this: http://screencast.com/t/kX0KzhgQt4t
Should work like this: http://screencast.com/t/QNxXIX7O69lu

Thanks

Post count: 263

Works! Thanks!

Post count: 263

Hi, what is the code to randomize these below post articles?

Post count: 6600

Hi,

Edit the td_module_blog.php file and replace all line: http://screencast.com/t/aEb09NFpyxb with this 'orderby' => 'rand', line, like this: http://screencast.com/t/6GI9pNv0kjRS

Thanks

Post count: 263

Ok great that worked. How about orderby random from only THAT specific category?

Post count: 6600

Hi,

Try just adding the orderby without removing the category attribute: http://screencast.com/t/TgUxWzv6g

Thanks

Post count: 263

Works, thanks!

Viewing 10 posts - 1 through 10 (of 10 total)
You must be logged in to reply to this topic.