[3.3.0-2] Virtual url doesn't work

Author Message

Mark Overduin

Wednesday 24 December 2003 3:50:24 am

Hi,

I was just playing around with ezPublish 3.3.0-2. I installed the corporate 'site' in the install.
Now, I saw the URL Translator. The way I see it, you just have to enter a 'System URL' (in my case: corporate/content/view/full/124) and a 'Virtual URL' (in my case: bottom).
I stored it, but there's no way I can access it. I tried:
- http://www.mydomain.com/index.php/bottom
- http://www.mydomain.com/index.php/corporate/bottom
- http://www.mydomain.com/bottom (which of course didn't work)

What do I do wrong here? (or is it a know bug or something?)

-- Mark

Balazs Halasy

Wednesday 24 December 2003 4:30:56 am

Hmm, strange..

Take a look at the ezurlalias table in the database, does it actually contain the values that you entered? You could do something like this:

SELECT source_url, destination_url from ezurlalias;
(don't remember the exact names.. the example above might be incorrect)

Balazs

K259

Wednesday 24 December 2003 4:32:19 am

Maybe you have to clear the cache first? Haven't tried it, but maybe...

Mark Overduin

Wednesday 24 December 2003 5:21:06 am

Removed the cache. Didn't work. Here's what did:

I searched the database (select * from ezurlalias) and saw that 'content/view/full/xx/' is normally used, instead of 'corporate/content/view/full/xx/'.
If I remove 'corporate', it works fine. But that's weird. When I go to 'www.mydomain.com/index.php/corporate/content/view/full/xx/' it works great, but it doesn't work at all if I try to use it with a virtual URL...

I know how to use it now, but I would like to know why it doesn't work the way I thought it would work. Will this be changed in the future? Not that it is necessary, but I just think it should work.

-- Mark

Balazs Halasy

Wednesday 24 December 2003 7:34:37 am

So, you got it working, eh? Great! :-)

You don't have to include the name of the siteaccess ( in this case "corporate" ) when setting up the virtual URL. Actually, I don't think that you can (because of how the system is designed and how it actually works). Sorry, I didn't see the "corporate" part when I was reading your first post. The "index.php" and the "corporate" part of the URL is usually not shown (take a look at the URLs of a pro eZ publish site). However, they are shown in your installation because you probably chose the default access mode when you set up eZ publish. There are other ways to set it up. I suggest that you check out the following links:

http://ez.no/developer/ez_publish_3/documentation/ez_publish_basics/ez_publish_urls

and

http://ez.no/developer/ez_publish_3/documentation/configuration/configuration/site_access

The bottom line is that you can't include the name of the siteaccess when using the URL translator.

Balazs

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

Main resources:

Total runtime1.1216 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 587.9453152.6250
Module start 'layout' 0.00740.0029 740.570339.4453
Module start 'content' 0.01031.1097 780.0156564.5938
Module end 'content' 1.12000.0016 1,344.609412.1563
Script end 1.1215  1,356.7656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2959160.0002
Check MTime0.00120.1033160.0001
Mysql Total
Database connection0.00130.115310.0013
Mysqli_queries1.063194.7860650.0164
Looping result0.00060.0549630.0000
Template Total1.082996.620.5415
Template load0.00200.174020.0010
Template processing1.081096.379820.5405
Template load and register function0.00020.016910.0002
states
state_id_array0.00060.053010.0006
state_identifier_array0.00400.352320.0020
Override
Cache load0.00160.1391360.0000
Sytem overhead
Fetch class attribute can translate value0.00060.053130.0002
Fetch class attribute name0.00210.186860.0003
XML
Image XML parsing0.00110.097430.0004
class_abstraction
Instantiating content class attribute0.00000.001570.0000
General
dbfile0.00110.1019160.0001
String conversion0.00000.000840.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs