Closed (works as designed)
Project:
MySite
Version:
5.x-3.2
Component:
- Type plugin
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Aug 2008 at 18:05 UTC
Updated:
22 Aug 2008 at 18:23 UTC
The mysite_teaser function from what I understand is only supposed to return the teaser of the node, but in my case it returns the entire node, complete with the "submitted by" (post information) even though that is disabled and a content template has been created for that node type. These are all cck nodes.
Comments
Comment #1
agentrickardIt should return the teaser element of the node -- but does not obey your custom template files. This is a documented limitation -- see section 5.4 of README.txt:
This is because MySite tries to treat nodes and non-nodes as the same type of object.
The function in question for generating the teasers is:
If your node teasers are not cropped, then the full node is presented.
Comment #2
agentrickardYou probably want to write your own Format plugin.
See the API. You could run a node_load() on the $item id and then format the output as you see fit.
The 'submitted by' line is line 29 of teasers.theme.
See especially theme_mysite_hook_item() and mysite_type_hook_data() in the API.php file.