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
Create extra tab in admin content pages
Re: Create extra tab in admin content pages
Where would the tab be located? Do you mean while editing a content page? If so, look at the {content tab=""} documentation.I'm looking to add an extra tab to the content pages in the admin.
"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.
--
--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
Re: Create extra tab in admin content pages
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.
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
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.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".
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!
* 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!
Re: Create extra tab in admin content pages
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?
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
mebots wrote:Is there a way to do it with the module I'm writting?
Only by the methods described above.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?
"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!
* 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!