Field Group Input - Unlimited

I have a field group set up. When inputting content, I would like to allow users to input more than one of the field group (similar to what you can do with fields when they are set to more than one). I don't see this as an option anywhere...any ideas or help?

How to theme Popular Content block in Drupal 7?

Hello everyone!

I'm trying to theme Popular Content block in Drupal 7. This block is provided by the core Statisctics module. The thing is that this module doesn't contain a template tpl.php file. Instead the output comes out from the function statistics_block_view which resides here "modules/statistics/statistics.module". It looks like:


<?php
function statistics_block_view($delta = '') {
if (user_access('access content')) {
$content = array();

$daytop = variable_get('statistics_block_top_day_num', 0);
if ($daytop && ($result = statistics_title_list('daycount', $daytop)) && ($node_title_list = node_title_list($result, t("Today's:")))) {
$content['top_day'] = $node_title_list;
$content['top_day']['#suffix'] = '
';
}

$alltimetop = variable_get('statistics_block_top_all_num', 0);
if ($alltimetop && ($result = statistics_title_list('totalcount', $alltimetop)) && ($node_title_list = node_title_list($result, t('All time:')))) {
$content['top_all'] = $node_title_list;
$content['top_all']['#suffix'] = '
';
}

$lasttop = variable_get('statistics_block_top_last_num', 0);
if ($lasttop && ($result = statistics_title_list('timestamp', $lasttop)) && ($node_title_list = node_title_list($result, t('Last viewed:')))) {

accessing variables with variable_get() in block

Hello, This is my first try at this and I can't seem to get past this point. I'm writing a block and want to be able to display some values from selected checkboxes in its configuration. I am attempting to pass the variables to a template through a preprocess function and can't get it to work. Here's the applicable code:

In the hook_block_configure function:

	$form['display_type'] = array(
		'#type' => 'radios',
		'#options' => drupal_map_assoc(array(t('Random Entry Selection'), t('Fixed Selection'))),
		'#title' => t('Pick a Display Type'),
		);

In the hook_block_save function:

	variable_set('display_type',$edit[display_type]);

And in my preprocess function:

	$test = variable_get('display_type');
	$vars['tester'] = $test;

Thanks ahead of time for any help, I've been knocking my brain against this for awhile.

Also, lastly, here's the full module code that's creating the block in case my edit skipped important parts:

<?php

/**
* largepanel_block_info()
*/

function large_panel_block_info(){
$blocks['large_panel_block'] = array(
'info' => t('Large Panel'),
'cache' => -1,
);
return $blocks;
};

/**
* large_panel_block_configure()
*/

function large_panel_block_configure($delta){
$form = array();

CKeditor Tool As The Homepage?

Is it possible to have the CKeditor itself as the homepage, so users can write stuff like "help" and when they hit submit, it goes to whatever path I tell it too? Example, in General in the forums?

To further explain, when users click on forums, navigate to the proper link and write stuff, there's a message box that appears, now I want that message box on the front page and whatever people write on it, gets the content gets directed to General in the forums.

Is this possible?

Help creating a data entry form. I'm totally lost

Thanks for taking the time to read this.

I'm creating a new site and although a lot of what Drupal has to offer seems really straightforward and simple, I'm having some difficulty figuring out how to get started on some forms. One of the site's primary features is that any logged-in user can create various types of nodes that are then accessible for viewing. I thought that getting started on this would be a simple drag-and-drop affair like much of Drupal, but that doesn't seem to be the case.

Menu's Are Mind Boggling Help

I just start drupal, my first time using it. I have used other CMS in the past thought I'd give it ago. I like it a lot so wont to stick with it but the menu system is a complete minefield and totally confusing for a new comer. I have read around on this site to find help about them but can't find anything of use. After doing a google I found I'm not the only person who finds the drupal menu system nothing short of chaos, no one was able to give any answers.

Here is what I want to do: Have a top menu Home, Articles, Contact ect

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x