Log in

View Full Version : Add fields to CMS articles


firebrand media
05-02-2012, 07:59 PM
I need to pull "featured" articles to a home page.

I was advised:
Best way would be:
-adding a custom variable to articles. Featured? Yes/No.
Then you can edit an article and toggle this variable.
- Then make an widget that grabs the articles with featured variable yes. Then you can display them in a slideshow or whatever means you see fit.

I'm new to serious vBulletin hacking so I have a bunch of questions:

How does one one add a "custom variable" to an article? These terms are too generic to yield useful searches. :) I don't see anything in the UI, so I'm assuming I need to add some code, but where?
How do I access these custom variables? Do I need to do something to the database, or is that all handled?

I'm certainly not afraid to code, I just need some documentation on how this stuff works.

Lynne
05-02-2012, 08:51 PM
You may want to see this article - How to add a new field to the CMS (https://vborg.vbsupport.ru/showthread.php?t=257589)

firebrand media
05-03-2012, 02:41 PM
I added this question to that article's thread, but you lost me on step 1.
Create a new field in cms_node
Could you add an appropriate article link to that thread?

Lynne
05-03-2012, 03:03 PM
cms_node is a table in the database. So, you need to add your custom field to the table.