Coder Social home page Coder Social logo

vcard-generator's Introduction

#vCard generator

Info

Sterc Sander Drenth [email protected] v1.0

What is vCard generator? vCard generator is a script to generate a vCard (.vcf) file based on settings or template variables that makes it easy for visitors to add contacts to their contactlists on for example their mobile phone.

The following contactinformation is added to the vCard file: Name; Company name; Address; Fax number; Phone number; E-mail address; A company logo/photo.

Usage

Install: Simply place the file inside the /assets/snippets/ folder and create the client config settings which are specified below under requirements.

If you wish to use this script to get resource specific contact information you need to add the following (optional) template variables: photo; street; housenumber; zipcode; city; fax; phone; email.

The pagetitle is used to generate the name, the company names default is the context setting site_name.

Frontend usage: Simply call the file to download the vCard automatically. To retrieve resource specific contactinformation just add the resource ID inside the GET paramater id.

Requirements Clientconfig: Is being used to retrieve contact settings. The following client config keys are being used: vcard_logo; street; housenumber; zipcode; city; fax; phone; email_client. Note: Can also be used without the client config package, the $settings variables need to be adapted to use the system settings.

vcard-generator's People

Contributors

sdrenth avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.