Extensions and conflicting designs

Author Message

Christian Johansen

Wednesday 23 May 2007 5:43:38 am

Hi,

I'm trying to create an extension that is primarily a design extension. It is a design for the user site, not the admin. First I had to move the override.ini file from the extension to the user siteaccess directory, which was a huge disappointment since this means my extension is no longer centralized in one place. But I had to in order to avoid the templates being overridden in the admin as well.

Now I'm having trouble with the open editor. I've allowed simple front end editing in my custom design. I have also tweaked the move function, and thus the browse.tpl template. When using the OE to create a link now, the browse part is crippled because of the browse.tpl template I created an override for the move function.

Aaaah! I'm kinda frustrated because I don't know how to create an extension that only affects the user site, but not the admin site, and not the editor in the user site. Is it at all possible? I tried to active the OE extension before mine, but that didn't work.

Xavier Dutoit

Wednesday 23 May 2007 6:37:54 am

Why are you using an extension for storing design templates ? why don't you use design/xxx instead ?

X+

http://www.sydesy.com

Christian Johansen

Wednesday 23 May 2007 6:47:07 am

Well, I'm going to use the exact same setup over and over, so I wanted to make it easy to drop it into a new installation. Anyway, won't I face the same trouble with conflicting content/browse for frontend editing and OE node browsing anyway?

Heath

Wednesday 23 May 2007 9:56:22 am

Hello,

It sure sounds like you want to enable the extension for only one siteaccess.

[ExtensionSettings]
ActiveAccessExtensions[]=ezfoobar

Re: <i>http://ez.no/doc/ez_publish/technical_manual/3_8/installation/extensions/activating_the_extension</i>

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Wednesday 23 May 2007 10:01:32 am

Don't listen to people who push you away from building solutions within extensions, they are confused and lost. Extensions are the way to go for designs, we call these design extensions. Only the <i>madd</i> want to customize a stock eZ build but not use extensions. Don't give in ...

Kristof Coomans

Wednesday 23 May 2007 11:04:36 am

Please be gentle for each other, unnamed one. I don't know Xavier as someone who's being confused and lost.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Bruce Morrison

Wednesday 23 May 2007 4:11:52 pm

Hi Xavier

For multilingual sites by having the design in an extension allows for the translation file to stored as part of the extension and contain translations specific to that design. If the design is under the design/xxx directory the translatons get added to the main translation file. This
can be an issue if you run multiple sites off the one ez instalation and quite unweildy.

I'm going to experiement with designs in extensions a bit more, I believe it's probably a better (or at least cleaner) way of handling things.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Xavier Dutoit

Wednesday 23 May 2007 10:14:46 pm

Hi Bruce,

I use extension as well for the translation (and I'm always annoyed that I can't do it from the design ;)

Why I usually do is to put the design into the design and create symlinks in the settings where it needs to be (eg between override.ini.append...).

As for me pushing away people from extension, I was asking why Christian wanted to do it, not stopping him to put whatever wherever he wants.

I never wrote one shouldn't use extension, and if you use the ones from the contrib section or projects.ez.no , you might have encounter some I shared... of course, doesn't mean I'm not confused and lost, but that's a different issue altogether ;)

X+

http://www.sydesy.com

Christian Johansen

Thursday 24 May 2007 10:44:53 pm

Thank you all for your input.

I still have the following problem

Browse for nodes when moving nodes: I want my own content/browse.tpl to be used
Browse for nodes in the editor when linking to other nodes: I don't want my own content/browse.tpl to be used.

I use the editor for simple frontend editing, so they're in the same siteaccess. Is there a way around this problem?

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

eZ debug

Timing: Jan 18 2025 11:37:44
Script start
Timing: Jan 18 2025 11:37:44
Module start 'layout'
Timing: Jan 18 2025 11:37:44
Module start 'content'
Timing: Jan 18 2025 11:37:45
Module end 'content'
Timing: Jan 18 2025 11:37:45
Script end

Main resources:

Total runtime0.6375 sec
Peak memory usage4,096.0000 KB
Database Queries83

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.1719152.6406
Module start 'layout' 0.00550.0029 741.812539.4766
Module start 'content' 0.00840.6273 781.2891772.0391
Module end 'content' 0.63570.0017 1,553.328120.1406
Script end 0.6374  1,573.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5397160.0002
Check MTime0.00160.2452160.0001
Mysql Total
Database connection0.00090.138310.0009
Mysqli_queries0.561288.0302830.0068
Looping result0.00090.1364810.0000
Template Total0.609895.720.3049
Template load0.00210.327120.0010
Template processing0.607795.329820.3039
Template load and register function0.00010.022910.0001
states
state_id_array0.00090.144210.0009
state_identifier_array0.00080.131520.0004
Override
Cache load0.00180.2854470.0000
Sytem overhead
Fetch class attribute can translate value0.00070.113360.0001
Fetch class attribute name0.00170.2597140.0001
XML
Image XML parsing0.00270.416860.0004
class_abstraction
Instantiating content class attribute0.00000.0042150.0000
General
dbfile0.00140.2169400.0000
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 34
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs