Author image
Senior Developer

A nice way to view node teasers

Want to check what your nodes look like as teasers really easily? Fire up the views module and import the attached view. It adds a 'Teaser' tab to nodes alongside the View/Edit/etc. tabs, so you can select it and the node is displayed as a teaser (or you can go to node/<nid>/teaser manually).

Simple but effective :-)

Comments

Great idea! A really useful tool, with such a simple implementation, too. However, it would be greatly improved with access control.

At present, the teaser tab is displayed for all visitors. What's the point of that? A "read more" link makes sense for a teaser, but a "read less" link doesn't have much use with a full node.

Want to check what your nodes look like as teasers really easily?

It sounds like this is being pitched as a tool for content authors, editors, site administrators, etc. So it needs access control.

So, after importing this view, I suggest adding role-based access control (Basic Settings >> Access >> Role). Choose which roles need to see the tab.

Of course, roles differ from site to site, so it's not really feasible to include that in the exported view.

Comments on this article are now closed, if you want to give us feeback you can use our contact form instead.