This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Categories and catagorizing news for new news site help please!!

Hello, i am currently working on a new news site located at http://canadafreepress.com/dani/drupal

now if you look to the left you will see the navagation with a few drop down menus. Now if you look in those drop down menus you will see different sections.

The issue i face is hooking up those sections with a dedicated page were content can be posted. So if i post a story/news, i want to be able to post it to only front page, or only science and technology section.

return value

I want to print value of database table field {table_name}:

function my_list() {

$retval = '';
$retval .= '

    ';

    $result = db_query("SELECT table_name from {table}");
    while($tid = db_result($result))
    {

    $retval .= "

  • $tid
  • ";
    but this loop is never ending :)
    echo $retval;
    }

    $retval .= '

';

return($retval);

}

function my_funct2() {

$content = my_list();
echo $content;
}

My date won't save, please help

OK, I'm pretty tired, so I need someone else to help me sort this out.

I'm trying to store a date in ther format "2006-11-02" into a MySQL database DATE column,
I have a #date field in my form and create the string in hook_verify from the array, and I pass this string in my INSERT and UPDATE statements, via db_query, which I suspect reformats it somehow.

Please help me save my date!

RSS feed - works but can't get page to display instead of download prompt

Hi,

The below function works as I got the feed to display on my netvibes. When you follow a the URL for the feed you get a download prompt and the xml/ rss page is not displayed example http://cyber.law.harvard.edu/blogs/gems/tech/rss2sample.xml.

The link is http://nzhn.timebased.com/?q=timeline/rss ( sorry password protected)

I suspect this is because the URL needs to end in .xml ;-?

Have tried adding .xml to in the _menu function but no luck. Any ideas or suggestions greatly appreciated.

can i hide categories?

I use a category simply to group some content for a particular app that i am designing - but don't want that category to show as "related" information when i visit one of those pages.

is this possible?

Peter Lindstrom
www.LiquidCMS.ca

Need Help modifying Event Calender

Have succesfully been using Drupal for all of 4 months, my current project is a website for a new building which houses several office opportunities for creative companies, we have been set a new requirement to have an 'availability calender' on the buildings website, where tennants (and outsiders) can check the availability of the conferencing rooms and make an enquiry to the centre management to book the rooms for a desired time. I have installed the Event module and set the calender. Trouble is it only displays when the rooms have a booking.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions