{"id":29570267,"url":"https://github.com/blynx/textformatterfunkyfunctions","last_synced_at":"2026-02-05T20:02:55.051Z","repository":{"id":85134169,"uuid":"108046658","full_name":"blynx/TextformatterFunkyFunctions","owner":"blynx","description":"Textformatter to create custom tags. Inspired by TextformatterHannaCode.","archived":false,"fork":false,"pushed_at":"2017-11-15T20:37:34.000Z","size":11,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-19T05:32:40.771Z","etag":null,"topics":["processwire","processwire-modules","textformatter"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blynx.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-10-23T22:20:04.000Z","updated_at":"2024-10-22T10:51:16.000Z","dependencies_parsed_at":"2023-03-06T21:45:13.398Z","dependency_job_id":null,"html_url":"https://github.com/blynx/TextformatterFunkyFunctions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/blynx/TextformatterFunkyFunctions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blynx%2FTextformatterFunkyFunctions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blynx%2FTextformatterFunkyFunctions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blynx%2FTextformatterFunkyFunctions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blynx%2FTextformatterFunkyFunctions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blynx","download_url":"https://codeload.github.com/blynx/TextformatterFunkyFunctions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blynx%2FTextformatterFunkyFunctions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29132538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T19:36:52.185Z","status":"ssl_error","status_checked_at":"2026-02-05T19:35:40.941Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["processwire","processwire-modules","textformatter"],"created_at":"2025-07-19T02:36:58.178Z","updated_at":"2026-02-05T20:02:55.038Z","avatar_url":"https://github.com/blynx.png","language":null,"readme":"# TextformatterFunkyFunctions\n\nTextformatter which is inspired by the TextformatterHannaCode module.\n\nAllows you to add tags (“Funky Functions”) to your text fields which will be replaced by markup. The markup will be generated from script files either from a configurable path below `site/` or from the `site/templates/fields/` folder. In contrast to TextformatterHannaCode it does not come with a backend code editor interface. All scripts must be available as files in the mentioned paths.\n\nOther characteristic are:\n\n- That it allows to directly pull data from fields on the same page\n- It allows to select items from array-like data by given ranges and/or indexes: `images=1,3,6-9,12`\n- It allows to select items from WireData derived data by given selector: `images=\"description*=nice\"`\n- It allows to pull data from another page field into a tag attribute: `[[nice-script field=\"selector\"]]`\n- It will render available scripts in `templates/fields/` automatically as fallback and provide the value as `$value`\n- It will search for scripts in this order similar to `$page-\u003erender()`\n    1. `$givenPath/$funkyName/$pageTemplateName.php`\n    2. `$givenPath/$funkyName.$pageTemplateName.php`\n    3. `$givenPath/$pageTemplateName/$funkyName.php`\n    4. `$givenPath/$funkyName.php`\n- It is hookable to override rendering with own engine stuff\n\nIt is not (yet?) in the modules directory. Thus, I don't provide any support, but you can report bugs and errors anyway. That would be nice :)\n\n## Examples\n\n```\n[[nice-gallery images=1,2,3,6- type=special-kind]]\n```\nThis will render the script `nice-gallery.php` with the variables `$images` and `$type`.  \nValue of `$type` will be `\"special-kind\"`, value of `$images` will be items 1, 2, 3 and all the rest from item 6 up to the end of the images field of that name of the page.\nA variable `$arguments` is also provided with all “arguments”/variables bundled.\n\n```\n[[hero-image pictures=\"description*=nice\"]]\n```\nThis will render the script `hero-image.php` from the detected scripts folder and pull the image its description contains \"nice\".\n\n```\n[[images=\"description*=nice\"]]\n```\nThis will render the script `images.php` from the detected scripts folder and pull all images which have the \"nice\" in their description from images field.\n\n\n## Installation\n\n[The Processwire way.](http://modules.processwire.com/install-uninstall/)\n\nThen, add this Textformatter in the details tab of the desired Textfield.\n\n## Changelog\n\n#### 1.2.0 - 2017/11/13, fixes\n\nadded: Also matches field references inside unquoted attribute values.  \nfix: Fetch correct values if attribute name and attriute values field reference are the same (Always fetch value field reference).  \n\n#### 1.1.0 - 2017/11/3, added render function\n\nadded: A render function.\n\n#### 1.0.1 - 2017/10/31, fixed bug in regex\n\nfixed: Greedy bug in regex.\n\n#### 1.0 - 2017/10/30, refactoring, added ability to filter by processwie selectors, pull data from\n\nadded: Ability to filter field values by processwire selectors  \nadded: Ability to pull data from page fields into attributes  \nother: Refactoring\n\n#### 0.x - 2017/10/23, Initial release","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblynx%2Ftextformatterfunkyfunctions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblynx%2Ftextformatterfunkyfunctions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblynx%2Ftextformatterfunkyfunctions/lists"}