Page 1 of 1

Create extra tab in admin content pages

Posted: Sun Dec 14, 2014 8:29 pm
by mebots
Hello,

I'm looking to add an extra tab to the content pages in the admin.

Is there a way to do it with the module I'm writting?

Tia,
Martijn

Re: Create extra tab in admin content pages

Posted: Sun Dec 14, 2014 10:41 pm
by JohnnyB
I'm looking to add an extra tab to the content pages in the admin.
Where would the tab be located? Do you mean while editing a content page? If so, look at the {content tab=""} documentation.

Re: Create extra tab in admin content pages

Posted: Mon Dec 15, 2014 6:35 am
by mebots
Hello JohnnyB,

That I know, but I don't want to place the line in the template but directly from my module in the content page, if you install advanced_content module you can see it if you switch on the option tab or if you install the frontendusers module then you see a new tab "views".

Hope someone can tell me how to do it.

Re: Create extra tab in admin content pages

Posted: Mon Dec 15, 2014 12:42 pm
by Jo Morg
mebots wrote:(...) if you install advanced_content module you can see it if you switch on the option tab or if you install the frontendusers module then you see a new tab "views".
Yep, that is done by registering a new content type, which each of those modules does (one or more...). If you take a peek at the modules source files you'll learn how they do it. If it fits your needs depends on what and why you want to do.

Look for Class CMSModuleContentType here: http://apidoc.cmsmadesimple.org

Best way to learn is to look at the source of the modules you just described.
HTH

Re: Create extra tab in admin content pages

Posted: Mon Dec 15, 2014 4:28 pm
by mebots
Hello Jo,

Thank you for the reply, but I want only have a new tab on each content pages, and not a new contenttype.

Is this possible?

Re: Create extra tab in admin content pages

Posted: Mon Dec 15, 2014 4:35 pm
by Jo Morg
mebots wrote:Is there a way to do it with the module I'm writting?
mebots wrote:Thank you for the reply, but I want only have a new tab on each content pages, and not a new contenttype.

Is this possible?
Only by the methods described above.