standalone files, e.g. search forms

Author Message

Rinze Cats

Friday 23 April 2004 3:01:53 am

Hiya,

I was wondering what the correct method is for implementing files which don't need an actual class. If I have for instance a page in the same layout as the rest of my site, that shows a search form, or sitemap, or email form ( pages that need no input from the site editor). how can I get the standard pagelayout template call the sitemap functionality?

to clarify: my search page should look the same as an article page. An article page would use an article object and associated template to show the article. My sitemap should just use a template, without the object.

can't be to hard, just looking for the best way to do it. I could, ofcourse, copy the page template and add the sitemap functionality, but this can't be te way to go!

thanx in advance!

Eirik Alfstad Johansen

Friday 23 April 2004 3:17:20 am

Hi Rinze,

Not sure if I understand what you're trying to do? If you need to display the sitemap as a part of your site design, why not just use content/view/sitemap/2 for the desired siteaccess?

Sincerely,

Eirik Johansen
http://www.netmaking.no/

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Rinze Cats

Friday 23 April 2004 3:31:59 am

hi and thanx for the quick reply. I guess my problem is best described as follows..

where do I put the template code which I can find in content/view/sitemap/2?

Let's say i create my own sitemap.tpl using this code, what do I assign the template to ?

Eirik Alfstad Johansen

Friday 23 April 2004 3:44:26 am

Hi Rinze,

A quick 'n' dirty solution would be to create a new object of any class and then make a node-specific override template. Another, approach is to create an extension with a separate view. It depends on your needs.

Sincerely,

Eirik Johansen
http://www.netmaking.no/

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Rinze Cats

Friday 23 April 2004 3:55:03 am

is there no standard solution for this. It isn't anything strange what I am trying to do here is it?

let's take a search form for instance. the website should present a search form.
There is no class I need to use so a site editor could create a search form instance.

I create a folder named seach form and in this folder I want to 'create' the form, which consists of only template code.

Your quick and dirty sollution occured to me as well. I could create a class with no fields fos instance, and put my code in a template for this class. However, a standard sollution must be at hand. everybody has these funcitonalities in their sites!

Rinze Cats

Friday 23 April 2004 3:56:42 am

btw, I'm not sure on how to implement the extension sollution you are suggesting, but I can tell you my needs are very basic ;-)

Dominik Pich

Friday 23 April 2004 5:56:15 pm

For many occasions there is only a view... only a template. No contentobject.
e.g. for searches, for the basket, for the sitemap.......

Just use that view. modify it to your needs

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 19 2025 09:57:54
Script start
Timing: Jan 19 2025 09:57:54
Module start 'layout'
Timing: Jan 19 2025 09:57:54
Module start 'content'
Timing: Jan 19 2025 09:57:55
Module end 'content'
Timing: Jan 19 2025 09:57:55
Script end

Main resources:

Total runtime1.2093 sec
Peak memory usage4,096.0000 KB
Database Queries71

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 589.1641152.6250
Module start 'layout' 0.00520.0023 741.789139.4609
Module start 'content' 0.00751.2000 781.2500609.8516
Module end 'content' 1.20750.0018 1,391.101616.1563
Script end 1.2093  1,407.2578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2706160.0002
Check MTime0.00130.1075160.0001
Mysql Total
Database connection0.00070.061810.0007
Mysqli_queries1.146294.7814710.0161
Looping result0.00070.0569690.0000
Template Total1.177097.320.5885
Template load0.00200.162520.0010
Template processing1.175097.167320.5875
Template load and register function0.00010.009210.0001
states
state_id_array0.00110.090610.0011
state_identifier_array0.00140.119420.0007
Override
Cache load0.00170.1393380.0000
Sytem overhead
Fetch class attribute can translate value0.00050.044130.0002
Fetch class attribute name0.00110.094580.0001
XML
Image XML parsing0.00240.199530.0008
class_abstraction
Instantiating content class attribute0.00000.001690.0000
General
dbfile0.00370.3066160.0002
String conversion0.00000.000540.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
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/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: 25
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs