Hello,

I'm using a form for PHPlist via a block, which is displayed in the content section (as it has multiple attributes, address etc). It all works fine except I can't get the view to display without a node.

The form options for the view:

" Nodes per Page:
The number of nodes to display per page. If 0, all nodes will be displayed. If not using a pager, this will be the maximum number of nodes in the list.
"

Doesn't allow for the display of no nodes. Unless I enter '-1' which produces a SQL syntax error, although everything still displays fine and works except for the error message.

Any ideas how I can just display my form (block) without any nodes in there as well?

Thanks,

Rob

Comments

m13’s picture

you created a view type: node and you do not wish to display nodes?

robdunne101’s picture

I just want to display the block which contains the form for PHPlist as the content.

If I have it as Table View or List View then no nodes are displayed, but a field must be displayed (which I don't need).

Sorry I've not been working with Drupal very long, still learning.

Thanks.

m13’s picture

"I just want to display the block which contains the form for PHPlist as the content. "

I don't get it!

"Sorry I've not been working with Drupal very long, still learning."

no worries ;)

robdunne101’s picture

"I don't get it!"

Unfortunately, neither do I. :-/

I'll figure it out.

m13’s picture

just because I didn't get it doesn't mean that you wont possibly get help from another member of the community ;)

one piece of advice: if your view is of type: node then don't expect it to work unless you do display some nodes.

robdunne101’s picture

Ah right yeah. That makes sense. I could do with View Type: Block, as that's what I have my form in. A form can't be a node in Drupal right?

I'm basically trying to find a way to integrate a form into Drupal that sends info to a PHPlist install. I'm using the options in the block to display it at a certain url (the view I'm working with).

Finding the right place to put a custom form in Drupal is very confusing. Seems like it should be quite a straight forward process to put some custom HTML in for the content.

Maybe it is?

Thanks for your help M13! :-)

Rob