rejetto forum

New template in the works.

TSG · 39 · 29065

0 Members and 1 Guest are viewing this topic.

Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2068
    • View Profile
TSG

put this in your template

{{?recursive=}}&{{?rev=}}&{{?search=}}&{{?filter=}}&{{?files-filter=}}&{{?folders-filter=}}

if you put nothing in your url you obtain 1&1&1&1&1&1

this work in URL  with all symbol you use





Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
i'm not sure what you mean by detecting "?search="
what's wrong with "{{?search}}"  ?


Offline TSG

  • Moderator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
For an error page, I need to detect if a search returned no results so i can change 'No Files or Folders' to 'Search returned no results...' for example. I also need to grab the searched query and show it in the search field so the user knows what they searched for last.

Also i have no idea what ur talking about mars.

EDIT: dw we figured it out, now to make it work for filters.
« Last Edit: January 04, 2008, 01:08:53 PM by That_Stevens_Guy »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
{{if|{{?search}}{{?filter}}{{?files-filter}}{{?folders-filter}}| Search returned no results | No files or folders }}


Offline TSG

  • Moderator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
WOAH u made the same as me!

{{if|{{?search}}{{?filter}}{{?files-filter}}{{?folders-filter}}|Your search for <i>{{?search}}{{?filter}}{{?files-filter}}{{?folders-filter}}</i> returned no results.|No Files or Folders}}

only problem is showing the value for the files and folder filters cause of the extra data and i'll have to cut the string.
« Last Edit: January 04, 2008, 01:38:37 PM by That_Stevens_Guy »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
remember you can do
{{set|x|{{?search}}{{?filter}}{{?files-filter}}{{?folders-filter}}}}
{{if|{{^x}}|Your search for <i>{{^x}}</i> returned no results.|No Files or Folders}}

Anyway, make an example of your string problem and i will help you.


Offline TSG

  • Moderator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
my solution,

value="{{$search-data}}"

[search-data]
{{?search}}
{{cut|2|-1|
   {{?filter}}
   {{if not|{{ {{?files-filter}}=\ }}| {{?files-filter}} }}
   {{if not|{{ {{?folders-filter}}=\ }}| {{?folders-filter}} }}
}}


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
try {{?files-filter = \ }}
instead of {{ {{?files-filter}}=\ }}
it should work.

if you use {{set}} instead of sections, you can take things nearby.


Offline TSG

  • Moderator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
Ye, the simple search form is a long way from the [files] section so i used a section.

Ye it works rejetto, i think this template is ready for a public beta... once i read through it again lol.

http://61.68.214.92:5252/That%20Stevens%20Guy's%20Template%20Resources/Test%20Area/

test away while my dyn ip holds up lol.

RELEASED
This topic has been moved to:
http://www.rejetto.com/forum/index.php?topic=5456.0
« Last Edit: January 04, 2008, 03:56:02 PM by That_Stevens_Guy »