Index > Feature request > insert tag {{insert_teaser::ID}}
Hi Leo
Do the teasers have ID's, if so is it possible to have an insert tag to show them ie {{insert_teaser::ID}} or can it reference the teaser if given the article ID so something like {{insert_article_teaser::ID}} and {{insert_news_teaser::ID}} etc
thanks
Mark
Do the teasers have ID's, if so is it possible to have an insert tag to show them ie {{insert_teaser::ID}} or can it reference the teaser if given the article ID so something like {{insert_article_teaser::ID}} and {{insert_news_teaser::ID}} etc
thanks
Mark
2008-06-02 20:11
Hi Mark
Basically, in order to accomplish this, one would need to specify the teaser field to be pulled in the insert tag instead of the text field. The ID is just the same for a teaser of a news article and the text of a news article. That is not the case for regular articles as the text field resides in certain content elements not in articles, which are basically parent containers for collections of content elements, so be aware that would not work in the same manner (in terms of coding).
Hope this helps!
Fred
Basically, in order to accomplish this, one would need to specify the teaser field to be pulled in the insert tag instead of the text field. The ID is just the same for a teaser of a news article and the text of a news article. That is not the case for regular articles as the text field resides in certain content elements not in articles, which are basically parent containers for collections of content elements, so be aware that would not work in the same manner (in terms of coding).
Hope this helps!
Fred
Come to the light... Typolight.
2008-06-02 21:32
Hi Fred, thank you for the explanation, it helps me with my growing understanding of TL and I understand what you are saying
. The question then is it possible to implement in someway, ie is there a way to pull the information held in the teaser fields and place it somewhere else?
thanks
Mark
thanks
Mark
2008-06-02 21:45
Hi Mark,
there is a content element called "article teaser", which does exactly what (I believe) you want to do.
Regards
Leo
there is a content element called "article teaser", which does exactly what (I believe) you want to do.
Regards
Leo
2008-06-03 10:27
Hi Leo
The element "Article teaser" does not quite do all that I meant. I'll try to be clear.
Is it possible to pull 'teasers' not only from articles as you describe above but also from News items so that these can be placed in other places say for example a Newsletter?
I can place an article teaser in a newsletter by creating an unpublished article that contained the the relevant article teaser in a "article teaser" content element and then get this elements ID and use an insert tag in the newsletter. (by the way I haven't tried it but it should work)
What I can't figure out is how to do a similar thing with News teasers.
This is in response by the way to this post http://www.typolight.org/forum/topic/6053.html
cheers
Mark
The element "Article teaser" does not quite do all that I meant. I'll try to be clear.
Is it possible to pull 'teasers' not only from articles as you describe above but also from News items so that these can be placed in other places say for example a Newsletter?
I can place an article teaser in a newsletter by creating an unpublished article that contained the the relevant article teaser in a "article teaser" content element and then get this elements ID and use an insert tag in the newsletter. (by the way I haven't tried it but it should work)
What I can't figure out is how to do a similar thing with News teasers.
This is in response by the way to this post http://www.typolight.org/forum/topic/6053.html
cheers
Mark
2008-06-03 17:07
Hi Mark,
there is no such insert tag yet, but I can add it if you want. At the moment, news items, events and articles have teasers, so this would require three new insert tags, wouldn't it?
Regards
Leo
there is no such insert tag yet, but I can add it if you want. At the moment, news items, events and articles have teasers, so this would require three new insert tags, wouldn't it?
Regards
Leo
2008-06-03 19:02
Hi Leo, it would be useful if it is not too much work - adds more flexibility.
Thanks
Mark
Thanks
Mark
2008-06-03 19:25
Hi Mark,
the insert tags will be included in the next release (2.5.9).
Regards
Leo
the insert tags will be included in the next release (2.5.9).
Code:
{{news_teaser::12}} {{article_teaser::12}} {{event_teaser::12}}
Regards
Leo
2008-06-04 20:03
Mark, supposing that you didn't necessarily want to reference a specific teaser, does it work to insert a newslist module with the insert module insert tag?
2008-06-05 08:17
Is there a way to insert RSS feeds into the newsletter module.
Amy
Amy
2008-06-06 15:36
