I don't know if this is a bug or not (I searched for help/previous issues and found none):

I copied the Bluemarine theme from /theme/bluemarine and properly edited the bluemarine.info file to replacing 'bluemarine' with 'cigars' and renaming the bluemarine.info file to cigars.info. then enabled it in Drupal. That works.

I then copied the views-view-field.tpl.php from the views/theme directory to my custom theme and renamed it views-view-field--bookBlock--field-dateline-value.tpl.php and added an around print $output; so far so good.

In the Views UI->Theme Information, I changed to the Cigars theme and the file in use (bolded) is views-view-field--bookBlock--field-dateline-value.tpl.php. But if I change the theme to Bluemarine, the tile in use remains views-view-field--bookBlock--field-dateline-value.tpl.php even though that file does NOT exist in the Bluemarine directory ( checked and re-checked before posting this).

I did try to rescan the directory while Bluemarine was selected to no avail.

If I change the them to Garland, then the file in use becomes views-view-field.tpl.php as I would expect.

Any ideas?

Tks.

CommentFileSizeAuthor
#4 bluemarine.png17.67 KBhal9000_jr
#4 cigars.png21.46 KBhal9000_jr

Comments

dawehner’s picture

But if I change the theme to Bluemarine

What are you doing here exactly?

hal9000_jr’s picture

Yeah, it was clear last night when I wrote it. LOL

I want the default Bluemarine theme to use the template views-view-field.tpl.php and I want my custom theme (which I copied from /sites/themes/bluemarine to /sites/all/themes/cigars) to use views-view-field--bookBlock--field-dateline-value.tpl.php which I copied and renamed from /sites/all/modules/views/themes/views-view-field.tpl.php

When in ViewsUI, the Bluemarine Theme Information shows views-view-field--bookBlock--field-dateline-value.tpl.php as being active when it should be views-view-field.tpl.php

I have cleared the Views cache, drupal cache, local cache, and rescanned themes but Bluemarine still uses views-view-field--bookBlock--field-dateline-value.tpl.php, which is incorrect.

TIA

dawehner’s picture

Can you make a tiny little draw, like this?

folder1
-- file1
folder2
-- file2

I'm not sure whether i understand it right.

Btw. views does not do here extra magic, it does just the theming system.

hal9000_jr’s picture

StatusFileSize
new21.46 KB
new17.67 KB

First, thank you for your time and patience.

Basically, the Views template /drupal/sites/all/themes/cigars/views-view-field--bookBlock--field-dateline-value.tpl.php is being used in two places and it should only be used in the Cigars theme.

The attached file cigars.png shows that it is used in that theme.
The attached file bluemarine shows that same file is also being used. I think that is incorrect.

Here is the layout. /drupal is the webroot

* The theme I want to change
/drupal/sites/all/themes/cigars
block.tpl.php
bluemarine.info
box.tpl.php
cigars.info
comment.tpl.php
logo.png
node.tpl.php
page.tpl.php
screenshot.png
style.css
style-rtl.css
views-view-field--bookBlock--field-dateline-value.tpl.php

* Views templates
/drupal/sites/all/modules/views/theme
theme.inc
views-exposed-form.tpl.php
views-more.tpl.php
views-ui-edit-item.tpl.php
views-ui-edit-tab.tpl.php
views-ui-edit-view.tpl.php
views-ui-list-views.tpl.php
views-view-fields.tpl.php
views-view-field.tpl.php
views-view-grid.tpl.php
views-view-list.tpl.php
views-view-row-comment.tpl.php
views-view-row-node.tpl.php
views-view-row-rss.tpl.php
views-view-rss.tpl.php
views-view-summary.tpl.php
views-view-summary-unformatted.tpl.php
views-view-table.tpl.php
views-view.tpl.php
views-view-unformatted.tpl.php

* Drupal default theme that I don't want changed.
/drupal/themes/bluemarine
block.tpl.php
bluemarine.info
box.tpl.php
comment.tpl.php
logo.png
node.tpl.php
page.tpl.php
screenshot.png
style.css
style-rtl.css

esmerel’s picture

Status: Active » Closed (fixed)

General close of issues over 6 months old without activity.