No problem.  It's attached.  My format is pretty terse, so I'm not sure
how helpful it is.

++t

On Mon, 16 Jul 2001, Stuart Johnston wrote:

> Tony Payne wrote:
> 
> > This isn't the best written tutorial, nor is it 100% inclusive or 100%
> > correct.  However, it worked well for me when introducing Template-Toolkit
> > as part of our site generation process.  
> 
> 
> I'd say that's a pretty good introductory tutorial but it's not really 
> what I need.  I think my question was probably not very clear.
> 
> 
> So, for example, my script uses a template file called editprofile.html 
> which is passed the variables, uid, first, last and email.  The webpage 
> it generates should then return to the script with the variable 
> process=updateprofile plus the new values for the variables passed to 
> it.  And of course there is a whole list of these so I need a consise 
> way of describing them.
> 
> Does that make any sense?  Tony, it looks like maybe you define this in 
> data_api.html.  Obviously I don't want you to give away any trade 
> secrets or anything like that but maybe you could just share the format 
> that you use.
> 
> 
> Thanks,
> Stuart Johnston
> 
> 
> _______________________________________________
> templates mailing list
> [EMAIL PROTECTED]
> http://www.template-toolkit.org/mailman/listinfo/templates
> 

Tony Payne  :  Sr. Software Engineer  :  PETsMART.com  :  626-817-7151
Title: Sitegen Data API

Sitegen Data API

article
Field/MethodNameType
Farticle_idnumber
Fheadlinestring
Fheadline_utstring (uppercase, trimmed)
Fshort_titlestring
Fshort_title_utstring (uppercase, trimmed)
Fabstractstring
Fkeywordsstring
Fteaserstring
Fteaser_utstring (uppercase, trimmed)
Fbodystring
Freview_statusstring
Fimage_pathstring
Fthumbnail_image_pathstring
Fteaser_image_pathstring
Fchg_tsstring (date)
Fcrt_tsstring (date)
Fnotesstring
Fcopyrightstring
Fauthorstring
Fauthor_utstring (uppercase, trimmed)
Fsourcestring
Fsource_utstring (uppercase, trimmed)
Ftemplate_idnumber
Ftemplatetemplate object
Flink_to_flgstring (T or F)
Fstart_datestring (date)
Fend_datestring (date)
Fauthor_biostring
Fphoto_creditsstring
Fobject_typestring (always = 'ARTICLE')
Flayoutlayout object
Fdefault_sectionsection object
Fassociated_sectionslist of section objects
Fassigned_sectionslist of section objects
Fsection_templatesassociative list
  key: section id, value: template objects
Furlstring
Mget_layout(layout_group)list of layout-element objects
Mget_row_layout(layout_group)list of layout-element objects
Mget_template(section)template object
Msection_url(section)string


product
Field/MethodNameType
Fproduct_idnumber
Fproduct_namestring
Fdescriptionstring
Fsequence_numbernumber
Fimage_pathstring
Fthumb_image_pathstring
Flarge_image_pathstring
Fuser_edit_flgstring (T or F)
Fship_chargenumber (price)
Fdisplay_variant_product_idnumber
Fvariant_descriptionstring
Fdisplay_flgstring (T or F)
Finventory_behaviorstring
Fdisplay_notestring
Fdisplay_link_flgstring (T or F)
Fbrandstring
Fvendorstring
Fphx_codestring
Fzoom_descriptionstring
Fpricenumber (price)
Fmaster_product_idnumber
Fcrt_tsstring (date)
Fchg_tsstring (date)
Fsearch_keywordsstring
Ftaxnumber (price)
Ft_product_namestring
Frx_flgstring (T or F)
Fproduct_typestring (M or V -- or R)
Fvariant_1string
Fvariant_2string
Fvariant_3string
Fweight_lbsnumber
Fweight_fee_flgstring (T or F)
Fwidth_inchesnumber
Fheight_inchesnumber
Fdepth_inchesnumber
Fgift_wrap_flgstring (T or F)
Fpersonalize_flgstring (T or F)
Fmultipackstring
Fupc_codestring
Fmerch_cat_idstring
Fpetm_sap_skustring
Fmfg_style_numstring
Fcatalog_codestring
Ftemplate_idnumber
Fmissing_image_flgstring (T or F)
Fpf_sequence_numbernumber
Fdrop_down_ordernumber
Fvariant_category1string
Fvariant_category2string
Fvariant_category3string
Fdfs_chg_tsstring (date)
Fproduct_name_utstring (uppercase, trimmes)
Fdisplay_namestring (name and variant_* -- full name)
Fsf_display_flgstring (T or F)
Foptionsstring (variant_*)
Finv_on_handnumber
Finv_allocatednumber
Fobject_typestring (always = 'PRODUCT')
Flayoutlayout object
Ftemplatetemplate object
Frxboolean (1 = rx, 0 = not rx)
Fmaster_productproduct object
Fdefault_sectionsection object
Fassociated_sectionslist of section objects
Fassigned_sectionslist of section objects
Fsection_templatesassociative list
keys: section_id, values: template objects
Fdisplayboolean
Fcross_sellslist of product objects
Fglobal_urlstring
Fvariantsvariant object
Fpf_variantsvariant object
Fprices_forwardprices-forward object
Fhas_tiersboolean
Mget_template(section)template object
Msection_url(section)string
Mget_layout(layout_group)list of layout-element objects
Mget_row_layout(layout_group)list of layout-element objects


