Tesaer bug

Asked by gbernard

Hi,

When I use preview button in create content, the teaesr show only the fields "title", "by" and "date article" anda line. Thera are not the begining of the story.

My lenght of trimmed post is set to 600.

Sorry for my poor english ;)

Thank you

Question information

Language:
English Edit question
Status:
Solved
For:
ProsePoint Edit question
Assignee:
No assignee Edit question
Solved by:
gbernard
Solved:
Last query:
Last reply:
Revision history for this message
bengtan (bengtan) said :
#1

Hi,

Is it possible you have hidden text (like html which are not visible to humans) at the beginning of your post? If you do, that would be counted in the 600 characters.

Otherwise, you can try manually inserting a teaser break to tell ProsePoint what to include in the teaser.

The visual editor has an "Insert teaser break" button (next to the insert image button) to do this.

Please give it a try and let me know how you go.

Thank you.

Revision history for this message
gbernard (b-gay) said :
#2

Hello,

Thank you for your answer. No, the body is in plain text. I've tested the teaser break too but nothing more appears in the trimmed view.

I've test with an installtion of drupal 6, ans it's works.

thanks

Revision history for this message
bengtan (bengtan) said :
#3

Does this issue only occur when you are previewing a page or story?

Or does it also occur when you view a page or story in teaser form (maybe in a taxonomy/channel listing)?

Any chance you can give me a url which shows the node in full form, and then another url to a listing of some sort which shows the node in teaser form?

Revision history for this message
gbernard (b-gay) said :
#4

It is not working when you view a page too.

You can test at http://www2.lemeridional.com

user : bengtan
pass : qwerty12

During the installation I'v two errors :

Notice: Undefined index: q in C:\Program Files\EasyPHP 2.0b1\www\lemeridional2\includes\path.inc on line 164

An error occurred. http://www2.lemeridional.com/install.php?locale=&profile=prosepoint&id=1&op=do <br /> <b>Notice</b>: Undefined index: q in <b>C:\Program Files\EasyPHP 2.0b1\www\lemeridional2\includes\path.inc</b> on line <b>164</b><br /> { "status": true, "percentage": 88, "message": "Remaining 6 of 52.\x3cbr/\x3eInstalled \x3cem\x3eComposite Layout Fields\x3c/em\x3e module." }

Revision history for this message
bengtan (bengtan) said :
#5

Hi,

I've logged into your site and changed my password to something else. (You've actually posted the user/password to Launchpad).

And I've confirmed the issue exists. Let me get back to you on it.

Revision history for this message
bengtan (bengtan) said :
#6

Hi,

It seems ProsePoint 0.09 introduced a bug in the default theme. In some cases, previewing a node will ignore the node body for the teaser preview. See below for a fix which changes it back to the previous ProsePoint 0.08 behaviour. Although that's not quite wysiwyg, at least you can see the teaser node body.

In .../profiles/prosepoint/themes/tma2/node-story-teaser.tpl.php, change lines 141-145 from:

  // If there is an extracted teaser image, do some processing
  if (isset($node->teaser_pp_img)) {
    $variables['teaser_pp_img'] = $node->content['teaser_pp_img']['#value'];
    $variables['body_content'] = $node->content['body']['#value'];
  }

to:

  $variables['body_content'] = $node->content['body']['#value'];

  // If there is an extracted teaser image, do some processing
  if (isset($node->teaser_pp_img)) {
    $variables['teaser_pp_img'] = $node->content['teaser_pp_img']['#value'];
  }

In other words, move the line starting with "$variables['body_content'] ..." to be before the "if". When you do this, don't try to type it out. Just copy and paste.

Please give it a try and let me know how you go.

If you don't feel confident editing code, there may be a new ProsePoint release with this fix in the next week or so, but I can't be certain.

Thank you for reporting this. My apologies for a simple logic bug.

Revision history for this message
gbernard (b-gay) said :
#7

Sorry but in .../profiles/prosepoint/themes/tma2/node-story-teaser.tpl.php, I've only 52 lines. So, I can't find lines 141-145 ;)

Maybe I have not understood : I' have to install prosepoint 0.08 before ?

thanks

Revision history for this message
bengtan (bengtan) said :
#8

Aiks, sorry, wrong file.

The file you want is .../profiles/prosepoint/themes/tma2/template.php.

No, you don't have to install ProsePoint 0.08.

Revision history for this message
gbernard (b-gay) said :
#9

It's done and it works fine !

thank you very much for your quick reply.

I will start the French translation of the prosepoint interface...