This forum is for less technical discussions about the Drupal project, not for support questions.

'read more' on postings

I want to have the complete posting display instead of having to click the 'read more' link.
can the 'read more' be disabled and the posting be forced to display the entire read?
e.g. http://www.shreemaa.org/drupal/taxonomy_menu/9

thanks!
susan

Make aggregator view running in a page display only 1 category

Hi been trying to make the aggregator category view run on a page but only displaying results for 1 of the categories have got the code -

 $result = db_query('SELECT c.cid, c.title, c.description FROM {aggregator_category} c LEFT JOIN {aggregator_category_item} ci ON c.cid = ci.cid LEFT JOIN {aggregator_item} i ON ci.iid = i.iid GROUP BY c.cid, c.title, c.description');
  $output = "<div id=\"aggregator\">\n";

  while ($category = db_fetch_object($result)) {
    $output .= '<h2>'. check_plain($category->title) ."</h2>\n";
    if (variable_get('aggregator_summary_items', 3)) {
      $list = array();
      $items = db_query_range('SELECT i.title, i.timestamp, i.link, f.title as feed_title, f.link as feed_link FROM {aggregator_category_item} ci LEFT JOIN {aggregator_item} i ON i.iid = ci.iid LEFT JOIN {aggregator_feed} f ON i.fid = f.fid WHERE ci.cid = %d ORDER BY i.timestamp DESC', $category->cid, 0, variable_get('aggregator_summary_items', 3));
      while ($item = db_fetch_object($items)) {
        $list[] = theme('aggregator_summary_item', $item);
      }
      $output .= theme('item_list', $list);
    }
    $output .= '<div class="links">'. theme('links', array(l(t('more'), 'aggregator/categories/'. $category->cid))) ."</div>\n";
  }
  $output .= '</div>';

  return $output;

which displays the default all categories view, how is it possible to

js trouble

I have the following simple example:

<script>
var titel = new Array(1,2);
for(var i=0; i< titel.length; i++){
alert(titel[i]);
window.setTimeout("document.getElementById('main').innerHTML = titel[i]",2000);
}
</script>

The id main is in the body tag.

Question: Why will the title[i] be shown in the alert, but not in the setTimeout? I get a undefined in the body Tag
Thanks in advance

Ajax.Updater

Does somebody have experience with the Ajax.Updater from Prototype? I tried it but it seems it only loads whole pages(nodes) in a given div. Does somebody know how I can just change the content in the <div id="main"> without loading the surrounding blocks and primary links area?

Thank you

Taxonomy

Can I have somthing like this

Node type
-catagory 1
--sub catagory 1
---sub sub catagory 1
--sub catagory 2
---sub sub catagory 2
---sub sub catagory 3
-catagory 2


You get the idea

insead of

Node type
-catagory 1
--sub catagory 1
--sub catagory 2
--sub catagory 3
--sub catagory 4
-catagory 2
--sub catagory 1
--sub catagory 2
--sub catagory 3
--sub catagory 4

Need to create and send HTML emails

Everyone gather round for a newb question,

I'm currently working on a site for a restaurant and they want to have a page where a viewer can come in and fill in a form that would send an HTML email to a friend/recipient that basically invites the recipient to try out the restaurant. The site version I'm using is 4.6.x. Now I have seen the Send module (and the Mime email module) and I've installed it but I don't know how it works. Can anybody give me some pointers on this? Just not really sure how this function comes together to begin with. Would be much appreciated.

Pages

Subscribe with RSS Subscribe to RSS - General discussion