Add a page into a group ?

Eric F. Posted in Component Development 10 years ago

Hi,

Is there a way to add a page in a group ?
I want to add the link just after group name and members (or a group subpage in the menu) and open it just below.
The page will be just to view an external site https://framacalc.org/ to share it with this group.

I've modify the games component yet to view this page but all members can view this page.

Thanks.

Eric

Replies
French Eric F. Replied 10 years ago

That's work but in fact my wish was to put a link to open it in an iframe into the div ossn-contents like the games component do.

So I've modified the /components/games/pages/games.php with the link to the page.
I've add:

ossn_register_menu_link('members', 'test', 'games', 'groupheader');

to the /components/games/ossn_com.php but it don't work as it give url https://domain.tld/group/78/games

I think it's much work to get it with this url may be due to group authorization because i've try to modify line 22 of ossn_com.php of games

'url' => ossn_site_url('games'),

to

'url' => ossn_site_url('group/78/games'),

but it doesn't work

If to much difficult is there a way to get a link to url https://domain.tld/games ?

Thanks.

Eric

Indonesian Arsalan Shah Replied 10 years ago

To add link, use following code in your component ossn_com.php file:

ossn_register_menu_link('custom_link', 'Text', " https://framacalc.org/ ", 'groupheader');