Ticket #2547 (new defect)

Opened 8 months ago

Last modified 4 months ago

Blog Module : cant use $Content.FirstParagraph in template

Reported by: sp00k Owned by: aoneil
Priority: medium Milestone:
Component: Modules - blog Version: 2.2.2
Severity: medium effort / impact Keywords: blog, firstparagraph
Cc: Hours:

Description

If there is a link in the first paragraph, it returns it something like:

This is my link/link

Change History

Changed 6 months ago by sminnee

  • milestone set to 2.2.3

To fix this, we shoud have separate implementations of FirstParagraph? for the Text and HTMLText field types.

  • Text::HTMLFirstParapraph - html first paragraph (look for </p>, </h#>, or two <br>s?)
  • Text::FirstParagraph? - plaintext first paragraph
  • HTMLText::FirstParagraph? - return Text::HTMLFirstParapgraph.

In this way, people can call Text::HTMLFirstParagraph if they need to treat a Text db field as an HTML field.

Changed 4 months ago by ischommer

  • milestone 2.2.3 deleted
Note: See TracTickets for help on using tickets.