I've made a few modules within my socialengine application however I was wondering how do I add these to the layout editor (root/admin/content) so that I can add widgets to these pages?
You can add the widget in layout editor by adding setting in content.php file.
We recommend adding your widget via the Package Manager which should help take care of the rest. For more information, please see in the Developer SDK section: http://support.socialengine.com/questions/180/Admin-Panel-Manage-Packages-Plugins
You should create a page first from layout editor.DO NOT GIVE any page URL in edit page info section.Leave the page without URL.Most important, add the content widget to your page and save it.
Now, you have a fresh page which does n't have url set.Create a module and either install it or paste it in your application/modules directory. Now, open your database and find the table
"engine4_core_pages" and click on insert and set the name field with your modulename_controller_action.
Comeback to your module and open index controller and put whatever code you want to in index action and just add a simple code to view this in your page,"
$this->_helper->content
// ->setNoRender()
->setEnabled()
You are done.You can set the route from your modules manifest.php inside settings
folder.
Hope this will help.
http://bloffin.blogspot.in/ for more...
Related
I am using Woocommerce plugin on my WordPress website, and now I want to modify dashboard for users, but when I open the page i have only this [woocommerce_my_account] short code, so now I want to know where it is coming from, and how can I change it?
So in that dashboard I want to add some new pages, tabs and videos.
Here is the path contents/plugins/woocommerce/templates/myaccount/my-account.php so you can edit there.
You can use this free plugin to change basic things.
My Account Page details are shown in the form of side bars. These
side bars are: ‘Dashboard’, ‘My Downloads’, ‘My Orders’, ‘Edit
Account’ and ‘Edit Address’
Option to edit the text of the menu options.
Option to deactivate the menu option temporarily.
Option to reorder the menus.
Download Plugin
Path contents/plugins/woocommerce/templates/myaccount/my-account.php so you can edit there. as mentioned by #noman
Custom age for the dashboard.php
Create a folder “woocommerce” inside your theme folder
Create another new folder “myaccount” inside the “woocommerce” folder
Go to plugins/woocommerce/templates/myaccount and copy the dashboard.php file
Paste this file into yourthemefolder/woocommerce/myaccount folder
Now edit the text and save the file
I just created a custom page called store in opencart. For that, I created three files in opencart directory. ..\template\common\store.tpl, ..language\english\common\store.php and ..\catalog\controller\common\store.php. After adding these files, http://localhost/store/index.php?route=common/store shows me the home page with headers and footers.
The question is I am not able to add modules into the page as it is not displayed in "Layout" drop down under modules. For example, If I go to extensions and "Account", I am not able to find this page under layout dropdown so that I can add account module.
Can someone please help?
Thanks,
Praveen
for adding page to layout in open cart Go to administration -> System -> Design -> Layouts and click on Insert button. Here You can define a new layout (e.g. You have a custom page with controller that is accessed via URL index.php?route=information/mycustominformation, add it's route information/mycustominformation as a new layout route).
Well, it seems like someone had already answered the same question in :
OpenCart adding page to the layout
Thanks for the answer in that post. This is my first post and I cannot upvote the person yet.
In every module and section of opencart we see a drop down called layout. Which usually contains pages such as category, news, product, default, home, etc...
How can I add a page to this section?
Now, I can add a CONTENT_PAGE via information->insert.
Else, I usually do it by creating a controller and a template, but the page I create is not formally recognized by opencard.
My question is that I should I make open card recognize my page which I create by making a controller and a template manually within the project folder. How?
thanks in advance
Though these questions suit more for OpenCart forum instead of SO, I'll try to answer the first one shortly:
How can I add a page to this section?
Go to administration -> System -> Desgin -> Layouts and click on Insert button. Here You can define a new layout (e.g. You have a custom page with controller that is accessed via URL index.php?route=information/mycustominformation, add it's route information/mycustominformation as a new layout route).
The second problem is completely unclear to me. Can You be more specific and describe in more details?
I have installed the "Facebook Connect" extension in Opencart and it works fine, but the customer is asking me to move it on the fixed part below the header that always shows the cart total and content
WELCOME VISITOR YOU CAN LOGIN OR CREATE AN ACCOUNT
Cart: 1 item(s) - €42.3
http://i.imgur.com/VZdlwLi.jpg
So basically she wants that the "facebook connect" button is always visible on all pages.
How can I do that?
Another thing that she would like it to have the "facebook connect" on the login page,in the area for new customer, right near the the continue button
http://i.imgur.com/Uwfygjr.jpg
Opencart, as you know, has only 4 positions for modules to be placed at. So you have 2 options.
One is to create a new position, eg 'top header', but this is too much work for sth as simple as that. Of course you can buy a module that does that but I think it will not do exactly what you want.
Your second option is to edit the header.tpl and the header conrtoller files. Since this is a custom theme, if there are no upgrades planned to the whole theme, I would recommend editing the tpl file directly and adding changes to the controller via vqmod. What you need is to find the code from the facebook connect extension that outputs this blue button (look in a facebook_connect.tpl, or sth similar in the default theme) together with any javascript or css rules and place this code in the appropriate place in the header.tpl of your theme. Then see if there is any code in the facebook connect extension's controller file that is necessary for the button to work. If so, first try to see if you can skip it by adding manually anything you can directly in the tpl file. Eg if there is a setting for a facebook id or sth that is loaded in the controller file just to be output in the tpl file, just put the id directly in the tpl file. The rest of the code just put it in a vqmod file to place it somewhere in the index function of the header controller.
I am working on a magento theme but stuck with adding social links in header.
I just want to put three Social links on to my site in header section of every page.
It will depend on the template your using.
The file you'll need to edit will more than likely be in /APP/DESIGN/Somehwere . The somewhere will depend on you the theme you're using.
To see which file you need to edit, turn on template hints: From your admin panel, go to System >> Configuration >> Developer
Depending on your setup, you may have to set it for your default view or a specific store view.
A quick tutorial of template hints is here : http://www.westwideweb.com/wp/2009/08/04/magento-how-to-turn-on-template-path-hints-and-inline-translation/
The base header template is located in:
/app/design/frontend/base/default/template/page/html/header.phtml
But it's not good practice to directly edit this file, while you can do so.
The proper way would be to make a new theme folder, setup your store to use the right theme within admin then to edit the header.phtml file from that theme, which will override the default base theme - eg:
/app/design/frontend/base/yourtheme/template/page/html/header.phtml
make template path hints on for your store view. System->Configuration->Developer. (You can use your specific IP in allowed IPs not to effect the view)
Disable the cache.
Refresh the home page.
You can view the file there, go to that file.
You can directly add it there or you can create a static block and use that in your phtml file according to your wish.