Metas Module
Posted: Sat Nov 28, 2009 2:07 am
I just started with CMSMS.
I don't like just how simple the metas are, so I'd like to expand them, and more importanly learn how to create modules.
So after reading some instructions, I'm thinking these are some of the things I'll need.
the main idea is to be able to set default metas, and have the ability to overwrite them.
If a meta doesn't exist, the default is used, but maybe a check-box would be helpful, whether to use default or not.
I was thinking about adding a table that will hold:
tag_name C(64)
tag_description TEXT
use_default BOOL
page_id INT (I'm assuming the int value is the way to go on this)
So the things I'm wondering about are how do I tie the data to the individual posts
I'd like the option to set these show up, by default, on all pages' options (and maybe remove the 'Page Specific Metadata')
The module should also show up elsewhere (either content, extensions or where would make most sense)
I'm thinking in the main module I would set the tag names, and if the tag name and default content, and if any tag is specified, it should show up under the options.
how do I sort through the tag data to get the information needed for the specific page?
I'm thinking - query the table for the default values and the values that match the page_id
anyhow I would appreciate if anyone who knows how to develop modules for CMSMS could give some guidance.
Any help is appreciated
I don't like just how simple the metas are, so I'd like to expand them, and more importanly learn how to create modules.
So after reading some instructions, I'm thinking these are some of the things I'll need.
the main idea is to be able to set default metas, and have the ability to overwrite them.
If a meta doesn't exist, the default is used, but maybe a check-box would be helpful, whether to use default or not.
I was thinking about adding a table that will hold:
tag_name C(64)
tag_description TEXT
use_default BOOL
page_id INT (I'm assuming the int value is the way to go on this)
So the things I'm wondering about are how do I tie the data to the individual posts
I'd like the option to set these show up, by default, on all pages' options (and maybe remove the 'Page Specific Metadata')
The module should also show up elsewhere (either content, extensions or where would make most sense)
I'm thinking in the main module I would set the tag names, and if the tag name and default content, and if any tag is specified, it should show up under the options.
how do I sort through the tag data to get the information needed for the specific page?
I'm thinking - query the table for the default values and the values that match the page_id
anyhow I would appreciate if anyone who knows how to develop modules for CMSMS could give some guidance.
Any help is appreciated