Hello,

I am having a problem with Views 2 and using the Full HTML Filter on my website.

I have created a view called news that displays only Story Type nodes. The Views 2 UI is excellent and straight forward, thank you.

The issue is that if I create a story and use the Full HTML filter it breaks my theme, this is true for every theme I've tested.

Specifically it forces all of the blocks that appear in the right sidebar to appear beneath the main content instead of along side of it. If I use the Filtered HTML filter everything looks and works fine.

What I've done to test this issue so for:
1.) Removed all the html tags from my posts (which were a simple div tag around this node type along with some paragraph tags for custom content themes), and tried saving it as Full HTML, it still breaks.

2.) Page node types and other node types work fine.

3.) Once I have clicked through the view to the actual node, everything works fine.

I'm a modest designer and developer and this issue has me stumped. I'm very familiar with Drupal and haven't come across this before. I'm very close to launching the site and was in the process creating the content before applying my theme.

I would greatly appreciate some help and guidance.

Comments

gbrussel’s picture

Is it a core theme? A custom theme? One you've downloaded from the Themes section without modifying? Have you tried other themes to see if it is a theme issue or a content issue?

BKWill’s picture

I haven't started on the theme yet, I was just working on the markup. The problem exists on other core themes and contributed themes. Thank you for responding.

BKWill’s picture

This problem does not occur with any of the core themes other than Garland and Minnelli. For those two core themes and any of the other contributed themes the issue remains.

I'm not sure but, but using Fire Bug to take a closer look it has something to do with the fact that the layout for themes is floating the sidebar to the left, and instead of fitting in where it's suppose to, the entire region is getting forced under the main content.

I haven't modified any of the themes in any way. Again this issue happens when ever I use the Full HTML filter with story type content and custom view using Views 2.

To Test this further I used the standard frontpage view that comes with the Views 2 package and not the one I created and the issues still exists. You can view a link to my site here:

http://southmountainassociates.com

If someone can help me understand this I would really appreciate it.

Thanks,

Will

BKWill’s picture

If someone could help me understand this I'll buy you dinner courtesy of PayPal. I really want to move forward with this. I just performed a clean install of Drupal and the issue still exists. Something is conflicting with the Full HTML filter / Views 2 and the themes.

Thanks,

Will

gbrussel’s picture

I can't seem to replicate the issue you're having. I did a clean install of Drupal 6.6 with Views 2 and created a story content node (Full HTML input format). I created a view to display all published node titles/teasers with a type of "story". Using the garland theme with a block on each sidebar, I see both blocks where they should be and there doesn't seem to be any improperly aligned elements.

Can you export the code for generating the view and post it here so we can analyze it?

aitala’s picture

Hi,

Your node blocks.. ( start div.node , etc) have 6 open div tags and 5 close div tags... You're also missing the close Para
tag.

Eric

__________

Eric Aitala - f1m@f1m.com
The Formula 1 Modeling Website
www.f1m.com

__________
Eric Aitala - ema13@psu.edu
Penn State

224b8605113373e086cb27708ff301ba18ce394db1996e7e22928e4555e0d20b1b6cecc7f67c9bd9e536cb915779c485

BKWill’s picture

First off, I want to thank the entire Drupal Community for their help in identifying the issue I ran into and working with me to find a solution.

1.) It was identified that I had open

tags. So what was causing it?

2.) The situation: I have nodes set at 600 Characters for the preview. In the node I had a single

tag that wrapped all my content for the node I was creating, which was two paragraphs each with

tags. This purpose of the

was to add a custom style layout to the node. The node was posted using the Full HTML filter with none of the of the other filters turned on.

3.) It seems that the Drupal teaser function was splitting the

tag breaking the layout by grabbing only the opening tag and not the closing tag when it generated the teaser.

This is what caused the node lists created by Views or the default front page to break. However, at the node level everything was fine.

4.) By turning on the Correct HTML filter under the Full HTML input corrected the problem. The other solution was to change my markup so that the teaser content was wrapped neatly in it's own

tag and the remaining content in a separate
tag.

I wanted the use of a

to style my nodes with a custom layout so for anyone who is looking to do something similar you need to be aware of this. I've posted node's wrapped in
tags before and never came across this when teasers were generated. I have to assume that it's my issue and not something with Drupal.

The site now validates and changing my markup is an acceptable solution for me.

Again, thanks to everyone who contacted me to help I sincerely appreciate it.

Will

aitala’s picture

[JOKE] Send cash! [/JOKE]

No problem.... glad I could help.

Dr E
__________

Eric Aitala - f1m@f1m.com
The Formula 1 Modeling Website
www.f1m.com

__________
Eric Aitala - ema13@psu.edu
Penn State

224b8605113373e086cb27708ff301ba18ce394db1996e7e22928e4555e0d20b1b6cecc7f67c9bd9e536cb915779c485