This forum is for assistance with theme development.

Online Store

I am looking to create a product view that will look like these websites.

https://www.evernote.com/pub/haqinai/simonthetannerwebdesign

How do I accomplish this on my site?

This is the site that I am working on:
http://simonthetanner.com/home

This is a catalog item:
http://simonthetanner.com/home/catalog/7

Cheers,

Cant add content to new content type

My problem: I have added a new content type "Featured", but when I click "add content" the only contenttypes that are displayed are "Article", "Page" and my earlier "Products". The new "Featured" contenttype isn’t anywhere to be found.

As I am developing a theme from scratch (my first), I have made a lot of changes recently, so I really can’t say what changes made the problem appear.

I have tried creating different new contenttypes, but the problem persists. I have also made sure that my user has all the appropriate permissions.

I need a list of system menus

Hi, I have a question. In the theme function, the first argument is the hook function's name of a menu, normally links__system_main_menu. Can anyone give me a list of hook names of other menus please? Thanks. I need to override the sidebar-first menu (on the left) but don't know which function to override.

How can I get link from view?

Hi.
I have view of 6 last news. Each of these 6 items has its title and short announce. I have themed these view as single div blocks and everything is ok, but I need to wrap each div with with link on each news, and I have no idea how to get link to material from each view item. To style my view I used Row style output of my view and I am working with $field variable. Thanks to all for interest to my topic.

Override the sidebar_first menu in drupal fusion?

Ok basically my first task, ie developing the top menu for the new theme, is almost done, except the issue that I mentioned in the thread https://drupal.org/node/2087227. I hope you guys don't mind to help me to solve this.

Now, in order to speed up my performance, I've moving on to the second task of the project, ie. developing the left menu. In fusion, the left menu is called Sidebar first (sidebar_first) menu. May I have 2 questions?

How can I get the 'href' and 'title' attributes from menu_link_get_preferred and menu_build_tree for a child menu's link

ok now I've managed to program my main menu to display horizontally and as a dropdown list. However I'm facing another issue here.

This is the code I in my template.php. Originally I got from this website http://stackoverflow.com/questions/2716787/how-to-get-all-the-menu-items.... It works fine. It gets exactly the number of child menu items.

function mca_get_menu_item_childrens($path)
{
	$parent = menu_link_get_preferred($path);
	$parameters = array(	
		'active_trail' => array($parent['plid']),
		'only_active_trail' => FALSE,
		'min_depth' => $parent['depth']+1,
		'max_depth' => $parent['depth']+1,
		'conditions' => array('plid' => $parent['mlid']),
	  );
	//echo $parent['href']."\t";
	$children = menu_build_tree($parent['menu_name'], $parameters);
	return $children;
}

However, there is a problem. I can't get the 'href' and 'title' attributes of each child menu as I expect. Should I make any change in the code? If so, how? If not, then how can I get the 'href' and 'title' attributes of each child menu? This is how I call this mca_get_menu_item_childrens function from another function mca_links__system_main_menu of the same file.

<?php

......

$children = mca_get_menu_item_childrens($link['href']);
if(count($children) >= 1)
{

Pages

Subscribe with RSS Subscribe to RSS - Theme development