This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Book module "weights" not working when promoted to frontpage

If you make 2 (or more if you want to) different books and have their top-level pages to be promoted on frontpage, then book weight option does not work on frontpage - it will be sorted always according to title on frontpage. Or am I missing something ?

nodewords for 4.7????

anyone got nodewords working for 4.7????

tried the latest cvs version but would not work. if i go to admin->settings->nodewords i get an error

views module: user friendly creation of views with previous/next navigation control

I have a couple of questions regarding the views module.

I want my client to be able to create menu entries through the views module.
Each view menu entry will represent a taxonomy term in my main vocabulary. What I really want the client to create is
not views, but new taxonomy terms.
In more detail, I'm developing an ecommerce and my vocab is 'Product Categories' with terms 'fruit & veggies',
'groceries', etc. etc..

Accessing these the product categories menus/views the effect will be to display a certain number of products/nodes
in the main content. The number of nodes is configured within the view related to that product category and
there will conditionally be previous/next navigation links at the bottom of the content.

I've tried using the taxonomy_menu module as well but.. is there anyway of getting that previous/next navigation
with it provided I need to render a certain number of product/nodes per content page?
Are there any other modules with which I could obtain this result?

The main problem is that I dont want my client to access the ?q=admin/views to create a new view but what I really want
him to do is to 'create a new product category' which will automatically create a corresponding view.
This will benefit of being able to get that previous/next navigation which I really require.

I thought that a solution could be implementing a new module which, using the views and views_ui modules, displays

What is wrong with this mysql statement?

I'm scratching my head over this... Especially as it works perfectly? I can't work out what might be causing the error(s)?

Anyways, here's the code:

<?php
/**
* Creates the table with adminitrating links for operations.
*/
function tablemanager_admin($tid, $list_length = 10000000) {
if (!$tid) {
return 'Invalid Table ID';
}
$sql = "SELECT tmd.id, tm.tid, tm.header, tmd.tid, tmd.data FROM {tablemanager_data} tmd INNER JOIN {tablemanager} tm ON tm.tid = tmd.tid WHERE tmd.tid = '$tid'";
$fetch = pager_query($sql, $list_length);
// fooled 'pager' into thinking we're using Drupals own calls, but we can't because of serialized data
// write the real query over the top of the pager one so we load $rows with ALL results
$fetch = db_query($sql);
$rows = array();
while ($result = db_fetch_object($fetch)) {
if (!$header) {
$header = unserialize($result->header);
array_push($header, array('data' => t('Operations'), 'colspan' => '2'));
}
$data = unserialize($result->data);
array_push($data, l(t('edit'), 'admin/tablemanager/edit/'.$result->id), l(t('delete'), 'admin/tablemanager/delete/'.$result->id));
$rows[] = array ( 'data' => $data);
}
if (!$header) {
$result = db_fetch_object(db_query("SELECT tm.tid, tm.header FROM {tablemanager} tm WHERE tm.tid = '$tid'"));

Bookreview Module

Apologies if this is the wrong forum.

I have installed the bookreview module and am in the process of changing the style. I am editing the bookreview.css file.

My question is, how can I edit the gray background color as seen in the photo below:

http://img147.imageshack.us/img147/6238/screen31pd.jpg

Where is this color coming from, it doesnt seem to be defined in bookreview.css

Thank you.

Add administer section

Hi all. I have created my module but I have problem with create the administation section.

I have these functions:


/**
* Implementation of hook_perm().
*/
function zbnews_perm() {
return array('create zbnews', 'edit own zbnews','administer zbnews');
}

/**
* Implementation of hook_access().
*/
function zbnews_access($op, $node) {
global $user;

if ($op == 'create') {
return user_access('create zbnews');
}

/*
if ($op == 'update' || $op == 'delete') {
if ((user_access('edit own zbnews') && ($user->uid == $node->uid)) || user_access('administer zbnews')) {
return TRUE;
}
}
*/
}

function zbnews_menu($may_cache) {
$items = array();

if ($may_cache) {
$items[] = array('path' => 'node/add/zbnews', 'title' => t('Aggiungi una notizia'),
'access' => user_access('create zbnews'));
}

$items[] = array(
'path' => 'zbnews/goto',
'title' => t('Pagina di redirect'),
'callback' => 'zbnews_goto',
'type' => MENU_CALLBACK,
'callback arguments' => $node ,
'access' => user_access('create zbnews'));

if (arg(0) == 'node' && is_numeric(arg(1))) {
$node = node_load(arg(1));
if ($node->nid) {
$items[] = array('path' => 'node/'. arg(1) .'/edit', 'title' => t('edit'),
'callback' => 'zbnews_form',
'access' => node_access('administer zbnews', $node),

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions