Logo MediaEventi
Edocs - Advanced usage

Bypass the default root path

Sometimes it can happens that you need to embed a document that don't resides in a subfolder inside the default root folder (example: the default root folder is "images/stories/ and the document to embed is in the folder [root]/templates). To bypass the default root folder, just add a trailing slash "/" to the document path into your article.

Example:

if the default root folder is "images/stories" and you use the default code:

{edocs}path/document.pdf,200,300{/edocs}

the final path will be http://www.yoursite.com/images/stories/path/document.pdf.

Instead, if you use this code:

{edocs}/templates/mytemplate/document.pdf,200,300{/edocs} (note the starting trailing slash)

the final path will be http://www.yoursite.com/templates/mytemplate/document.pdf



External documents

If you need to embed external documents (from external sites), just write the full address of the document (remember to include http://...).

Example:

{edocs}http://infolab.stanford.edu/pub/papers/google.pdf,600,300{/edocs}





Styling embedded documents

Each document embedded with Edocs is inserted in a div. If you need more control over each embedded document, you can use the class "edocs_viewer" inside your CSS.

If you need more control, over a single embedded document, you can set an ID into the container div of the embedded document. To do that, add the ID name as the fourht parameter.

The code is:

{edocs}my_documents/pdf/catalogue.pdf,300,200,link,my_div_id{/edocs}

Where my_div_id is your custom id for this specific embedded document.

If you don't need the download link, just insert the ID but don't forget the empty comma:

{edocs}my_documents/pdf/catalogue.pdf,300,200,,my_div_id{/edocs} !Please, pay attention to the empty comma!
 

Your are currently browsing this site with Internet Explorer 6 (IE6).

Your current web browser must be updated to version 7 of Internet Explorer (IE7) to take advantage of all of template's capabilities.

Why should I upgrade to Internet Explorer 7? Microsoft has redesigned Internet Explorer from the ground up, with better security, new capabilities, and a whole new interface. Many changes resulted from the feedback of millions of users who tested prerelease versions of the new browser. The most compelling reason to upgrade is the improved security. The Internet of today is not the Internet of five years ago. There are dangers that simply didn't exist back in 2001, when Internet Explorer 6 was released to the world. Internet Explorer 7 makes surfing the web fundamentally safer by offering greater protection against viruses, spyware, and other online risks.

Get free downloads for Internet Explorer 7, including recommended updates as they become available. To download Internet Explorer 7 in the language of your choice, please visit the Internet Explorer 7 worldwide page.