Transparent Redirection [Urgent]

Author Message

Masamune

Tuesday 24 May 2005 6:05:54 am

I'm trying to do an auto redirection, without the user feels about it.
The case is that I'm doing some logic on folders, if no description text exists to show in the center of the page, then it should redirect automatically to the first item the folder contains.
I read many solutions about Module.redirectTo and redirectOperator extension but none of them is really working, any simple solution can be used directly from within the template itself like some special operator or some kind of trick? thank u.

kracker (the)

Tuesday 24 May 2005 11:46:34 pm

Ok,

<b>Forum Etiquette</b>

First and foremost ... New users of these forums be warned. It is <i>rude</i> to label a forum topic as urgent and often will not help you any more than frustrate the people who could try to help you. When people get frustrated with an individual they tend to avoid interacting with them ...

It immediately implies that you are too impatient to one find answers yourself with hard work. Instead implying that you don't mind pressuring others with panicky threads and cries for help instead of pragmatic discussions tempered with patience (<i>and 10x more work on your side than the people who do reply to your messages</i>).

It can also imply that while you may in fact be in a rush to find answer you are not willing to pay for support services which would give you speedy solid answer to your <i>urgent</i> questions.

<b>Forum Topic Composition</b>

I've seen this same topic in two different threads now, trying so hard to get the attention of someone who can read your mind. In each of your threads you say "but none of them is really working ...".

Since these are the solutions the rest of us have created, use and rely on already. Why not point out just where these solutions each are not meeting your needs in avid detail.

1. What exactly are you doing? (paste, example code,to aid in explaining yourself in a more clear fashion)
2. What are you trying to accomplish
3. What is <i>not</i> occurring
4. What <i>is</i> occurring instead

<i>I can write in avid detail on the subjects which do and do not interest me ... Can You? You should ....</i>

//kracker
<i>head pe : pac bell</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Masamune

Tuesday 31 May 2005 1:47:38 am

Thanx anyway..

The fact is I read in many documents how to do auto redirection without the interaction of the user (don't need to let him submit on some buttons, like in login case,..).

It seems that the only solution is to use the <i>Module->redirectTo()</i> function, but still don't know where to call it, it doesn't work in any template, php code indeed, what I need is an operator that helps call for this function inside a template.

Maybe I should create an extension module that is specific for redirection and link it to a new redirection operator, any idea how the procedure should be...

I saw it in many php files of ezpublish, they're getting the current module with <i>$module= & $Params['Module']</i>, this is a way to pass the module to an extension i think, but how to deploy it.

My work is suspended till I find a solution for this problem, that's why urgent.. :)

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 19:20:26
Script start
Timing: Jan 18 2025 19:20:26
Module start 'layout'
Timing: Jan 18 2025 19:20:26
Module start 'content'
Timing: Jan 18 2025 19:20:27
Module end 'content'
Timing: Jan 18 2025 19:20:27
Script end

Main resources:

Total runtime0.7440 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 587.9141152.6250
Module start 'layout' 0.00500.0025 740.539139.4453
Module start 'content' 0.00760.7349 779.9844552.1406
Module end 'content' 0.74240.0015 1,332.125012.1563
Script end 0.7439  1,344.2813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.6011160.0003
Check MTime0.00150.1965160.0001
Mysql Total
Database connection0.00070.099310.0007
Mysqli_queries0.682791.7679570.0120
Looping result0.00060.0806550.0000
Template Total0.709895.420.3549
Template load0.00460.618820.0023
Template processing0.705294.791020.3526
Template load and register function0.00010.014010.0001
states
state_id_array0.00170.229710.0017
state_identifier_array0.00240.321720.0012
Override
Cache load0.00340.4587320.0001
Sytem overhead
Fetch class attribute can translate value0.00060.075320.0003
Fetch class attribute name0.00300.401150.0006
XML
Image XML parsing0.00110.150420.0006
class_abstraction
Instantiating content class attribute0.00000.002460.0000
General
dbfile0.00100.1333240.0000
String conversion0.00000.001140.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs