Forums / General / Offset Links Not Working

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>

eZ debug

Timing: Jan 18 2025 05:02:31
Script start
Timing: Jan 18 2025 05:02:31
Module start 'content'
Timing: Jan 18 2025 05:02:32
Module end 'content'
Timing: Jan 18 2025 05:02:32
Script end

Main resources:

Total runtime1.0259 sec
Peak memory usage4,096.0000 KB
Database Queries212

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 587.6875180.8438
Module start 'content' 0.00580.8986 768.5313629.5469
Module end 'content' 0.90450.1214 1,398.0781345.0859
Script end 1.0259  1,743.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00460.4445210.0002
Check MTime0.00170.1663210.0001
Mysql Total
Database connection0.00060.058710.0006
Mysqli_queries0.932990.93022120.0044
Looping result0.00190.18652100.0000
Template Total0.997997.320.4990
Template load0.00310.301920.0015
Template processing0.994896.969320.4974
Template load and register function0.00010.010510.0001
states
state_id_array0.00080.074310.0008
state_identifier_array0.00070.068320.0004
Override
Cache load0.00240.2317620.0000
Sytem overhead
Fetch class attribute can translate value0.00130.131530.0004
Fetch class attribute name0.00150.1481110.0001
XML
Image XML parsing0.00140.133930.0005
class_abstraction
Instantiating content class attribute0.00000.0033180.0000
General
dbfile0.00610.5992350.0002
String conversion0.00000.000530.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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