Forums / Developer / standalone files, e.g. search forms

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

eZ debug

Timing: Jan 19 2025 07:03:37
Script start
Timing: Jan 19 2025 07:03:37
Module start 'content'
Timing: Jan 19 2025 07:03:37
Module end 'content'
Timing: Jan 19 2025 07:03:37
Script end

Main resources:

Total runtime0.3600 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.0092 588.9766180.8281
Module start 'content' 0.00920.0080 769.804797.8828
Module end 'content' 0.01720.3427 867.6875526.5469
Script end 0.3599  1,394.2344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00391.0908200.0002
Check MTime0.00140.3929200.0001
Mysql Total
Database connection0.00140.398310.0014
Mysqli_queries0.299483.18511410.0021
Looping result0.00160.45331390.0000
Template Total0.342395.110.3423
Template load0.00090.240610.0009
Template processing0.341594.853310.3415
Override
Cache load0.00060.163910.0006
Sytem overhead
Fetch class attribute can translate value0.00120.336710.0012
XML
Image XML parsing0.00030.094210.0003
General
dbfile0.00832.3058200.0004
String conversion0.00000.001730.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