Deprecated arguments and variables
nav_first.pngFirst: thread:381
Personal Sandbox Template
Edited: 10 Oct 2016 04:24 by: Joshua Darby
Comments: 0
Tags:
nav_prev.pngPrevious: thread:53
career-template.wikidot.com
Edited: 22 Sep 2009 11:35 by: RobElliott
Comments: 4
Tags:
Last: thread:8
forum-template.wikidot.com (using installer)
Edited: 25 Aug 2009 07:21 by: leiger
Comments: 3
Tags:
nav_last.png
Next: thread:48
Need for a new template status?
Edited: 15 Sep 2009 19:08 by: (user deleted)
Comments: 6
Tags:
nav_next.png

Ed JohnsonEd Johnson wrote on 19 Sep 2009 06:56

I was working on the photo gallery template to edit the deprecated variables and ran into a problem. I'm using Erich's nifty sortable page list, but the page that sets up the URL parameters doesn't work right because of the space in between the sort order cirteria and "desc". I tried replacing the spaces with %20, but still no joy. Here's the before and after of the page that's broken. I have reverted it back for now until this can be solved.

The page with the issue
http://photo-gallery-template.wikidot.com/include:list-pages-prepend

Current working code (this is all one long line)

[[table]][[row]][[cell style="{$styleT}"]]//Gallery//[[/cell]][[cell style="{$styleA}"]]//Created by//[[/cell]][[cell style="{$styleE}"]]//Last Edited//[[/cell]][[cell style="{$styleC}"]]//Date Created//[[/cell]][[cell style="{$styleR}"]]//Rating//[[/cell]][[/row]][[row]][[cell style="{$styleT}"]][[size 80%]][/{$page}/order/titleAsc#A_{$anchor} ascending]/[/{$page}/order/titleDesc#A_{$anchor} descending][[/size]][[/cell]][[cell style="{$styleA}"]][[size 80%]] [[/size]][[/cell]][[cell style="{$styleE}"]][[size 80%]][/{$page}/order/dateEditedDesc#A_{$anchor} newest first]/[/{$page}/order/dateEditedAsc#A_{$anchor} oldest first][[/size]][[/cell]][[cell style="{$styleC}"]][[size 80%]][/{$page}/order/dateCreatedDesc#A_{$anchor} newest first]/[/{$page}/order/dateCreatedAsc#A_{$anchor} oldest first][[/size]][[/cell]][[cell style="{$styleR}"]][[size 80%]][/{$page}/order/ratingDesc#A_{$anchor} ▼]/[/{$page}/order/ratingAsc#A_{$anchor} ▲][[/size]][[/cell]][[/row]]

Attempt to replace deprecated arguments and variables

[[table]][[row]][[cell style="{$styleT}"]]//Gallery//[[/cell]][[cell style="{$styleA}"]]//Created by//[[/cell]][[cell style="{$styleE}"]]//Last Edited//[[/cell]][[cell style="{$styleC}"]]//Date Created//[[/cell]][[cell style="{$styleR}"]]//Rating//[[/cell]][[/row]][[row]][[cell style="{$styleT}"]][[size 80%]][/{$page}/order/title#A_{$anchor} ascending]/[/{$page}/order/title%20desc#A_{$anchor} descending][[/size]][[/cell]][[cell style="{$styleA}"]][[size 80%]] [[/size]][[/cell]][[cell style="{$styleE}"]][[size 80%]][/{$page}/order/updated_at%20desc#A_{$anchor} newest first]/[/{$page}/order/updated_at#A_{$anchor} oldest first][[/size]][[/cell]][[cell style="{$styleC}"]][[size 80%]][/{$page}/order/created_at%20desc#A_{$anchor} newest first]/[/{$page}/order/created_at#A_{$anchor} oldest first][[/size]][[/cell]][[cell style="{$styleR}"]][[size 80%]][/{$page}/order/rating%20desc#A_{$anchor} ▼]/[/{$page}/order/rating#A_{$anchor} ▲][[/size]][[/cell]][[/row]]

I'm going to PM the brains behind this code to see if he can help.

-Ed


Start a new sub-thread

Comments: 14

Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License