Setting a default sub-node for a node to select

Author Message

Philipp Simon

Sunday 18 June 2006 3:00:37 am

Hi all,

just have a problem and can't find anything. But this should be done already:

My menu:

Home (root)
- Home (link)
- Service (folder)
- - Service 1 (article)
- - Service 2 (article)
- - Service 3 (article)

In the top navigation I have Home and Service. Clicking on Service should directly load the first sub-item, so Service 1. (So no own content) Unfortunately I don't find any config in the admin panel. Is there any INI setting for this?

Thanks a lot!

Phil

Philipp Simon

Tuesday 20 June 2006 2:00:40 am

Has nobody done this before? Please, give me a hint.

Phil

Hakim Bouras

Tuesday 20 June 2006 2:33:01 am

URL Translation might be an easy solution if it is only for your top navigation.

You can set it from the admin interface, in the setup panel.

Hakim

Philipp Simon

Tuesday 20 June 2006 1:54:55 pm

I already tried this, but this means to overwrite the default alias, which seems to be not working. I tried:

folder alias: /service
my url translation try: /service -> /service/service1

Is it possible to give own alias a higher priority than ezPublish default owns?

Phil

Philipp Simon

Wednesday 21 June 2006 1:16:14 am

Ok after taking a look at the ezPublish internals, I changed:

ORDER BY forward_to_id ASC

to

ORDER BY forward_to_id DESC

. So redirects will be preferred to internal links. Is this the right way to go?

Phil

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 31 2025 01:14:28
Script start
Timing: Jan 31 2025 01:14:28
Module start 'layout'
Timing: Jan 31 2025 01:14:28
Module start 'content'
Timing: Jan 31 2025 01:14:28
Module end 'content'
Timing: Jan 31 2025 01:14:28
Script end

Main resources:

Total runtime0.0260 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 588.2578151.2266
Module start 'layout' 0.00690.0044 739.4844220.7188
Module start 'content' 0.01120.0130 960.2031997.9297
Module end 'content' 0.02430.0017 1,958.132833.9922
Script end 0.0259  1,992.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002911.2355140.0002
Check MTime0.00124.5884140.0001
Mysql Total
Database connection0.00093.385510.0009
Mysqli_queries0.004417.123230.0015
Looping result0.00000.050510.0000
Template Total0.00124.510.0012
Template load0.00103.781310.0010
Template processing0.00020.674010.0002
Override
Cache load0.00072.803410.0007
General
dbfile0.00124.769380.0002
String conversion0.00000.124040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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