I have been at this site for most the daylight hours, literally,trying to find a solution for what appeared to me as a simple idea.
After browsing several theme override functions and countless support pages, I am still getting nowhere.
My idea was to take a simple block created in the menu area and customize the links.
The database shows no id for menu blocks so I have no idea how to manipulate the $block->content.
It went like this:
I created a menu with Add Menu and put 2 simple list items in that menu.
Enabled the new menu block on front page which shows the external links fine.
Now, I want to customize how they are presented, but ONLY for that specific menu block.
I've tried many different theme_menu() variations but they affect all menu links on the page in every menu which is not wanted.
Example:
My Custom Menu (as block)
- item1
- item2
I need to alter or theme them to return as:
My Custom Menu (as block)
- foo item1 bar
- foo item2 bar
The general idea is to add thumbnail previews of the links in that specific menu only using 3rd party service shrinktheweb or websnappr
But only for the menu links in that specific block alone.
Any ideas?
Comments
By menu
Not sure if you can do it on a block by block basis, you can do it on a menu basis.
in Template.php something like:
Thank you much
Thank you, that didnt get it entirely but it gave me direction to what I was seeking.
After playing around with the code, I was able to do it.
First, had to change the $link['menu_name']=='primary-links' to $link['menu_name']=='menu-primary-links'
or in my case $link['menu_name']=='menu-custom-menu'
The, it was as simple as returning the proper data with $foo.$link.$bar
Example: <a href="#">LINK</a> -to- <foo><a href="#">LINK></a><bar>
After adding as a template function, links for the custom-menu become foo-$link-bar
which will now allow for custom html tags to be placed on the beginning and end of each link.
Thank you again very much for allowing my stressful day to end in peace.