Closed Bug 140781 Opened 23 years ago Closed 23 years ago

There should be a %querylist% macro for the parameters

Categories

(Bugzilla :: User Interface, defect)

2.15
PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: thomas+mozilla, Assigned: myk)

References

Details

Attachments

(2 files)

Right now, the list of saved queries is from GetCommandMenu, but sometimes when designing pages, you want the Queries to show up in one place, and the CommandMenu in another spot (if you want that template at all). I've attached the diff against -current that I've used to greate a GetQueryList with a %querylist% macro for our own internal use. GetCommandMenu() calls this to generate it's output.
Summary: There should be a GetQueryList for the templates → There should be a %querylist% macro for the parameters
Keywords: patch, review
The Right Thing to do here is templatise GetCommandMenu, which I'm doing over in bug 140435. This will fix this problem, allowing you to do exactly what you like, where you like. Gerv
Depends on: 140435
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
OK. Now that bug 140435 is in, you can get the list of stored queries in any template as user.queries, which is a list of hashes. Each hash has members name, query and linkinfooter. So, you can have a list of stored queries wherever you like :-) Gerv
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: