Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8617411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:51:03+00:00 2026-06-12T05:51:03+00:00

I have a quick question connected with my little knowledge of Joomla\K2. I’m using

  • 0

I have a quick question connected with my little knowledge of Joomla\K2. I’m using subtemplates to create different layouts for different pages. When I declare module position on sub template:

<jdoc:include type="modules" name="position-7" />

Nothing happens. I’ve tried the same code for main template file and it worked, but seems like it’s not parsed for sub-templates. Am I right? How can I include modules into sub-templates then?

thanks in advance,
Michael

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T05:51:05+00:00Added an answer on June 12, 2026 at 5:51 am

    jdoc tag only works in joomla core template. If you want to load modules of specific position in your k2 subtemplate write the following code at your desired location in that subtemplate.

    $module = JModuleHelper::getModules('xxxx');
    // xxxx is any virtual position, no need to create it anywhere.
    echo JModuleHelper::renderModule($module[0]);
    

    replace xxxx with your desired position name.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

quick question. In my user database I have 5 separate tables all containing different
A quick JSTL question. I usually use scriptlets in my jsp pages, but have
I have quick question. I am using the following code to launch camera and
Have a quick question on iAd I would like to create a free app
Have a quick question. I am using a SQLite database file in my C#
I have a quick question; when using cachedependency with an xml file, could a
I have quick question about text parsing, for example: INPUT=a b c d e
I have quick question for you SQL gurus. I have existing tables without primary
I have a quick question about something I imagine must be pretty easy -
I have a quick question that I can't seem to find online. I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.