I have installed the Og module for creation of groups. Og has its default group home page(?q=og) , which shows all the groups. I want to add a link "Create a Group" on this page. How can i do it?

Comments

ludo1960’s picture

...add a link to the whatever you called the main group node. eg if you called your main group node "groupnode" just add an href to http://yoursite.com/node/add/groupnode

meenakshi-2’s picture

Thanks ludo1960 .

I am new to drupal. can you pls explain me which file of Og i need to edit to add the href? There are many files and views in og module. I tried adding href in og.og.view and og.module file. But of no use.

ludo1960’s picture

If you read the readme file that comes with OG there are 2 files you need to copy to your themes directory node-og-group-tpl.php and something else. Edit the node-og-group file and you should be good to go.

ludo1960’s picture

..did you get it working?

meenakshi-2’s picture

I added the href in node-og-group-tpl.php. But still i am not able to see the link on Group home page :(

ludo1960’s picture

..copy the file to your theme directory? Put some test text in the node-og-group-tpl.php to make sure everything is properly configured, it should work!