I merged domain_menu to domain_conf.

junphine - June 22, 2008 - 06:10
Project:Domain Access
Version:6.x-2.0-rc5
Component:- Domain Conf
Category:feature request
Priority:normal
Assigned:Unassigned
Status:patch (to be ported)
Description

I merged domain_menu to domain_conf, so user can change menu settting for affliates domain. Note, the domain_conf schema has changed to:

$schema['domain_conf'] = array(
'fields' => array(
'domain_id' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
'settings' => array('type' => 'blob', 'not null' => FALSE),
'menu_settings' => array('type' => 'blob', 'not null' => FALSE)),
'primary key' => array('domain_id'),
);

AttachmentSize
domain_conf.zip14.17 KB

#1

agentrickard - June 22, 2008 - 14:19
Category:support request» feature request

Can you file a proper patch?

#2

agentrickard - June 22, 2008 - 14:21
Status:needs review» needs work

Please format your code according to Drupal conventions.

#3

bforchhammer - June 25, 2008 - 14:50

Thanks, code works.

A minor thing: "resetting" the settings at the moment will also reset the menu settings - is that the behaviour we would like to have?

Attached patch file is a patch against rc3 with some minor changes. (junphine: I hope you don't mind :))

AttachmentSize
domainmenu.patch 8.71 KB

#4

bforchhammer - June 28, 2008 - 11:58
Status:needs work» needs review

forgot to change the status..

#5

agentrickard - November 5, 2008 - 18:06

Can someone tell me why the attached patch is not sufficient for this feature?

AttachmentSize
domain_menu_conf.patch 1.66 KB

#6

agentrickard - November 5, 2008 - 18:59

Second version adds a null option.

AttachmentSize
domain_menu_conf_2.patch 1.73 KB

#7

agentrickard - November 6, 2008 - 15:31
Version:6.x-1.0-rc3» 6.x-2.0-rc4
Status:needs review» fixed

Patch from #6 has been committed. If we need more advanced functionality, lets open a new issue.

#8

najibx - November 11, 2008 - 11:18
Status:fixed» needs review

Patch #6 only providing a form to select :
Primary links menu:
Secondary links menu:

but patch #3 has not been committed, thus this functionality is not functioning. Why half way?

#9

agentrickard - November 11, 2008 - 15:12

All the original Domain Menu module did, AFAIK, was allow changing primary and secondary links.

I don't really like the patch in #3. Adding a menu_settings column to Domain Conf strikes me as the wrong way to go.

#10

aaron1234nz - November 21, 2008 - 20:02
Version:6.x-2.0-rc4» 6.x-2.0-rc5

The Domain Menu module also allowed you to restrict the menu items on the node add/edit pages. I have written a patch against the domain_conf module to add this feature. see http://drupal.org/node/202179#comment-1120065

#11

agentrickard - November 21, 2008 - 20:42

Understood. Is it possible to do this without adding a column to the {domain_conf} table?

#12

aaron1234nz - November 21, 2008 - 23:45

Yes, it just adds a setting just just like the rest of the settings in domain_conf

#13

aaront - December 31, 2008 - 23:22

The patch in #3 (used in RC5) does not apply the chosen domain-specific menu items to the corresponding block version of that menu. If enabled, the block uses menu items from the Primary Links or Secondary Links menu rather than the specified domain-specific menu. Is this intentional? I expected both appearances of the menu to display the same menu items.

#14

agentrickard - January 1, 2009 - 17:45

The patch in #3 will not be committed. We are debating how to implement its functionality into the patch that has been committed. (From #6.)

#15

aaront - January 1, 2009 - 21:37

Sorry, I meant to say the patch in 6 rather than 3. (6 is included in rc5). Works well other than the blocks problem I mentioned. I need primary links to be a block -- suppose I could accomplish the same thing in a different way using domain blocks once it matures. Thanks for your work on both!

#16

agentrickard - January 1, 2009 - 22:09

I see. Will take a look, as that is not intended behavior.

#17

agentrickard - January 1, 2009 - 22:41

It looks like you will have to use Domain Blocks, the code used to load the menu block is different from that used to load the primary (and secondary) links. In the former case, it uses the name of the menu. In the latter case, it uses a configurable variable, which is what we manipulate.

Theoretically, we could create our own blocks to counter this problem (see the attached patch).

AttachmentSize
primary-links-block.patch 1.68 KB

#18

agentrickard - January 4, 2009 - 17:49
Status:needs review» patch (to be ported)

#17 has been committed. As has the attached, which adds a 'default_menu' for the node form.

I am still skeptical of the menu restrictions patch, which I think may cause weird issues if a node was created on one site and edited on another. That functionality (patch at http://drupal.org/node/202179#comment-1120065) may need a separate module.

I am going to mark this as 'fixed' and let people open a new issue to request different features.

AttachmentSize
default_node_menu.patch 1.08 KB

#19

aaront - January 5, 2009 - 16:47

The patch in 17 works great! Thanks very much for adding this; I think it is essential.

 
 

Drupal is a registered trademark of Dries Buytaert.