Share |
Blog Pro RSS

Adding External Controls

Author - Steve Ngapo (Contegro Front-end Developer)

Contegro,

6:53 PM Monday, December 01, 2008

"How do I put a form onto a page, such as Newsletter signup?"

Use the Enqiry Form Module. If you want to add a 3rd-party form, Contegro pages already use a form for functionality. Within a Custom Code module, you will need to close the current form, add your form code, and then open the form again. Like this:

</form>
<form> Your Form Code </form>
<form>

Contegro,

6:52 PM Thursday, November 18, 2010

Adding networking tools is easy in Contegro

Generate the code that you want from your networking site and then add the code into a Custom Code Module in your Contegro Website.
Get your code from:
FaceBook Plugins http://developers.facebook.com/plugins?footer=1
Twitter Widgets http://twitter.com/widgets
For example, the following code (generated from Facebook Plugins) will insert a Contegro Facebook "like" button:

<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Fcontegro&amp; layout=button_count&amp;show_faces=true&amp; width=250&amp; action=like&amp; font=arial&amp; colorscheme=light&amp; height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:21px;" allowTransparency="true"></iframe>

Contegro,

6:52 PM Sunday, March 13, 2011

Cufon font replacement for Heading tags in Contegro Sites

  1. To use Cufon font replacement, you need the TTF font file. For free fronts use a site like www.fontsquirrel.com, we’ll use “Marketing script” for this example (http://www.fontsquirrel.com/fonts/Marketing-Script)
  2. Click the “License” link and make sure it is ok to use this for a commercial site.
  3. Click the “Download TTF link” and download a zip file containing a .ttf file and the licence for this font
  4. Go to http://cufon.shoqolate.com/generate/ to generate the cufon script
    1. Click “Browse” for “Regular typeface” and upload the .ttf file
    2. Ignore the rest of the Browse buttons
    3. Enter “marketing-script” in “Use the following value as the font-family…”
    4. Tick to agree that the EULAs of the fonts allow embedding
    5. Tick to include Uppercase, Lowercase, Numerals, Punctuation and Basic Latin
    6. Keep everything else default
    7. Tick to acknowledge the terms
    8. Click “Let’s do this!”
      This will download a font such as “marketing-script_400.font.js”
  5. Download “cufon-yui.js” by clicking the “Download” link on the top left of http://cufon.shoqolate.com/generate/
  6. Copy both marketing-script_400.font.js and cufon-yui.js into the “\Resources\JavaScript\cufon-fonts\” folder in your Contegro environment 
  7. Open he Contegro Admin Console and create a new page with an h1 tag
  8. Add a Custom code module, and place it above the Content module
  9. Add the following into the Custom code module…
    1. <script src="/Resources/JavaScript/cufon-fonts/cufon-yui.js" type="text/javascript"></script>
      <script src="/Resources/JavaScript/cufon-fonts/marketing-script_400.font.js" type="text/javascript"></script>
      <script type="text/javascript">Cufon.replace('h1', { fontFamily: "marketing-script"});</script>
  10. The third line is saying to replace all h1 tags with our new font using the name we entered in 4:3 above

Post New Comment

Name *
Email *
Your email will not be published
Subscribe
Website
Comment *
Enter the code shown *
Share |
Forward To Friends
Print

Blog Categories

Category Topics
10
3

Popular pages

RSS Reader

RSS Reader

An essential module that utilises external sources to display up-to-date content. ...RSS Reader... More

Document Library

Document Library

Ensuring customers find the right document, clear categorisation is the top priority with searching... More

Blog

Blog

An interactive tool for online discussion. Inspire. Comment. Reflect. ...Website Blog Module... More