Social module at the end of k2 item
Rate this topic: 1.00 out of 6 based on 1 vote(s)
- GK User
- Wed Mar 25, 2015 5:10 pm
- Reply with quote
- Report this post
Dear guys,
I' ve a new social module that I'd like to display at the end of k2 item of my simplicity template. Could you let me know on how to create a new position in item.php?
You might ask me why I don't use {loadposition xxxx}. The reason is that I wrote already many articles so I should open each of them and manually past {loadposition xxxx}. Beside, my site is multilingual so I should do it many and many times.
That's why I' m thinking to create a new position in item.php and to assign it to the social module.
If you have further and cleaner ideas please let me know,
Best,
Roberto
I' ve a new social module that I'd like to display at the end of k2 item of my simplicity template. Could you let me know on how to create a new position in item.php?
You might ask me why I don't use {loadposition xxxx}. The reason is that I wrote already many articles so I should open each of them and manually past {loadposition xxxx}. Beside, my site is multilingual so I should do it many and many times.
That's why I' m thinking to create a new position in item.php and to assign it to the social module.
If you have further and cleaner ideas please let me know,
Best,
Roberto
-
- Expert Boarder
- teitbite
- Fri Mar 27, 2015 12:00 pm
- Reply with quote
- Report this post
Hi
Here is a code to create a module position inside component:
Here is a code to create a module position inside component:
- Code: Select all
<?php
$modules =& JModuleHelper::getModules('k2_bottom_module');
foreach ($modules as $module) {
echo JModuleHelper::renderModule($module);
}
?>
-
- Moderator
- GK User
- Sat Mar 28, 2015 8:46 pm
- Reply with quote
- Report this post
You are great!!! Thanks!
-
- Expert Boarder
3 posts
• Page 1 of 1