While editing a timeline views view, the timeline preview in Views module looks like expected. In contrast, visiting the final page holding the timeline view, the awaited "dots" are missing and the node teasers are not aligned like shown in the preview.

Looking at the source code of the html page, I see that the CSS class assignment in the main div is:
<div class="item-list simple_timeline">

In the preview the class assignment is (hyphen instead of underscore):
<div class="item-list simple-timeline">

Is this is causing the issue? If so, is it because my admin theme differs from my default frontpage theme?

Comments

smurfxx’s picture

Issue summary: View changes
smurfxx’s picture

Issue summary: View changes
smurfxx’s picture

I changed theme to Bartik and it works, I will fix the css (but I thought it was indipendent from the theme choosen...)

alansaviolobo’s picture

I believe you saw the css class "simple_timeline" as a result of some caching.
can you confirm that it still happens on the original theme?
what is your original theme?

smurfxx’s picture

The original theme is "Multipurpose Theme", I tried to empty the cache but the view is not good again.
I'd like to give you the url of the site but it's on a local machine

jos_s’s picture

I am seeing the same problem. Preview looks good, but final page is not. When I compare the HTML from the two, I see that the preview has an unordered list (<li>'s enclosed with <ul>), which is missing from the final page. The <ul> and a <div> around it contain the class "simple_timeline" which is not present in the final page. My theme is based on "Responsive Blog".

jos_s’s picture

I found out what my problem was. I forgot that I had overridden my views-view-list.tpl.php template. That replace the <ul> with something else. Now I know how to solve it.

dqd’s picture

Title: Preview is ok, final page not! » Preview and page view differ. Page view looks broken.
Issue summary: View changes
dqd’s picture

Priority: Normal » Minor
alansaviolobo’s picture

The issue could be that your theme is adding an additional padding which causes the time line to break.
can you please upload screenshots ?

smustgrave’s picture

Status: Active » Closed (outdated)

With D7 EOL closing out old D7 issues. If still an issue on the new 2.0.x branch please re-open

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.