Hello
I need help and ideas for make this.
I'm making a module that manage various groups, each group has a news category, download category and a links category.
I need to give the administrators of each group to write/edit/delete news, downloads and links from my module.
I have the info of his correspondent news, etc. ids, so, I think that I must "copy" the add news etc style and insert directly in the DB with this id but, any chance for make it of another way?
thanks
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
- nestormateo responded to »Fillters in Clip« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Insert a new element on news from another mod.
-
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 379
If I understand you correctly, you want to add news items from other modules. Is this correct?
In .8, this should be easy. For now, I wrote into my module the functionality to do this, since the Add Story module is not easily borrowable. -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 22
Yes, I wanna create new news item from another mod. but, there are any post method for send some values? or its best to create a new formularies page and make and direct insert? I also want to make it for a downloads and links subsection
how to make the SQL sentence via Postnuke API (not much important)? -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 379
You're going to be better off right now writing your own scripts, as the News module isn't set up to easily handle people using it to add things. Basically, you can send stuff to the module and have it add the news items, but instead of returning anything useful, like the database id#, it just returns "true" or "false," which isn't very helpful if you need that number to enter it as a foreign key in another database.
I haven't fiddled much with the downloads and links sections, but if you use one of the other download modules (like UpDownload), many of them have been written with the API compliance in mind and would be quite easy to use.
And eventually, in the bright distance of pn0.8, all the code you'll have written will be unnecessary, because the news modules will be API compliant. :D
- Moderated by:
- Support
