Hi,
I want to add some navigation to my facebook ap. Currently setup as a FBML canvas page using the Drupal module.
When viewing my OWN profile (content profile) I see two tabs: "view" and "edit". These look GREAT and match the Facebook style perfectly.
When adding any menu item, it just shows as an ugly blue link in an unordered list.
So, that leads to two questions:
1) How do I HIDE the two default tabes (view, and edit) from the user profile?
2) How do I create my own tabs (menu items) that look like this, so I can have some navigation that is consistant with the facebook style?
Thanks!
Comments
Comment #1
Dave Cohen commentedThe sample theme, fb_fbml, renders the local menu items (Drupal tabs) with
<fb:tab>tags. Other menu items are rendered with default theming.This is theming question, not specific to facebook. You'll find advice elsewhere on drupal.org and its probably better than anything I can tell you. In fb_fbml/template.php, you'll find the code responsible for
<fb:tab>tags. You could remove some of those functions to restore drupal's default theming of tabs.Comment #2
noah977 commentedThat makes sense.
Just looked at the template.php file and have a few questions.
I see the tabs in two places
and
So,
1) What is the purpose of testing for _fb_canvas_state='tabs' ?
2) It looks like you're marking all primary links at tabs in the second function, but it doesn't appear that way in facebook canvas. So is this a bug or am I reading the code wrong?
Thanks!
-N
Comment #3
noah977 commentedDave, Any thoughts on this one? I'm still stuck here.
Thanks