Hi - This doesn't seem to override the default upload settings in panels... Is there a way we can get it to do this?

Thanks,
Leo

Comments

iva2k’s picture

Status: Active » Postponed (maintainer needs more info)

I am not using default upload settings in panels. Please post step-by-step instructions to reproduce the problem.

iva2k’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Please reopen with step-by-step instructions how to reproduce.

offthehook’s picture

Status: Closed (cannot reproduce) » Active

I'm re-opening this because I'd like Itweak to work in Panels, and in the manner I am using panels it does not.

I have a Panels Page overriding the the Node template. There are several panes in the panel where I add various bits of node content in order to construct the complete node layout.

Here's how I am adding Attachments:

In the respective pane, click on "Add content".
Click on "Node"
Click on "Attached files"
Update and save the Panel Page.

Nodes display as they should but ignore all Itweak settings, i.e. we are just getting the original Attachments display. I'm unable to see where and how this can be overridden, as all Content Types and File Upload settings are set to display an Itweak layout.

However, if you add node content into Panels as a complete node (including ticking the Extras" option then Itweak settings are applied.

iva2k’s picture

Just to let you know, I will not have any bandwidth to work on 6.x stuff, sorry. It gets harder and harder to carve out some Drupal time. I will review and commit patches.

From your description it sounds like iTweak Upload custom theme itweak_upload_upload_attachments() (overide of theme_upload_attachments) is not invoked, which is either due to panels not calling standard themes, or having its own override for some reason. iTweak Upload needs to be the earliest within all modules for its magic to work, but it makes other modules overriding the same theme to take over (so I think).
I would start by checking if panels override this theme (can be done using one of devel modules or by code inspection), then if its the case see if it can be disabled or reordered.

If panels create a completely different view without invoking standard drupal hooks, it may be tough luck (or panels patch needed).

iva2k’s picture

Status: Active » Postponed