Alias and removing foldernames from url

Author Message

Zinistry Vacana

Sunday 06 April 2003 7:48:57 am

Does anyone know how I can remove demo, user etc. (http://www.xxx.xx/demo/content/view...) from the url?

And how to get textbased url's? Didn't find this in the sdk

Jan Borsodi

Monday 07 April 2003 4:47:14 am

You'll have to use another siteaccess match method, the current one matches on the url. See settings/site.ini and the group SiteAccessSettings for more details, you could change the matching to host based and for instance match www.xxx.xx to demo site and admin.xxx.xx to admin site.

For textbased urls (I'm assuming you mean nice urls) you have to create custom templates for your design, you access the nice url with $node.url_alias.

--
Amos

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

Scot Wilcoxon

Tuesday 08 April 2003 12:59:20 pm

It's also a little more complex than it seems. The access such as "demo" can actually be inserted in generated URLs. Even with a configuration which hides "demo", some siteaccess methods create pages which have "demo" in the URLs for links within those pages.

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 04:59:09
Script start
Timing: Jan 18 2025 04:59:09
Module start 'layout'
Timing: Jan 18 2025 04:59:09
Module start 'content'
Timing: Jan 18 2025 04:59:10
Module end 'content'
Timing: Jan 18 2025 04:59:10
Script end

Main resources:

Total runtime0.7242 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.0313152.6406
Module start 'layout' 0.00520.0026 740.671939.4766
Module start 'content' 0.00780.7149 780.1484560.8359
Module end 'content' 0.72270.0015 1,340.98448.2969
Script end 0.7242  1,349.2813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4620160.0002
Check MTime0.00150.2073160.0001
Mysql Total
Database connection0.00070.091110.0007
Mysqli_queries0.679693.8361590.0115
Looping result0.00060.0769570.0000
Template Total0.688795.120.3443
Template load0.00220.309020.0011
Template processing0.686494.780920.3432
Template load and register function0.00020.024610.0002
states
state_id_array0.00090.117810.0009
state_identifier_array0.00190.259420.0009
Override
Cache load0.00180.2530110.0002
Sytem overhead
Fetch class attribute can translate value0.00050.069530.0002
Fetch class attribute name0.00120.166540.0003
XML
Image XML parsing0.00080.110930.0003
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00080.1130170.0000
String conversion0.00000.001040.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
3content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs