URL - 2 questions

Author Message

Zinistry Vacana

Saturday 05 April 2003 11:42:47 am

*I have installed a folder after the default Start folder. This folder is called Mainpage and shall be the first page.

*I've entered the /content/view/full/xx in the site.ini.append.php (override) so that the domain registered goes to the Mainpage, but then I get the Start-page first in the url. How can I set that the site shall drop the first Start page and begin from Mainpage?

*I just get the possibility to come to the page through the /content/view/full/<object-id>, but why can't I juse the title of the pages? How do I implement so my visitors can use the text-based url's insted of using the object-id number?

Jan Borsodi

Tuesday 08 April 2003 2:18:43 am

1:
Currently the path is controlled by the content/view php code. A crude solution is to detect if content/view is used and then skip the first entry in the path array.

2:
You have to modify the templates to fetch the path names, use {$node.url_alias} for this.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

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 05:22:17
Script start
Timing: Jan 18 2025 05:22:17
Module start 'layout'
Timing: Jan 18 2025 05:22:17
Module start 'content'
Timing: Jan 18 2025 05:22:18
Module end 'content'
Timing: Jan 18 2025 05:22:18
Script end

Main resources:

Total runtime1.1031 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 588.9219152.6094
Module start 'layout' 0.00650.0037 741.531339.4297
Module start 'content' 0.01021.0912 780.9609520.4063
Module end 'content' 1.10140.0017 1,301.36728.1875
Script end 1.1031  1,309.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3056160.0002
Check MTime0.00130.1176160.0001
Mysql Total
Database connection0.00100.086110.0010
Mysqli_queries1.060396.1185540.0196
Looping result0.00070.0654520.0000
Template Total1.062496.320.5312
Template load0.00190.168420.0009
Template processing1.060696.139120.5303
Template load and register function0.00020.017210.0002
states
state_id_array0.00160.143010.0016
state_identifier_array0.00190.168020.0009
Override
Cache load0.00150.1383120.0001
Sytem overhead
Fetch class attribute can translate value0.00050.047720.0003
Fetch class attribute name0.00160.147230.0005
XML
Image XML parsing0.00070.060020.0003
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00070.0627170.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/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: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs