The style for the module may also be set here. php file and add your new module to the array (see example below). Second step, Add the new module position to the template module styles by editing the Step #2 (optional step – if gk.const.php file exists) Tags as they are for the other module positions. Existing positions will appear similar to the following: This is located under the template folder. The first step in adding a new module position to your active template is to edit the templateDetails.xml file. It should have no sidebars.įeel free to check the detailed video tutorial below: Step #1: Modifying templateDetails.xml Open the new page from the front end of your site. If there are more sidebar modules assigned to your menu, unassign them all.Ĭlick Save at the top left to save the changes. Uncheck the required page and click Save and Close. If any of the modules with these positions is assigned to the menu you created, click on it.Ĭlick on the Menu Assignment tab in the window that is going to pop up, scroll down and look for your new menu in the list (it should be changed so you can see it there). The names of the sidebar module positions depend on template numbers, for example aside-right, aside-left, etc. To see the module positions, go to Extensions -> Template Manager -> Options -> Preview Module Positions -> Enabled -> Save.Ĭlick on the Preview icon next to your theme to see the module positions. You can look for these modules in the list by their positions or by their names. You will now need to switch off the sidebar modules assigned to the menu by default. In the window that is going to pop up, look for the article you want to put on the page the menu item is pointed to and click on it.Įnter the menu name and alias into the corresponding fields, make sure the status is set to ‘published.’Ĭlick on the Menu Assignment tab and save the changes. Under the Details tab click Select in the Select Article* field. In the window that is going to pop up, click Articles -> Single Article. Under the Details tab, click Select in the Menu Item Type * field. Go to Menus -> Main menu -> Add New Menu Item. This tutorial is going to show you how to add a new page without sidebars to a Joomla! 3.x. Login to your joomla admin and install com_mycomponent (the same way you would any extension you download) Zip All the contents under com_mycomponent lets name it com_mycomponent.zip You can remove the following if you did not create the ‘site’ directory: Open ‘mycomponent.xml’ file and paste the below code If you don’t create the installer I think it will cause errors within the system.Ĭreate one or two directories in the directoryĬreate ‘mycomponent.php’ in the admin directory (and site directory if you created one) and write your desired code into the admin file (and/or) site file.Ĭreate ‘mycomponent.xml’ file in com_mycomponent I will expand because to the best of my understanding we will need an installer to actually ‘install’ the component (although it’s been a while since I’ve developed heavily in Joomla). Of course, this is for the most basic - barebones idea. Then you add your php code to that page to do whatever you want. If memory serves me correctly, you can create a folder (say com_mycomponent) and create ‘mycomponent.php’ in that directory. You might be able to inject a single page to display the data - but I think more than likely your best bet (to do it properly without hacking stuff) might be to develop a small component to handle it best.īy creating the admin component you can create the page you want and display your data however you decide. I need to add a new custom PHP page inside Joomla admin panel (not on the main site) to display some data from my own tables.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |