How to detect new line in textarea?

Hi,
if somebody enter into textarea this value:

rr tt
uu

I get this value in $form_state after form submit:"rr tt uu". So I don't know where new line was added. There is missing documentation on Form API reference site for parameter #text_format. How can I detect new line? Do I need some wysiwyg editor to use?

thanks
Tomas

Multisite d6 to d7 upgrading

Hi everybody!
After a few unsuccesful tries with this upgrade and popping by IRC a couple of times, again unsuccessfully, I am trying the forum.

What happens is defenetly odd.
I am upgrading site by site a multisite installation of d6.

I upgraded a few sites, but this one I cannot upgrade it for some reasons. Here is what I do:

Submitted by Node Author name plus Twitter ID

What would be the best way to have Twitter ID link show next to author name in my content type?
Something like: Submitted by Username (@twitterid)

Collapse/Show Field in Views/Panels

I'm new to this so be gentle...

I have a View I've made. Basically it's got a custom content backend that has a question and an answer. I want to have the answer present itself when clicked on.

i'm trying to do it in views and/or panels (without having to modify stuff under the hood if possible).

I'm thinking "Replacement Patterns" in Views might do the trick, but it doesn't seem to want to work.

Anyone have a good idea of how I would achieve this?

add custom horizontal navigation bar in genesis

Hi,

... new to drupal.
Objective: create two custom horizontal navigation bars (eventually with drop down menu), one above and one below the "header" SECTION.

I have been pulling my hair out for 2 days over this exercise.
This is what I have sone so far: created my own subtheme directory, changed .info file name, changed .info file settings and added:
regions[nav_top_region] = Top Navigation Region (custom)
regions[nav_main_region] = Main Navigation Region (custom)

Thereafter added to page.tpl.php :

<?php if ($nav_top_region): ?>
      <div id="nav_top-wrapper" class="clearfix">
        <div class="nav_top-inner"><?php print $nav_top_region; ? ></div>
      </div>
    <?php endif; ?>

and
 <?php if ($nav_main_region): ?>
      <div id="nav_main-wrapper" class="clearfix">
        <div class="nav_main-inner"><?php print $nav_main_region; ?></div>
      </div>
    <?php endif; ?>

Am I good so far? What are my next steps? Do I create a block now within the region, do I need to activate/create those two regions somewhere else, what do I have to link with?

Each entry in the navigation bar should be a link to a different page.

Drupal 7 Content Menu Setting Default Parent Item

I am used the default Garland 7.0 theme.
I am a Drupal newbie coming from Joomla.
I can create other menus and add links to them OK.
When I go to :
Content > ( node ) Edit > Menu Settings
Check Provide Menu Link
At the Parent item:
The ONLY Parent item I get is Main Menu and the Parent Items I created ( even form item already in the Navigation menu ).
If I accept this it changes the menu location of say a Navigation item.
The example I read in books have an available menus selection check boxes I do not see.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x