How to add a custom parameter to links in OE whose value is choosed from a list

Author Message

marc marc

Wednesday 27 October 2010 2:41:21 am

hello community,

i really have a problem trying to add a new parameter to links in the Online Editor.

Adding a new parameter works fine, i just added it in content.ini.append.php like this:

[link]
CustomAttributes[]=my_parameter

but the value of 'my_parameter' should be choosed from a list like for example the 'href' parameter which value can be 'eznode','ezobject','http','mail',etc.

how can i add these values to my new parameter?

i'm looking for it for 2 days and tried many solutions, nothing worked, thanks in advance for any hints.

Heath

Wednesday 27 October 2010 6:42:48 am

Hello marc,

You could try creating a template override for this template, extension/ezoe/design/standard/templates/ezoe/customattributes/link.tpl

But that's untested I'm not sure if that will really work for you

Cheers,

Heath

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

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 29 2025 14:44:49
Script start
Timing: Jan 29 2025 14:44:49
Module start 'layout'
Timing: Jan 29 2025 14:44:49
Module start 'content'
Timing: Jan 29 2025 14:44:49
Module end 'content'
Timing: Jan 29 2025 14:44:49
Script end

Main resources:

Total runtime0.0194 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.6250151.2734
Module start 'layout' 0.00610.0038 739.898436.7344
Module start 'content' 0.00990.0077 776.632890.2656
Module end 'content' 0.01760.0017 866.898429.9766
Script end 0.0193  896.8750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002713.7504140.0002
Check MTime0.00126.2851140.0001
Mysql Total
Database connection0.00084.088310.0008
Mysqli_queries0.004221.658730.0014
Looping result0.00000.108310.0000
Template Total0.00115.910.0011
Template load0.00094.634710.0009
Template processing0.00021.239310.0002
Override
Cache load0.00063.298210.0006
General
dbfile0.002311.775180.0003
String conversion0.00000.035740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs