Offset Links Not Working

Author Message

Alex Jones

Tuesday 24 August 2004 3:14:15 pm

I'm sure this has been answered before, but I cannot find anything via search. I am helping out with a site that I didn't set up, so I don't know what changes have been made that might have caused this problem, please be patient. :)

<b>Problem:</b> In the admin area, I am presented with the exact same set of results for every page when I click on a Next>> link. The offset is reflected in the URL, but the list of children does not change. Nothing shows up in debug mode, and the public-facing Web site doesn't have this pagination problem, so I'm sure it is a template or override setting somewhere, but I don't know where.

<b>System Info:</b>
eZ publish 3.4.1
PHP 4.34

A pointer in the right direction would be much appreciated!

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

kracker (the)

Tuesday 24 August 2004 10:25:50 pm

I've had this problem on several occasions before as well.

I experienced this breakdown with the Admin -> Set up -> Advanced -> Templates -> At the bottom the Template List ( Next ยป 1 2 3 4 5 6 7 ...43 )

Though I've never found a reasonable solution, I also would very much like to hear from others who have encountered this problem before and know just how they resolved the problem.

//kracker
The Way Of The Gun : The Setup

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

Alex Jones

Wednesday 25 August 2004 6:22:14 pm

Note, even if I type in the URL manually it doesn't work. For example, if I input the URL: https://mysite.com/PathToAdmin/content/view/full/87/(offset)/15 I am presented with the first fifteen options instead of the next group of items.

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Alex Jones

Wednesday 25 August 2004 6:54:10 pm

Hrrrrm, the problem appears to be due to the parentheses used in the URL, when I hit https://mysite.com/PathToAdmin/content/view/full/87/<b>offset</b>/15 I have no problems.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Alex Jones

Wednesday 25 August 2004 7:23:12 pm

To further answer my own question / ask another one... The issue appears to crop up depending on the value of <i>AllowUserVariables</i> under <i>[ControlSettings]</i> within template.ini. The standard tempalte <i>navigator/google.tpl</i> checks this ini setting and outputs a link format according to the value. If it is set to <i>true</i> then it includes parentheses in the URL, if set to false, they are left out:

offset_text=eq( ezini( 'ControlSettings', 'AllowUserVariables', 'template.ini' ), 'true' )|choose( '/offset/', '/(offset)/' )}

Is this how it is supposed to work? If so, how do we use offset while allowing user variables? If not, what other things could be causing this?

Thanks!

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

kracker (the)

Wednesday 25 August 2004 8:11:56 pm

Boy do I feel dumb,

Alex, (this is all way to familiar)
Only now do I remember replacing /(offset)/ with /offset/ the first time I solved this bug on the eZ Pub.

At the time it seemed like I had done something else wrong. cause . . .

After some searches and reading on ez.no it seemed that eZ systems had internationally switched from /offset/ to /(offset)/ on <b>purpose</b>.

Which I didn't understand, why the new style didn't work for me or why others didn't have the same problems . . . . so the debug session and results didn't stick / make it over into my long term memory.

So . . . Does anyone else care to comment on which style works for them?
Or . . . Possible reasons why the /(offset)/ style would not work?

//kracker

memento

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

kracker (the)

Wednesday 25 August 2004 8:43:41 pm

Well then . . .

Today I was able to place a template.ini.append.php file in the settings/override/ directory which seemed to change the offset link style used in /navigator/google.tpl

It was interesting to find that I could get this file to work if the template.ini.append.php file was in the /settings/override/ it didn't seem to work when the override was only in /settings/siteaccess/YourSiteDesign_admin/ or /settings/siteaccess/admin/ .

-kracker
Eminem : Tylenol

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

kracker (the)

Wednesday 25 August 2004 9:27:26 pm

Then I . . .

Realized that if I could not set the AllowUserVariables for just the admin site design (see above problem posts about the problem) the user site would also get /offset/ style as well which just so happens to break the user site...

Seems like the User site needs the /(offset)/ style and the Admin site needs the /offset/ style. Why can't they use the same style? Why would one style work but the other style would not?

So I avoided the problem by changing my full_folder.tpl's page_limit from 11 to 20 (override: /node/view/full.tpl) which I had planed to earlier anyway to make the site more readable (20 may be a bit large but then i'm avoiding the for mentioned problem with the offset links.

And I still don't quite understand why . .

//kracker

Ice Cube : You Can Do It

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

Alex Jones

Thursday 26 August 2004 6:30:22 am

Perhaps it is related to the use of nice URLs as well? I think there may be a correlation. So, for example, the parentheses are used if your URL is mysite.com/blog/(offset)/20 but wouldn't be used for mysite.com/PathToAdmin/content/view/full/87/offset/20

Thoughts?

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

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 30 2025 21:37:48
Script start
Timing: Jan 30 2025 21:37:48
Module start 'layout'
Timing: Jan 30 2025 21:37:48
Module start 'content'
Timing: Jan 30 2025 21:37:49
Module end 'content'
Timing: Jan 30 2025 21:37:49
Script end

Main resources:

Total runtime1.1155 sec
Peak memory usage8,192.0000 KB
Database Queries75

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.1250151.2109
Module start 'layout' 0.00510.0042 739.3359220.6719
Module start 'content' 0.00941.1052 960.00784,535.9297
Module end 'content' 1.11460.0009 5,495.937523.8672
Script end 1.1155  5,519.8047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.3380160.0002
Check MTime0.00130.1155160.0001
Mysql Total
Database connection0.00070.062910.0007
Mysqli_queries1.003689.9623750.0134
Looping result0.00070.0620730.0000
Template Total1.060495.120.5302
Template load0.00210.188120.0010
Template processing1.058394.869520.5292
Template load and register function0.00140.125610.0014
states
state_id_array0.00310.274310.0031
state_identifier_array0.00210.192720.0011
Override
Cache load0.00190.1663620.0000
Sytem overhead
Fetch class attribute can translate value0.00140.128320.0007
Fetch class attribute name0.00260.2320110.0002
XML
Image XML parsing0.00110.099020.0006
class_abstraction
Instantiating content class attribute0.00000.0039180.0000
General
dbfile0.00100.0894240.0000
String conversion0.00000.000740.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
9content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
15content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 41
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs