The views rewrite option appears to be breaking the sidebars in themes. I have tried putting a rewrite on Content: Body but this throws the content that I have in the second sidebar to the left.

I thought this might be a problem with the Zero Point theme and tried the Zen theme but I get the same result. If I turn off the rewrite the content in second sidebar returns to the right position of the page
I found this issue posted in the Zen theme issues list http://drupal.org/node/883750

Comments

Road Kill’s picture

Status: Postponed (maintainer needs more info) » Active

It appears that my problem is has something to do with the default body that ships with Drupal. If I create a custom body in cck and create a rewrite in it my second sidebar stays in the right side position. So I am not really sure where this issue belongs but if it is the default body that ships with drupal then it must be a core issue.

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)

This kind of suggests that your rewrite is breaking the HTML and perhaps not closing a div. I would look into unbalanced divs.

I don't really see how Views itself could cause this, it's likely to be configuration.

Road Kill’s picture

Status: Active » Postponed (maintainer needs more info)

Thanks for quick response and time and thank you for such an awesome module a real gem.
I agree I don’t think this a views problem and I have resolved the problem by removing the default body in article and creating my own body.

I don’t think my rewrites are a problem as I have opened and closed them correctly

Road Kill’s picture

Title: Views rewrite breaks sidebar in themes. » Rewrite Example
StatusFileSize
new39 bytes
Road Kill’s picture

StatusFileSize
new34.28 KB

Hi Merlinofchaos I have created a custom body with a rewrite on the body in views but it is still throwing
content in the second sidebar to the left of the page.

[title] == Content: Title

[field_article_body] == Content: Article Body

[view_node] == Read Full Article

The title and view node fields appear not to be affected if I add a rewrite on them. It seems that this problem only exists when you put a rewrite on a body in views.

Road Kill’s picture

StatusFileSize
new292.28 KB
new302.8 KB

Hi Merlinofchaos I have uploaded some screen prints so that you can see what the rewrite is doing , and note how the content in blocks in the second sidebar gets thrown to the left.

I am using Drupal 7.12 and using the Zero Point theme 7.1.1.

Road Kill’s picture

I have tried to do a rewrite of the body in Acquia Marina Zen and Zero Point and putting a rewrite on the body always breaks the second sidebar positioning.

I have another site I am busy with that is doing this. I really think there is a problem with views handling the rewrite on the body.

Road Kill’s picture

Okay absolutely stumped. I have built 33 views for this site and I have just tried a rewrite on a body in another view surprise, surprise the content in the second sidebar stays to the right. I really have no idea what could be causing this problem but I guess it could be anything. I will keep testing and post if I find the culprit.

Road Kill’s picture

Hi Merlinofchaos solved the problem. I had the body trimmed and when a trimmed body has a rewrite on it selecting the Field can contain HTML solves the problem.
You can close the issue now and thank you again to you and all the other maintainers of the views module awesome module :)

esmerel’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Thanks for documenting how you figured it out!

Road Kill’s picture

It’s a pleasure I find that to many people use the issue cues and are only too happy to say they solved the problem but fail to document for others how they solved the problem.

Users of issue cues need to understand that returning to an issue they have solved and posting their solution helps the maintainers and the Drupal community as a whole. This can only make Drupal more popular successful and secure its future as the leader.

Sadly there are too many vampires in the help cues these days taking and never giving back.
Thanks again to all the maintainer of this module for their time and effort this is just one of the most awesome modules eva.