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

Controller for index page | Forum

Topic location: Forum home » Support » General Questions
Steve
Steve May 27 '14

Hey pals. 


Im trying to optimize Oxwall for Facebook Open Graph. 


I want to add my custom head meta tags foreach page so, head feature on admin panel just doesn't work for me.


Im wondering, which should be controller for index page?


I really, really appreciate your help regarding to this issue.


Thanks in advance.

ross Team
ross May 29 '14
There's no controller for index page. Do you want to insert your own keywords or what? Please elaborate what you're trying to achieve
Steve
Steve May 29 '14
First, thanks for reply ross.


Im trying to make my Oxwall site Open Graph friendly by adding custom OG tags for each page. I've already done this on forum plugin ow_plugins/forum/controllers/topic.php

with this:  OW::getDocument()->addMetaInfo('og:url', "http://www.myurl.com");


To make each post "shareable" in facebook.


OW::getDocument()->addMetaInfo('fb:app_id', "XXXXX");

OW::getDocument()->addMetaInfo('og:type', "website");

OW::getDocument()->addMetaInfo('og:image', '$someimage');

OW::getDocument()->addMetaInfo('og:title', '$title');

OW::getDocument()->addMetaInfo('og:url', '$someURL');

OW::getDocument()->addMetaInfo('og:description', '$desc');



So, I want to customize headers for index page as well, but I can't find where to do that.


Again,

Thanks for reading and take the time to help me :)



ross Team
ross May 29 '14
Haven't you thought of using custom html widget on your index page, because as I noted there's no controller for index page.