简体   繁体   中英

Create new module position in Joomla 3

So I want to create a new module position in Joomla 3! I know you add the position name in the templateDetails.xml of the file. But what next? Do I need to add css to the styling of the template? Also what next, do I need to add more code to the index.php file or how can I do this? I have searched the web for some help but it seems as if the tutorials havn't been updated because some of the files they are describing, like for example lib/framework, I don't have that in my template? ANy help greatly appreciated!


templateDetails.xml

的index.php

I am not sure i got your problem properly, but

if you want to just create module position , you need to do 2 steps: define position in templateDetails.xml and insert jdoc:include code in template's index.php like you did in your code above, thats all. By doing this you define positions where your modules could be displayed.

Then if you want to add module , you should go to Joomla administrator panel -> module manager and create module, choosing position you created.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM