keyword

Summary

Fetches a array of keywords and node objects contain keywords start with specified pattern.

Usage

fetch( 'content',  'keyword',  hash( 'alphabet', alphabet,
					[ classid, classid,]
					[ 'limit', limit, ]
					[ 'offset', offset,] ) )

Parameters

NameTypeDescriptionRequired
alphabet string The keyword/letter(s) used for fetching. Yes.
classid integer class ID. No.
offset integer start at this position in the returned result. No.
limit integer fetch maximum this number of nodes. No.

Returns

A array of keyword and object nodes which used this keyword.

Description

Fetches a array of keywords and node objects contain keywords start with specified pattern. Parameter alphabet could be letter, letters, parts of a word or word. The fetch result could be filtered by class ID. The returned array contains:

  • keyword - the keyword
  • link_object - node object which has this keyword

This function is added in Exponential 3.3.1.

Examples

Fetch all keywords start with 'a' and all articles ( class ID 2) which use these keywords.

{let keyword_list=fetch( 'content',

                                  'keyword',

                                  hash( alphabet, "a", 

                                           classid, 2 ) ) }

 

{section var=KeywordList loop=$keyword_list}

{$KeywordList.keyword}:

<a href={concat("content/view/full/",$KeywordList.link_object.node_id)|ezurl}>

{$KeywordList.link_object.name}</a>

{/section}

{/let}

Comments

Contents

Reference

Database diagram
Template operators
Template functions
Data fetching
    Class
    Content
       access
       bookmarks
       can_instantiate_class_list
       can_instantiate_classes
       class
       class_attribute
       class_attribute_list
       collected_info_collection
       collected_info_count
       collected_info_count_list
       contentobject_attributes
       draft_count
       draft_version_list
       keyword
       keyword_count
       list
       list_count
       locale_list
       navigation_parts
       node
       non_translation_list
       object
       object_by_attribute
       object_count_by_user_id
       pending_count
       pending_list
       recent
       same_classattribute_node
       search
       section_list
       tipafriend_top_list
       translation_list
       trash_count
       trash_object_list
       tree
       tree_count
       version
       version_count
       version_list
       view_top_list
    Collaboration
    Layout
    Notification
    Package
    Section
    Shop
    URL
    User
Modules
XML tags


Created

06/02/2004
1:06:52 pm
by Balazs Halasy

Last updated

12/02/2004
2:10:51 pm
by Wenyue Yu

Authors

Balazs Halasy
Wenyue Yu



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.