By Joao Mimoso on Wednesday, 09 September 2015
Posted in General Issues
Likes 0
Views 446
Votes 0
Hi there,

i've created a widget that shows severals links. Each link must route to a different view/theme

What is the correct way to use FRoute::apps ?

I'm using this to create an url to each link

FRoute::apps(array(  'layout' => 'canvas' , 'id' => $app->alias ,  'uid' => $user->getAlias() , 'type' => SOCIAL_TYPE_USER ))


but this is routing to the Theme/Canvas/Default

how to route for example to Theme/Canvas/OtherPage.php ??

Plz help me in here...(and dont ask me to look to the tasks APP because i've allready done that and i dont saw any good example of what i need)

Thanks in advance
Hey Joao,

I am really sorry that delay of this reply,

Perhaps you can take a look of this exiting app how it work.

STEP 1 : Create a new group > click on `Announcements` app filter > check my screenshot : http://screencast.com/t/nN0WmlxnPkl2
STEP 2 : This `Announcements` app filter page code file is under this JoomlaFolder\media\com_easysocial\apps\group\news\themes\default\canvas\default.php

// Create button app url
// 'form' => form.php
<a href="<?php echo FRoute::apps( array( 'layout' => 'canvas' , 'customView' => 'form' , 'uid' => $group->getAlias() , 'type' => SOCIAL_TYPE_GROUP , 'id' => $app->getAlias() ) );?>" class="btn btn-es-primary btn-sm pull-right">



STEP 3 : When you click on the `Create` button, it will go to this form page
JoomlaFolder\media\com_easysocial\apps\group\news\themes\default\canvas\form.php

Hope this will help.
·
Wednesday, 09 September 2015 10:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Perfect!! I understood now how it works.

Thanks
·
Thursday, 10 September 2015 08:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Joao,

You are most welcome.
·
Thursday, 10 September 2015 11:12
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post