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 8301759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:07:24+00:00 2026-06-08T17:07:24+00:00

I am currently working on developing my first WHMCS Addon Module, and so far

  • 0

I am currently working on developing my first WHMCS Addon Module, and so far everything has gone very well. However, I need to make multiple content pages, and the only way to display output according to the Wiki Article is to echo it in the output function. How can I create individual pages when the only way to display content is via a single PHP function?

I am assuming using divs, and hiding the relevant divs, although not exactly the best method. It says you can use the “modulelink” variable to link back to the module, but I have no idea how to use this, or if it can be used for making multiple content pages.

http://docs.whmcs.com/Addon_Module_Developer_Docs

  • 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-08T17:07:26+00:00Added an answer on June 8, 2026 at 5:07 pm

    After some tinkering, it was much more simple than I realized, and the “modulelink” variable was just so you could link back to the page. To create additional pages, you can basically just do something along the lines of…

    <a href="addonmodules.php?module=device_portal&catid=1">Datacenters</a>
    

    Then in the output function have…

    $category = $_GET['catid'];
    
    if ($category == "1" || $category == "")
    {
    //page 1 content here
    }
    else if ($category == "2")
    {
    //page 2 content here
    }
    

    and so on.

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

Sidebar

Related Questions

Cheers, I am currently developing my first app featuring In App Purchases. Everything is
I am currently working on developing a simple web system, so an user first
I'm currently working on developing a custom keyboard app that will be optimized for
SO. I'm working with the OCS UCCAPI, developing a custom OCS client. I'm currently
Currently working for the first time with JSON and with little experience of jQuery.
Okay, allow me to say first off that I am working on developing my
I'm currently working on some school project; we are developing a simple RPG, but
I'm currently working on an app that works with Twitter, but while developing/testing (especially
I'm currently working on developing an e-commerce website and I'm going to use C#,
I'm currently working with C# and developing a few Silverlight applications that use sharepoint

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.