I have put a region--content.tpl.php and a process-region.inc file in my theme, but cannot seem to move the breadcrumb above the title, even though it clearly is in the tpl file.

Comments

S@ilor’s picture

Hi Kevin,

Have you tried to enable the 'crumb as a block through the omega tools? This way you can place it anywhere, you like. I have just worked with that, and placed it in my content region above the page title.

I hope this is what you're looking for.

- Christian

kevinquillen’s picture

Omega tools, the module? Have not tried it.

I got around this by doing this in process-region.inc, under 'content' case:

$breadcrumb['breadcrumb'] = drupal_get_breadcrumb();
$vars['breadcrumb'] = theme_breadcrumb($breadcrumb);

Something was overwriting $breadcrumb to be NULL, but I am not sure what. This worked for me but there must be a better solution?

S@ilor’s picture

Hi Kevin,

I would give it a go. Basically, what you do, is installing it, and in Configuration enables as many of the options as you like. Then in Appearance you disable the similar seetings.

The module takes each of the enabled settings and creates a block, which you can then afterwards add to any section/region you like, and style in your css.

I think it will solve you problem easier than faffing about in the PHP.

- C

jami3z’s picture

@drunkensailor Where abouts is this configuration "crumb as a block through the omega tools" to enable each of the settings as blocks? Im using Omega 7x-3.0 and Omega Tools 7.x-3.0-rc3 and cannot see any such feature, only export/revert theme settings, drush integration and a theme wizard as described on the Omega Tools project page. Is it only in the newer beta versions?

Argus’s picture

I think he means the Delta module, more precisely the Delta Blocks submodule. http://drupal.org/project/delta

jami3z’s picture

@Argus, thanks! I've been using the Delta module but hadn't gotten around to enabling that delta blocks module. I think the talk of omega tools through me off the scent.

For anyone else that may stumble across this post, enable the Delta Blocks module and you will get the following blocks available to you: Action links, Breadcrumbs, Feed Icons, Logo, Messages, Page Title, Site Name, Site Slogan and Tabs (maybe some others but that was from a quick glance)

Argus’s picture

Version: 7.x-3.0-beta3 » 7.x-3.0
Component: Code » Miscellaneous
Status: Active » Fixed

Your welcome. One more issue down! ;-)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Z2222’s picture

RE #6: using the Delta Module to put breadcrumbs in a block puts the breadcrumbs below the node title...

S@ilor’s picture

Hi Cohen,

This thread is closed, but well; check your blocks weight settings. If you haven't already, enable node/page title as a block too, and you have control of where to place it.

Z2222’s picture

Hi Drunkensailor,
Thanks... I think that solution will have negative SEO effects for a couple of reasons:

  1. It needlessly hides text on the page with CSS (if you disable the actual title with Omega's settings).
  2. It duplicates the title in the eyes of search engines (one hidden by CSS, plus the block).

Also, it's a bit of a crude solution to what should be a simple fix. Outputting more blocks makes unneeded CSS and divs. Almost all sites are going to want the breadcrumbs out of the sidebar, so why not put it above the content zone by default? (feature suggestion)

For now, I disabled the breadcrumbs, because it's getting too complicated for a minor feature...

blierp’s picture

a workaround for this is to override both region--content.tpl and zone--content.tpl and remove the title and breadcrumb from them. Then use the Delta module to place the blocks where you want them. This way you don't get the hidden divs.

Bit odd this such a workaround is needed but it works...

Z2222’s picture

I guess that could work, but it's a bit unwieldy. I wish there were a simpler way... :)

liquidcms’s picture

lol.. yup. thats much easier than in D6 when we just moved a var inside page.tpl... but, its the D7 way...

Anonymous’s picture

Title: Cannot move breadcrumb » jQuery?

What about using jquery?

$('.block-breadcrumb').prependTo('.region-content-inner');

is this wrong?
I know that people who has javascript disable won't be able to see the breadcrumb above the title but under the title,
but would this be against SEO? comments?

kevinquillen’s picture

Because you should be able to reposition elements of a page with tpl/template.php etc. I don't want to use JS for that.