We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

oxwall url | Forum

tammy harris
tammy harris Jan 14 '14
i have been trying for weeks to get the current url into a href for favebook comment app


i need the code to put in to give current ulr in 

<fb:comments href="current url here" num_posts="10" width="730"></fb:comments>
so comments can be separate on every page 
i have tried but not work 
"OW::getRequest()->buildUrlQueryString();";
Mohammad
Mohammad Jan 14 '14
If I get you right you want current url

check this: UTIL_Url::selfUrl();

it give current url which user is visiting

tammy harris
tammy harris Jan 14 '14

Quote from Mohammad If I get you right you want current url

check this: UTIL_Url::selfUrl();

it give current url which user is visiting


thanks   Mohammad 

i tried but it seams to not want to work in an html element 
Daisy Team
Daisy Jan 17 '14
You should use the following method: OW::getRouter()->urlForRoute('ROUT_NAME');
tammy harris
tammy harris Jan 17 '14
Quote from Daisy You should use the following method: OW::getRouter()->urlForRoute('ROUT_NAME');

thanks for your help daisy 
but i can not work out how to use that code 
H. H. Nguyen
H. H. Nguyen Jan 30 '14
Hey everybody,


can u pls tell me where can I find the fully OW-API-Documentation e.g.

to add CSS and JS file for your plugin u need this code


OW::getDocument()->addScript(OW::getPluginManager()->getPlugin("yourplugin")->getStaticJsUrl() . 'jquery.min.js');


I mean jesus: WHERE can i find all this fnc in the documentation?


Thx u.

Mohammad
Mohammad Jan 31 '14
There is a Plugin Skeleton in store available for developer

I think the only way now is go deep on ow_core and ow_system_plugins folders