Project:Drupal core
Version:4.7.x-dev
Component:node system
Category:bug report
Priority:normal
Assigned:chx
Status:closed (fixed)

Issue Summary

Creating a node with php input and editing it like below
let 'hello2' be displayed also on teasers on node listing pages.
(I had to separate minus from 'break' to let drupal.org post this)

hello
< !-- break -- >

<?php
print 'hello2';

?>

Comments

#1

Assigned to:Anonymous» chx
Status:active» reviewed & tested by the community

[20:14] chx: what's our take with PHP node teasers?
[20:14] chx: if I have a PHP node which spits out 50K of text (just tested) then the teaser will be 50K long
[20:14] chx: not nice.
[20:14] UnConeD: chx: dries wanted to change it to support break
[20:14] UnConeD: and have it be your own fault if you make parse errors

AttachmentSizeStatusTest resultOperations
break_php.patch1.09 KBIgnored: Check issue status.NoneNone

#2

one hunk too more.

AttachmentSizeStatusTest resultOperations
break_php_0.patch679 bytesIgnored: Check issue status.NoneNone

#3

Status:reviewed & tested by the community» needs work

Actually, what we /should/ do for PHP code is to use the break tag if it's there, but do no automatic splitting otherwise (because that is surely to result in problems).

#4

Version:x.y.z» 5.x-dev

Taking Steven's advice, we get... (for 4.7)

AttachmentSizeStatusTest resultOperations
break_php_1.patch893 bytesIgnored: Check issue status.NoneNone

#5

And... (for 5.x-dev)

AttachmentSizeStatusTest resultOperations
break_php_2.patch893 bytesIgnored: Check issue status.NoneNone

#6

Status:needs work» needs review

New patch for 4.7.x-dev undoes (now unneeded) code added in http://drupal.org/node/80989

AttachmentSizeStatusTest resultOperations
break_php_3.patch1.08 KBIgnored: Check issue status.NoneNone

#7

New patch for 5.x-dev undoes (now unneeded) code added in http://drupal.org/node/80989

AttachmentSizeStatusTest resultOperations
break_php_4.patch1.11 KBIgnored: Check issue status.NoneNone

#8

Version:5.x-dev» 4.7.x-dev
Status:needs review» reviewed & tested by the community

Committed to HEAD, works as advertised. Good job.

#9

Status:reviewed & tested by the community» fixed

applied

#10

Status:fixed» closed (fixed)