If I have a page with the new grid layout control on it and I want to obtain a preview of the content (teaser -i.e the first few words) ...how would you recommend going about this in the most efficient way?
A bit more complex I am afraid ;) I am looking to obtain a text snippet of the pages content. A bit like the old ucomponents getfirstwords extension method, Imagine a blog index page with a list of blog posts, you will want the first say 20 or 30 words of the post on that page...
Umbraco 7 Grid Layout - Preview Content?
If I have a page with the new grid layout control on it and I want to obtain a preview of the content (teaser -i.e the first few words) ...how would you recommend going about this in the most efficient way?
Hi Dave
Are you thinking about a preview of what the page looks like? Then you can use the "Preview" button to the left of the "Save and publish" button.
Or is it another kind of preview you have in mind where you can see a preview from the backoffice?
/Jan
A bit more complex I am afraid ;) I am looking to obtain a text snippet of the pages content. A bit like the old ucomponents getfirstwords extension method, Imagine a blog index page with a list of blog posts, you will want the first say 20 or 30 words of the post on that page...
Hi Dave
Aaah, ok I thought you meant in the backoffice.
Are you using Razor or XSLT to render you content?
/Jan
is working on a reply...