# TYPO3 Extension 'stratis_vhs'

Stratis VHS brings additional viewhelpers

## Requirements

- TYPO3 9.5.x

## Description
* Content/Flexform
  * Render defined content element (if match several, takes the one with the lowest uid) located in the defined page and returns an array of settings.
  For example - `{s:content.flexform(pageUid:10, CType:'stratisaccount_connectionmenuheaderwidg')}`
* Content/Render
  * Render one or more content elements located in the defined page, with the defined FCE file, in the defined extension
* Db/Records
  * Fetch dB records
* Extension/Config
  * Get specific extension configuration
* Files/LastModification
  * Display the last modification time of a defined file (timestamp format)
* Files/Zip
  * Generate a zip file that contains (fal) medias
* Format/ElapsedTime
  * Show time (in seconde, minute, hour or day) between 2 dates (int)
* Format/Gmdate or Gmstrftime
  * Convert timestamp in date using php gmdate or gmstrftime
* Format/Phone
  * Remove these characters " .-/()", based on ext:vhs EliminateViewHelper
* Format/StringLength
  * Get string length, using strlen php function
* Format\Svg
  * Fill and convert SVG to png if necessary libraries are installed
* Iterator/ArraysMerge
  * Merge arrays and convert query results to arrays
* Iterator/Flatten
  * transform a 2 dimensions array in a simple 1 dimension array
* Iterator/Sort
  * The same as v:iterator.sort, but sorting based on indexes (keys) instead of values
* Link/Page or Link/Typolink
  * The same as f:link.page/typolink, but define L=0 if target page has no translation
* Media/VideoId
  * Retrieve video id from Youtube, Vimeo, Dailymotion urls
* Resource/Records
  * Get a record fields using the model
* Resource/Record
  * Extend vhs:resource.record without error processing on missed field
* Resource/CustomRecords
  * Fetch a list of domain models by table / uid identifiers (ex: tx_news_domain_model_news_15)
* Uri/Page or Uri/Typolink
  * The same as f:uri.page/typolink, but define L=0 if target page has no translation
* Uri/Param
  * Get params in URL
* User/Record
  * Get array of values from the current authenticated FE user DB record
* User/Object
  * Get object entity from the current authenticated FE user DB record by object type
* Widget/Paginate
  * The same as f:widget.paginate, but can use array
* Widget/PrevNext
  * Show a prev/next menu in news single view, based on the News repository
* Widget/GlossaryPrevNext
  * Show a prev/next menu in glossary single view, based on the dpn_glossary repository
* L
  * The same as v:l that extends f:translate, but with stratisSite as default extension
* Menu
  * Return parameters to construct menus
* NewsEventsDates
  * Return an array of all months and/or years that contain an event
* PageHasTranslation
  * Check if current page has translation
* RenderViewHelper
  * The same as f:render, but allows for template overrides in Configuration section for FCE
* SiteRootConstant
  * Retrieves a value of a constant defined in the website root TypoScript template
* SVG
  * Render the content of a svg file, and allow to add attribute and <desc> tag into <svg> tag
* Tsconfig
  * Get a Tsconfig value of defined page
* WebVideoThumbnail
  * Get a thumb from Youtube, Vimeo or Dailymotion
* GlobalVariable
  * Set global variable by path
  * Get global variable by path