Create extra tab in admin content pages

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
mebots
Forum Members
Forum Members
Posts: 44
Joined: Sun May 23, 2010 10:22 pm

Create extra tab in admin content pages

Post 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
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm
Location: OH, USA

Re: Create extra tab in admin content pages

Post 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.
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
mebots
Forum Members
Forum Members
Posts: 44
Joined: Sun May 23, 2010 10:22 pm

Re: Create extra tab in admin content pages

Post 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.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1967
Joined: Mon Jan 29, 2007 4:47 pm

Re: Create extra tab in admin content pages

Post 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
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
mebots
Forum Members
Forum Members
Posts: 44
Joined: Sun May 23, 2010 10:22 pm

Re: Create extra tab in admin content pages

Post 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?
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1967
Joined: Mon Jan 29, 2007 4:47 pm

Re: Create extra tab in admin content pages

Post 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.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Post Reply

Return to “Developers Discussion”