ProsePoint Express: hosted newspaper website content management software

CSS code appearing on page

5 replies [Last post]
Alpha01
User offline. Last seen 1 year 42 weeks ago. Offline
Joined: 09/09/2009
Posts:

Hello again,

I've recently made some changes to how my articles are presented, and now it displays some of the php-generated CSS code on the page.

"< class="field-item odd">" or "< class="field-item even"> before a displayed field.

eg: "< class="field-item odd"> Date: Wednesday, November 18th, 2009"

I don't know what I did to make this happen, and I can't seem to get rid of it.

Any ideas?

beng
User offline. Last seen 1 week 3 days ago. Offline
Joined: 27/02/2009
Posts:
...

Hi,

If I were to look first, I'd suggest looking at your theme changes if there are any.

But uh ... can I suggest you review the changes you have done and undo them one-by-one to isolate the culprit? The offending snippet of code causing this issue could just about be anywhere.

Also, make sure the content of your nodes don't have an unclosed html tag.

Sorry, I would like to help more, but it's difficult to say where the issue may lie without a very close examination.

Alpha01
User offline. Last seen 1 year 42 weeks ago. Offline
Joined: 09/09/2009
Posts:
Okay, I've tried to undo some

Okay, I've tried to undo some of the changes, and here's what I've found.

1) The CSS code only appears on "story" nodes.

2) I have a custom "story" field named story_image, which displays the main image associated with the story. CSS Code only appears before this image, and before the displayed published date of the story. Even if the story does not have a main image associated with it, the code will still appear where the image would be.

4) Inspecting code via firebug, I can see that it appears under the field-items class.

<div class="field field-type-filefield field-field-story-image">

<div class="field-items">            &lt; class="field-item odd"&gt;

<img class="imagefield imagefield-field_story_image" alt="" src="http://www.takuyai.net/testing/newsprj/site/sites/default/files/storyimg5.jpg?1258549637" width="380" height="380">

</div>

</div>

and

<div class="field field-workflow"><div class="field-items"><div class="field-item odd"><div class="field-label-inline-first">Workflow:&nbsp;</div>Public</div></div></div><div class="field field-type-date field-field-date">

<div class="field-items">            &lt; class="field-item odd"&gt;

<div class="field-label-inline-first">

Date:&nbsp;</div>

<span class="date-display-single">Wednesday, November 18th, 2009</span>

</div>

I really don't understand how or why this is happening. You can see it here

beng
User offline. Last seen 1 week 3 days ago. Offline
Joined: 27/02/2009
Posts:
...

Ah, okay ... there are html fragments saying

<class="field-item odd">

which are being turned into

&lt; class="field-item odd"&gt;

Presuming you haven't changed any of the standard modules in ProsePoint, I'd suggest there is something in your theme (or else a custom module with some code) which is doing a check_plain() on your CCK output when it shouldn't be.

Do you have any changes or additions in your theme which are CCK related?

Alpha01
User offline. Last seen 1 year 42 weeks ago. Offline
Joined: 09/09/2009
Posts:
My theme is just a modified
My theme is just a modified version of the TMA2 prosepoint theme. The main modifications being sidebar placements and the like. The only custom module I have installed is the views slideshow module. I've created custom fields for the "story" content type, which includes a yes/no field to determine if a story is a "featured" article, and the story image field I mentioned in previous posts. I've also got custom views to create the various dynamic menus on the site, like the latest news and the related articles menu. That's all I can think of really.
beng
User offline. Last seen 1 week 3 days ago. Offline
Joined: 27/02/2009
Posts:
The fact that this issue does

The fact that this issue does not arise with ProsePoint out of the box would suggest it is specific to your site and/or your changes. I am out of ideas for specific things to look at. The general way to diagnose these sorts of issues is to rollback your changes one by one to isolate which one is the culprit.