Editing
Sorting Listings
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Littledamien configuration === `/_classes/site_content/cache_class.php` Add include directives for both the parent page’s content and content filter classes: <syntaxhighlight lang="php"> require_once (APP_CLASS_DIR."site_content/press_class.php"); require_once (APP_CLASS_DIR."site_filters/press_filters_class.php"); </syntaxhighlight> Update the set_filters() routine to include the filter class representing the page’s content type. `/_classes/site_content/cache_class.php` Potentially no changes need to be made to this class on a content-type-by-content-type basis as long as the default action for all content types is <syntaxhighlight lang="php"> if ($this->filters instanceof filters_collection_class) { $this->filters->parse_filters(); $this->filters->page_len->value = null; /* get all available records */ } </syntaxhighlight> If some other action needs to be taken for a specific content type then a new case would need to be created in the retrieve_section_properties() routine. Paging is handled with <syntaxhighlight lang="php"> include (COMMON_TEMPLATE_DIR."framework/navigation/listings_page_links.php"); </syntaxhighlight>
Summary:
Please note that all contributions to Littledamien Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Littledamien Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information