section
Field/MethodNameType
Fsection_idnumber
Fparent_idnumber
Fsection_titlestring
Fsection_descriptionstring
Fsequence_numbernumber
Fsection_pathstring
Fdir_pathstring
Ficon_pathstring
Fdisplay_pawspectives_flgstring (T or F)
Fdisplay_marketing_tile_flgstring (T or F)
Fbackground_imagestring
Fcart_dirstring
Fright_well_colorstring
Fneed_product_flgstring (T or F)
Fneed_article_flgstring (T or F)
Fneed_subsection_flgstring (T or F)
Fkeep_on_site_flgstring (T or F)
Fkeep_on_site_notestring
Fshow_navigation_flgstring (T or F)
Ftemplate_idnumber
Fstart_datestring (date)
Fend_datestring (date)
Flink_to_flgstring (T or F)
Fcrt_tsstring (date)
Fchg_tsstring (date)
Fdfs_chg_tsstring (date)
Fheader_filenamestring
Ffooter_filenamestring
Fobject_typestring (always = 'SECTION')
Ftemplatetemplate object
Fnamestring (section_title, lowercased, with _ for all non-alphanumerics)
Ftop_level_section_idnumber
Ftop_level_sectionsection object
Fcategory_section_idnumber
Fcategory_sectionsection object
Fdisplay_pawspectivesboolean
Fdisplay_marketing_tileboolean
Fassociated_productslist of product objects
Fproduct_positionsassociative list
  keys: product_id, values: indexes
Fassociated_articleslist of article objects
Farticle_positionsassociateive list
  keys: article_id, values: indexes
Flayoutlayout object
Fsubsectionslist of section objects
Furlstring
Fparentsection object
Fbackgroundstring
Fsearch_box_filestring
Fshow_navigationboolean
Mget_prev_and_next(product)two product objects, both possibly null
Mindex_of(product)number. -1 if product is not assigned
Mprev_product(product)product object (undefined if not exists or first product)
Mnext_product(product)product object (undefined if not exists or last product)
Mnum_productsnumber (number of assigned products)
Mis_psearchboolean (true if no subsections)
Mget_headerstring
Mget_footerstring
Mproduct_link(product)string
Mget_products(index, count)list of product objects
  index default is 0, count default is 20
Mget_articles(index, count)list of article objects
  index default is 0, count default is 20
Mget_layout(layout_group)list of layout-element objects
Mget_row_layout(layout_group)list of layout-element objects
Mget_recursive_layout(layout_group)list of layout-element objects
unfilled positions in the layout are inherited from higher up the section tree.
Mget_url(index, items_per_page)string


template
Field/MethodNameType
Ftemplate_idnumber
Ftemplate_filenamestring
Ftemplate_namestring
Ftemplate_typestring
Fcrt_tsstring (date)
Fchg_tsstring (date)
Fobject_typestring (always = 'TEMPLATE')
Merrorstring (null if no error)
Mprocess(vars, op)(do not use directly)


layout
Field/MethodNameType
Ftypestring (do not use directly)
Fidnumber (do not use directly)
Fgroupslist of layout-group objects (do not use directly)
Mget_group(group_name)layout-group object
Mgroup_nameslist of strings


layout-group
Field/MethodNameType
Fnamestring
Fmax_elementsnumber
null = no limit or template-imposed limit
F_elements(do not use directly)
Madd_element(do not use directly)
Melementslist of layout-element objects
list will not contain more than max_elements items
sizenumber (total number of elements, irrespective of max_elements)


layout-element
Field/MethodNameType
Fobject_typestring (INCLUDE, ARTICLE, PRODUCT, etc.)
Fobject_namestring (for INCLUDE or IMAGE: filepath)
Fobject_article_idnumber
Fobject_section_idnumber
Fobject_product_idnumber
Farticlearticle object (null unless object_type=ARTICLE)
Fsectionsection object (null unless ojbect_type=SECTION)
Fproductproduct object (null unless object_type=PRODUCT)
Flayout_ordnumber


prices-forward
Field/MethodNameType
Fpricenumber (price)
Fmaster_productproduct object
Fvariant_descriptionstring
Fcart_typestring ('addview' or 'view')
Fpf_productproduct object (null unless type='addview')


variant
Field/MethodNameType
Fmaster_productproduct object
Fsequenceslist of variant-sequence objects
Fvariantslist of product objects
Fsequence_name(do not use directly)
Mget_sequence(index)variant-sequence object
Mnum_sequencesnumber
Mget_variant(index)product object
Mnum_variantsnumber


variant-sequence
Field/MethodNameType
Fmaster_productproduct object
Fproductslist of product objects
Findexnumber
Ftierstier-set object
Mnum_prooductsnumber
Mget_products(index)product object
Madd_product(product)(do not use directly)
Mhas_tiersboolean
Mproduct_namestring
Mpricenumber (price)


tier-set
Field/MethodNameType
Ftierslist of tier-price objects
Fvariant_sequencevariant-sequence object
Mcountnumber
Mget_tiers(count_per_line)list of list of tier-price objects
each sub-list has count_per_line entries


tier-price
Field/MethodNameType
Fqtynumber
Fpricenumber (price)
Fprc_offnumber (percentage)


Reply via email to