Drupal 7.x

How to customize individual html tags in accordance with Drupal theming principles?

First of all, I'm a beginner in Drupal thus this question refers to some basic aspects of theming.

To better visualize my "problem":
1) I'm adding a new, custom block to the page via Administration => Structure => Blocks
2) In the field "Block body" I'm adding some text (plain text)
3) I'm assigning this new block to a particular region in my theme

Now I go to my website to see the new block content. I use Mozilla's Firebug plug-in and see that the text from the "Block body" is presented within these tags:

<p>some text</p>

The style for paragraph tags is defined in normalize.css file which adds some margin that I want to remove for this specific part (I use Zen Starterkit theme).

And the question - how to apply such a change (styling differently the paragraph tag) so that I'm not messing up too much in the theme files and it's in line with Drupal theming principles?

My first idea was to:
1) go back to the "Block body" field
2) change "plain text" to "full HTML"
3) declare a specific class for this tag, i.e. <p class="whatever">some text</p>
4) add somewhere a definition for "p.whatever" selector, but where?

But maybe there's a totally different approach for such changes.

Thank you in advance for your help.

Cheers,
Robert

How to - multi sites only!

Hi,

domain.com will have only one static page to select to go to a.domain.com or b.domain.com.
I do not want to install full drupal for only one static page.

My thought is to install the sub sites, and in the domain.com forwarded to xxx.html file ... any better way ?

Thanks ..

Is it ok to edit the CSS of contrib themes ?

I know you shouldn't edit the core themes as this can cause problems in the future, but is it ok to install a new theme into /sites/all/themes and edit these? Will editing these themes cause problems in the future like editing core themes can?

Cheers

Publish group

HI.

I have created a new group, but it´s unpublished, and i can´t find the way to publish it.

thanks in advance

Using Drupal and Gallery 3 to create keyword-driven content

I have Drupal 7 and Gallery 3 running at worldwar2database.com.

All of the Gallery 3 photos have keywords, and most of the Drupal articles have keywords.

What I would like to do is have the photos relate to the article - so, if the keyword is "Stalingrad" all the articles, photos, blog posts, etc. would show up at worldwar2database.com/html/stalingrad.htm.

That's the next step, but I have no idea how to do that. I am a (history) writer and a photo researcher, not a PHP programmer, so newbie steps please.

I imagine I have to pull the Gallery 3 photos and make those photos Drupal nodes, and then use some module with URL rewrite to pull it all together, but not sure if there's something out there that will do that without me wading into code.

Thanks
Jason

Complex web forms development using Drupal 7

Hi All,

We are looking forward to developing complex web forms, for capturing data from end users in an interactive way, using Drupal 7.
Some of the modules we shortlisted for our usage are -

1. Webforms
2. Form Builder
3. Form manager
4 CCK

We are still not very sure as to which is the right module to develop our forms to cater the following requirements -
1. Complex forms, each having multiple subforms
2. Content management of static data of the forms such as labels, help text, guidance etc.
3. No access to content editor to modify form elements such as text fields, drop downs etc.
4. Static review pages for each form for the user
5. Role based views (Developer, general user, content editor etc)

So we are looking for modules which can provide out of box capabilities for the above mentioned features.
Any help in this direction would be really appreciated.

Thanks & Regards,
Shiv

Subscribe with RSS Syndicate content
nobody click here