This forum is for assistance with theme development.

Custom Menus

Hi,

I'm having real problems trying to create a new menu for a new section on my website. I've just created a new section called "fantasy Football" and this needs to appear on the site with its own menu option - home, league table, registration, rules. this menu is different to the homepage menu. Please see the site here: www.blusource.co.uk new section called www.blusource.co.uk/fantasy-football

can people help direct me how I add a new menu?

Will code in field--field-myfield.tpl.php run if content is null

I have a number of field--field-whatever.tpl.php files that are all working fine when displaying a custom content type node. I have one that is attempting to display some content that I generate dynamically with the code in the tpl.php file. The content in MYFIELD in the node is NULL by design ie. nothing stored in the database at all. The code in field--field-MYFIELD.tpl.php is not running and I am thinking it is because there is no data and Drupal is assuming that nothing should be rendered.

Can anyone confirm this? I believe it is a limitation if that is so.

How to create a custom login form for landing page

Hi community,

I would like to know how to make a custom login form for my landing page to get into my drupal website. I have posted an image below to show you what the login form looks like.

http://s27.postimg.org/ux9lky1lv/Screen_Shot_2014_05_01_at_09_27_24.png

If anyone could steer me in the right direction on how to make a php file for this to connect to the database, ill be more than happy!

Thank you!

how to understand the args when use views_embed_view

I see the code like below:

Render <strong>views_embed_view</strong> with arguments values:
$user_id = 1;
$term_id =1;
print views_embed_view('views_name', 'display_id', $user_id, $term_id);

---
in views\includes\view.inc:

function set_arguments($args) {
    $this->args = $args;
  }

question is :
how the function set_arguments realize which arg is userid ,which is termid? and maybe nodeid?

thanks!

How to render content

EDIT: Upon further investigation it seems this has something to do with my .css. Because by disabling it, I managed to get content to render. However, this is extremely strange as there are no issues with my static html version of the site. Is there some weird array render interaction with stylesheets that I'm unaware of?

Okay, so I've read the documentation, went through tutorials, and yet I'm still sitting here looking at a my basic html/css document with no content.

In my page.tpl.php I start straight from my tag and one of the elements is:

How to prevent unused javascript/css from calling in home page?

Hello,

I use many of modules using javascript/css files, and many of these files called by first page (home), and I never use these modules in my home page .. so how can I prevent these files called in the home page???

Pages

Subscribe with RSS Subscribe to RSS - Theme development