Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Insert a new element on news from another mod.
  • Posted: 10.07.2006, 13:47
     
    SiCk949
    rank:
    Freshman Freshman
    registered:
     June 2006
    Status:
    offline
    last visit:
    30.10.06
    Posts:
    28
    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
  • Posted: 11.07.2006, 21:32
     
    jediping
    rank:
    Helper Helper
    registered:
     November 2004
    Status:
    offline
    last visit:
    12.03.07
    Posts:
    387
    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.
  • Posted: 17.07.2006, 16:14
     
    SiCk949
    rank:
    Freshman Freshman
    registered:
     June 2006
    Status:
    offline
    last visit:
    30.10.06
    Posts:
    28
    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)?
  • Posted: 21.07.2006, 21:13
     
    jediping
    rank:
    Helper Helper
    registered:
     November 2004
    Status:
    offline
    last visit:
    12.03.07
    Posts:
    387
    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

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula