This forum is for assistance with theme development.

php Page specific visibility settings

I'm not really sure what arg(0) and arg(1) are displaying on a consistent basis, so I'm trying to base my visibilty settings on the breadcrumb string. Are there any existing examples of this? Or maybe some alternative method?

Here is what I've tried but it's not working:

if (preg_match("/^Project Roadmap/",$breadcrumb))
   return TRUE;

Thanks,
-Eric

Creating menus with correct urls and breadcrumbs

I'm building a site with hundreds of subpages including numerous layers of nested content.

If I create a menu under admin->menus the breadcrumbs do not appear correctly.

When I create a vocabulary, I am not able to give my pages custom urls (bad seo).

When I try to install categories, it destroys all of my existing vocabularies.

Show block in more than one region

Under that blocks administration page, as soon as you add a block to one region, it doesn't allow you to add that block to other regions of your template.

Is there a workaround for this? I'd like to show a block in one region based on one page but in another region on another page.

Programmers vs Designers

Hi There,

I've just come to Drupal, and I've had a look around and can't find anything much to answer my query.

We've been using Joomla at work, at it feels like bloatware and indignified compared to Drupal so a major thank you to the developers for such a wonderful product.

Im now trying to push Drupal at work and get this in place instead, as I believe it is technically superior in everyway.

But I need to replicate our sites home page. And unfortunately, we get into the situation where designers don't design anything for the benefit of the programmer, and so while Drupals menuing system is great for mindless repetition of infinite levels, it doesn't work when you're restricted by graphics designers.

So for example, our menus can only be upto two items deep, but also, we find we have to produce a structure like:

<ul>
  <li><a href="#" class="top">Item 1</a></li>
  <li><a href="#">item 2</a></li>
  <li><a href="#" class="active">item 3</a>
    <ul>
      <li><a href="#">submenu 1</a></li>
      <li><a href="#">submenu 2</a></li>
    </ul>
  </li>
</ul>

Hrm - Ok, probably not the best example in the world, but where Drupal only appears to cater for on or off, and not first item in the list, or last item in the list etc, it makes it rather difficult.

phptemplate_node_form not called for particular cck type

I've got an annoying glitch where one particular cck type refuses to let me theme it (of course it's the most important one). I followed the instructions in the comments in the HOWTO: Theme a CCK Node Form (http://drupal.org/node/101092#comment-179608 ) and when I go to any other CCK type it works fine, but the first CCK type I created does not seem to even call phptemplate_node_form (verified by placing die() in strategic spots).

Any ideas why?

Here's the definition, from the table, "technology" works "project" does not:

How to insert a header image in garland ?

I'm trying to insert an image in the header of the garland theme, I'm having a problem figuring out what #header-region I need to edit in css.

Pages

Subscribe with RSS Subscribe to RSS - Theme development