Can someone advice me how could I start on redesigning my website. I really don't want to have the default theme(garland). So I started of with the new one of my own for the this website. My problem now is i need to know how I can modify the output of certain blocks.
Eg: $footer, $header and so on
I know by creating different templates for each block we can control. But that is really not helping me at the moment. In my website I want to enable a footer menu, by default drupal only lets a bulleted list. I would like to change it look like a normal footer links separated by a "|". Like wise I would like have a drop menu for all the primary links on top.
There are some modules which lets us work with the menus and stuff but they don't exactly fulfill my requirement.
It would be great if someone can help me.
--
Prasannah
Comments
Use Devel Module in drupal 6,
Use Devel Module in drupal 6, with the help of theme information shown by the devel module identify template file / theme function for that block / region, duplicate function / template file and rename it and then customize the HTML as per your requirement.
For drop Menu you can use nicemenu which is very poopular and widely used. in that also if you want, you can customise the HTML and CSS read the documentation for that carefully.
if you like to write your own theme function for the menu, you can try it, see the menu functions in the menu module use appropriate function to extract the array and build the HTML as you like through your theme function.
--
Kamalakannan S
Kiluvai Tech Solutions Private Limited br Blog
Thanks for the advice on
Thanks for the advice on Devel Module for Drupal 6. It's coming in handy.
I don't think Nice Menu will do the job for me. Because It supports only vertical menus. I want to modify the primary links. Is there a way where we can edit nice menu to be displayed horizontally expandable menu.
check under the configuration
we can change menu style option under the configuration option of the nice menu block.
All the menu get executed
All the menu get executed through the following theme callback
The above function will call the following theme function
It will return the unordered list so that only you are getting menu in bulleted list format.
so you create your own menu theme function in template.php and call the function.
Eg:
then print the menu under the footer region in page.tpl.php like following
I tried this example, I think
I tried this example, I think I'm doing wrong here it's not working for me the way it should be. Do you think the current theme that I'm using could be a problem why it's not working for me?
I created this function inside the template.php file
and used this bit of code to print it in the page.tpl.php file
right now I my function looks like this
i'm new this whole thing. may be i'm missing something please help me.
Its not working because the
Its not working because the code posted is just an example of the process, but fails to actually make the necessary changes that you require...
What you want can be done with a few lines of CSS ok, no need for extra functions:
#block-id .menu li {
display: inline;
float: left;
list-style:none;
border-right: 1px solid black;
}
#block-id .menu li.last {
border-right: 0;
}
something like that.
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.
thanks for your help. I'm now
thanks for your help. I'm now getting used the drupolly designing :)
...
I like that term - friendly sort of :)
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.