Forums / Setup & design / HowTo: Edit an add/edit template

HowTo: Edit an add/edit template

Author Message

Shurbann Martes

Sunday 26 October 2003 7:25:16 am

Hello,

I'm accostumed right now with the editing of the content/view templates. Now I want to be able to edit the template that is used when I add or edit a new object.

For example I want to let the visitors to comment on the articles. Right now when I click on add comment I see the "default" edit template. How can I change this?

Should I use the override.ini just like i do when changing the "view" templates?
Thnx.

Shurbann

Shurbann Martes

Monday 27 October 2003 5:53:12 am

Maybe I wasn't clear enough.
I want the template engine to load instead of the default:
design/standard/templates/content/edit.tpl

this one for exapmle:
design/my_design/override/templates/my_edit.tpl

How can I accomplish this?
I Hope you can help me.

Shurbann

Paul Forsyth

Monday 27 October 2003 6:27:21 am

Yes, you should use the override ini file.

Read this documentation to see how to do this:

http://ez.no/developer/ez_publish_3/documentation/customization/custom_design/override_templates

paul

Shurbann Martes

Monday 27 October 2003 6:54:45 am

I'm doing this, but still it's not working.
This is the override.ini

[edit_comment]
Source=content/edit.tpl
MatchFile=edit_comment.tpl
Subdir=templates
Match[class]=27

I cleared everything using the clearcache.sh script

Shurbann

Paul Forsyth

Monday 27 October 2003 7:09:01 am

does:

http://<your-admin-site>/setup/templateview/content/edit.tpl

inform you that your override is in place?

also, take a look at the file permissions of your new template. the server may not be able to read it.

paul

Shurbann Martes

Monday 27 October 2003 7:50:27 am

There was no templates override assigned to content/edit.tpl. Very strange, because the chmod of the files are all 644 so it should be readable by the server.

But ok now I'm clicking on Create New. I give it the correct name, class etc.. but when I click on Create I'm not seeing no form field, where I can enter something for the newly created template.

Shurbann

eZ debug

Timing: Jan 31 2025 04:12:35
Script start
Timing: Jan 31 2025 04:12:35
Module start 'content'
Timing: Jan 31 2025 04:12:35
Module end 'content'
Timing: Jan 31 2025 04:12:35
Script end

Main resources:

Total runtime0.2470 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0083 587.9453180.8359
Module start 'content' 0.00830.0066 768.781397.7734
Module end 'content' 0.01490.2321 866.5547526.3281
Script end 0.2470  1,392.8828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00351.4235200.0002
Check MTime0.00140.5859200.0001
Mysql Total
Database connection0.00070.287010.0007
Mysqli_queries0.200281.02681410.0014
Looping result0.00100.41191390.0000
Template Total0.231793.810.2317
Template load0.00110.429110.0011
Template processing0.230693.363110.2306
Override
Cache load0.00060.257510.0006
Sytem overhead
Fetch class attribute can translate value0.00080.326310.0008
XML
Image XML parsing0.00030.120210.0003
General
dbfile0.00903.6319200.0004
String conversion0.00000.002330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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