I want to run some php code to pre-load some fields before allowing the user to complete the article form. I can do it by running custom php code that first asks the user to enter some information, then stores that info in a 'holding' sql file, and finally links to a new record screen (by copying the link on the article list screen). Then, I've modified the text templates to pre-load their values from this 'holding' sql file.
The problem is that the article list also has a link that allows the user to enter a new article which then bypasses my pre-load code.
How can I either...
* Remove the ability for a user to enter a new article from the article list button ("+ Post here")
* Locate a place within Cobalt code to place my custom code. I've tried placing the code in the Article List Template, for example, and while I can load up the 'holding' file, the text value have already been pre-loaded from the previous new article.
I want to run some php code to pre-load some fields before allowing the user to complete the article form. I can do it by running custom php code that first asks the user to enter some information, then stores that info in a 'holding' sql file, and finally links to a new record screen (by copying the link on the article list screen). Then, I've modified the text templates to pre-load their values from this 'holding' sql file.
The problem is that the article list also has a link that allows the user to enter a new article which then bypasses my pre-load code.
How can I either... * Remove the ability for a user to enter a new article from the article list button ("+ Post here")
* Locate a place within Cobalt code to place my custom code. I've tried placing the code in the Article List Template, for example, and while I can load up the 'holding' file, the text value have already been pre-loaded from the previous new article.