Hi!
In previous versions of Drupal I could split a node to have a "read more" section by using the <!--break--> tag. It seems that I can't do that with Drupal CVS of 19 December (or thereabouts). According to replies I received from the support list, this is probably a bug in the node system, and therefore I am filing it as such.
Regards,
Kobus
Comments
Comment #1
wulff commentedCan you give an example of the content your were testing with?
Have you changed the teaser length at admin/settings/node?
I can't reproduce with the latest CVS version. (I tested with a couple of paragraphs of lorem ipsum text.)
Comment #2
DriesK commentedI also can't reproduce this with latest HEAD.
Comment #3
varunvnair commentedMake sure you are using <!--break--> and NOT <!-- break -->.
Comment #4
Kobus commentedSomeone else on the support list had the same issue. I am downloading the latest Drupal now to see if that is still the case. If not so, it means it has been fixed. Thanks!
Kobus
Comment #5
DriesK commentedKobus, can you give us an update? Do you still experience this problem? If not, please close this issue.
Comment #6
Kobus commentedHi,
I still experience this problem. I have replaced node.module on my test site with a version that is from a later CVS update and still gets that problem. I have played around quite a lot with input formats, and I am wondering if that is not where the issue lies? Is that possible?
If not, I will replace my copy of Drupal with a complete newer version, but I have done quite some modifications to the search module that I don't want to undo, so that will be the last resort. I will provide more feedback a.s.a.p.
Regards,
Kobus
Comment #7
gregglesIn 4.6.5 I found that I had to use "full html" filter in order for this to work.
Perhaps that is why some people can find it and others can't is due to their default input filter?
Comment #8
Kobus commentedI have disabled HTML filtering in my input formats, so I doubt that is the problem in my case. I will see if Drupal 4.7 beta 3 still has this problem for me.
Kobus
Comment #9
kbahey commentedI tried with today's HEAD of Drupal CVS, and the break tag works as expected, even when using Filtered HTML as an input format.
Comment #10
Kobus commentedThanks! I had issues with this until about a week ago, but it seems fixed now!
Kobus
Comment #11
Kobus commentedThe bug is back! I have finally been able to reproduce exactly when this occurs. It is when you have
tags in the text as well. Remove any content wheretags are used, and thetags works as expected.
Comment #12
Kobus commentedChanging priority. This is indeed critical in my opinion, although it will mostly not affect end users, but adminsitrators who like to customize content.
Comment #13
dopry commentedI can't reproduce on 4.7.0-beta4. even with the php tags..
Comment #14
Bèr Kessels commentedKobus, the Code you posted, to show us the tags, is filtered. Could you re-post the tags?
Comment #15
Kobus commentedI have just reproduced it with Drupal 4.7.beta4 at www.drupal.co.za.
If you don't understand the text, I apologize, but the code above shows to me that there is no fault with the code, as the display is done as I expect it to. The moment I put that (tags and code) in the node, the
tag doesn't work. Here is the complete source of that node:
Comment #16
Steven commentedIt should only happen if you use <?php tags /with/ the PHP filter. This is by design.
from node_teaser():
Comment #17
Bèr Kessels commentedWhen php mode is active, we do not ever use the break!
Comment #18
dries commentedI don't understand why that is the case. I've wanted to do this before:
I think we can assume that people who use PHP-snippets know what they are doing.
Comment #19
Bèr Kessels commentedComment #20
Kobus commentedI also think this is handy. If you allow users to insert PHP code on your site, you obviously trust them enough to do so. If you don't, you won't give that access
If you add php code and break your site with it, it is usually not difficult to fix it again, unless you really went out to see if you can break it, but then that would be your own problem :-)
Kobus
PS: Since it is now a task, I am going to take it off "by design", as I am sure it is not going to be easily detected in this state.
Comment #21
gpk commentedThis now works: the logic of node_teaser() was changed in 4.7 (not sure which subversion) - compare http://api.drupal.org/api/function/node_teaser/4.7 with http://api.drupal.org/api/function/node_teaser/4.6.
[Update]
Was finally fixed in this issue http://drupal.org/node/49926 on 4 Dec 2006 after a partial fix in http://drupal.org/node/80989 in Sept 2006.
Comment #22
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.