Adding comments code to custom form.

Hi there,

How is it possible to add a comment block at the end of a custom created form?

I developed my own custom form and i wish to add a comment block to it, to be able to comment on that particular form, and i wish to add that block by code. In other words, what code could i add in the .inc file of my form to allow comments on it.

Thanks for your time and help.

How would you preprocess node so a new class is output to the 'links' array

I want to add a class of 'clearfix' to the links that appear at the bottom of a node in teaser view (i.e. 'read more' and 'add new comment'.) The class needs to be added to the <ul> tag.

This is my code so far:

Content editing roles not working properly unless "bypass content access control" is checked

Hi everyone,

I have just begun to work with drupal for the first time, so there might be many things I don't fully understand yet. I apologize if I'm going to ask really noobish questions :-)

I am trying to set up a very basic workflow with 3 roles : admin, editor, contributor. Admin is the standard, default drupal admin role. Editors would have the responsibility to edit and publish content. Contributors are the ones submitting content to editor's review.

Nothing fancy out there I guess ! ;-)

So first, I leave the admin profile to its default.

I then create a new role, "Editor". I define its permissions as follows (everything unchecked except) :
- Administer Content
- Access the content overview page
- View published content
- View content revisions
- For each content type : "edit any content" and "delete any content" are checked.
- For ease of use, I have also enabled "use the administration toolbar" and "Access the administrative overlay"

And I finally create a "Contributor" role with the following enabled permissions:
- Access the content overview page
- View published content
- View own unpublished content
- View content revisions
- For each content type : "create new content" and "edit own content" are enabled
- For ease of use, I have also enabled "use the administration toolbar" and "Access the administrative overlay"

Module translation files

Hi,

I have created a module 'meetings.module' and would like to add a Dutch translation file to it. When installing the module, the translations should automatically be applied in case the language is Dutch.

I've created a .po and it looks like this:

# $Id$
#
# Dutch translation of Drupal (general)
# Copyright YEAR NAME
# Generated from files:
# meetings.page.department.php: n/a
# meetings.page.department.inc: n/a
# meetings.page.meeting.inc: n/a
# meetings.page.meeting.php: n/a
# meetings.block.inc: n/a
# meetings.page.document.inc: n/a
# meetings.module: n/a
# meetings.info: n/a
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"POT-Creation-Date: 2011-05-26 17:19+0200\n"
"PO-Revision-Date: 2011-05-26 17:19+0200\n"
"Last-Translator: NAME \n"
"Language-Team: Dutch \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n!=1);\n"

#: meetings.page.department.php:15 meetings.page.department.inc:15
msgid "Department %title"
msgstr "Gremium %title"

#: meetings.page.department.php:66 meetings.page.department.inc:76
msgid "Upcoming meetings"
msgstr "Komende vergaderingen"

#: meetings.page.department.php:67 meetings.page.department.inc:77
msgid "Archive"
msgstr "Archief"

How to supply translation with my module

Hi,

I have created a module 'meetings.module' and would like to add a Dutch translation file to it. When installing the module, the translations should automatically be applied in case the language is Dutch.

I've created a .po and it looks like this:

# $Id$
#
# Dutch translation of Drupal (general)
# Copyright YEAR NAME
# Generated from files:
# meetings.page.department.php: n/a
# meetings.page.department.inc: n/a
# meetings.page.meeting.inc: n/a
# meetings.page.meeting.php: n/a
# meetings.block.inc: n/a
# meetings.page.document.inc: n/a
# meetings.module: n/a
# meetings.info: n/a
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"POT-Creation-Date: 2011-05-26 17:19+0200\n"
"PO-Revision-Date: 2011-05-26 17:19+0200\n"
"Last-Translator: NAME \n"
"Language-Team: Dutch \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n!=1);\n"

#: meetings.page.department.php:15 meetings.page.department.inc:15
msgid "Department %title"
msgstr "Gremium %title"

#: meetings.page.department.php:66 meetings.page.department.inc:76
msgid "Upcoming meetings"
msgstr "Komende vergaderingen"

#: meetings.page.department.php:67 meetings.page.department.inc:77
msgid "Archive"
msgstr "Archief"

Creating content without a path / URL

I'm using Views / Panels to show certain content (image, title, description) in a slideshow.

I don't want to generate a node with a path / URL for this content. What's the best way to add content (node?) to Drupal without a path?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x