Forums / Developer / Transparent Redirection [Urgent]

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.. :)

eZ debug

Timing: Jan 18 2025 21:09:39
Script start
Timing: Jan 18 2025 21:09:39
Module start 'content'
Timing: Jan 18 2025 21:09:39
Module end 'content'
Timing: Jan 18 2025 21:09:39
Script end

Main resources:

Total runtime0.2577 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 587.7109180.8359
Module start 'content' 0.00760.0123 768.546997.8828
Module end 'content' 0.02000.2377 866.4297526.2969
Script end 0.2577  1,392.7266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00401.5447200.0002
Check MTime0.00140.5564200.0001
Mysql Total
Database connection0.00080.297210.0008
Mysqli_queries0.193174.92261410.0014
Looping result0.00220.86161390.0000
Template Total0.236891.910.2368
Template load0.00080.298810.0008
Template processing0.236091.585710.2360
Override
Cache load0.00050.190110.0005
Sytem overhead
Fetch class attribute can translate value0.00170.659210.0017
XML
Image XML parsing0.00030.118410.0003
General
dbfile0.00220.8462200.0001
String conversion0.00000.002230.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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