This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hi, I would like to make a page with some news (for that, with basic configuration, no problem) and I would like to make a scrolling summary of the news in a div (css makes scrolling). So, how can I get the news page content from any page to put a summary in my div (to make my summary, I just use substring function) ?
Thanks
Hi,
To do my stuff, in create a page (news.htm) and I put in my div a "simple" {% content "news.htm" %}
, so OK. But, now, I would like just the beginning, like using {{ str_limit(<content>|raw , 100) }}
.
So, is it a way to have my content file in a variable and put it in str_limit function ?
Thanks
Last updated
1-4 of 4