visual/view and visual/edit

Author Message

Eric Bourgain

Saturday 03 December 2005 8:45:35 am

Hi everybody,

I continue with my extension to let the user choose its own colors. The idea is that the "user" (ako webmaster) may want to add a folder at top, and I want to let him choose the look of its new subtree: colors, header image, etc...
To achieve this goal, I have added new attributes to the folder (and some other classes of my own, but let's say the folder) that can handle the colors and background of the various items that may appear. They are quite a lot. I have designed a way to define the color set of the site (I've another post open on it), and to select the colors either from this set, or to give a string. I can generate css files from these attributes. I have overriden the templates to deal with them, so that they are editable only when it is pertinent, etc.
Now, as they are a lot, I want to be able to deal with the colors from the "design" tab, not from the "contents" tab.
I have added a contentstructuremenu in the visual template for a start, that shows only the nodes that have design information.

<i>First problem</i>
But when I see them (view), I always fall back to the 'content' navigation part. That's not the case for the user navigation part, but I was unable to find how it was done.

<i>Second problem</i>
I have a specific template to show the nodes in the visual part. To be able to use it, I have to be able to detect that I am in this part. Although my url is /visual/view/id, I am unable to find a way to get this information. How can I get it?

<i>To follow</i>
I suppose that I will have similar problems when I will come to edit the objects.

But I would like not to copy the edit.php, nor the view.php files, for at least one reason: I'not sure of how to integrate them (it's kernel feature).
I was hoping to be able to deal with this with template override and parameters.
Is there a way to do this?

Has anybody any idea about this?
Thanx a lot

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.