Results 1 to 3 of 3

Thread: Retrieving custom field in list and reader

  1. #1
    User
    Join Date
    03-04-10.
    Posts
    52

    Default Retrieving custom field in list and reader

    Me again, and apologies for posting so much...

    How can I retrieve an attribute I have defined, and output it in my customized versions of iso_list_default.tpl and iso_reader_default.tpl? I presume the queries have to be amended - where do I find them? Or am I better off using a different FE module?

    I will also want to show a fixed number random products from a limited range of categories on the home page, but I know there is a post which deals with random selection of products, so I'll look at that before pursuing that any further.

    Thanks yet again

    Tom

  2. #2
    User winanscreative's Avatar
    Join Date
    06-21-09.
    Location
    Massachusetts, United States
    Posts
    261

    Default Re: Retrieving custom field in list and reader

    Hi Tom... You can access any custom attributes in the template with the following syntax:

    $this->raw['myfieldname']

    Hope that helps!

  3. #3
    User
    Join Date
    03-04-10.
    Posts
    52

    Default Re: Retrieving custom field in list and reader

    I shall use this immediately. Thanks, as ever, for the prompt help.

    Tom

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •