Plugin Directory

External markup

Retrive parts of external content and include in blog framework

The markup from external source must be tagged with specific html-comments. Plugin retrives markup from start/end comments.

The htmlfile path is default set to /themes/TEMPLATENAME/em_cache/ Create folder /themes/TEMPLATENAME/em_cache/ and make it writeable (chmod 777)

The file external_markup_functions.php must be included in the template functions.php. Copy the file external_markup_functions.php into your template folder.

Example: include_once (TEMPLATEPATH . '/external_markup_functions.php');

Example: For retriving navigation markup from http://www.tv4.se; Function call in template: em_showContent("main-navigation start","main-navigation end",EM_EXAMPLE,FALSE)

Explanation of function call: em_showContent(HTML-COMMENT-START,HTML-COMMENT-END,DEFINE HTMLFILENAME,COMPRESS)

  • em_showContent is the function (found in external_markup_functions.php)
  • HTML-COMMENT-START, the start html-comment
  • HTML-COMMENT-END, the end html-comment
  • DEFINE HTMLFILENAME, the name definition of the htmlfile (see documentation in external_markup_functions.php)
  • COMPRESS, should the htmlfile be compressed (FALSE/TRUE) - use with caution!

==

Websites that are using this plugin: http://stylebykling.tv4.se/ http://lundh.fotbollskanalen.se/ http://sciencefictionbloggen.tv4.se/

Requires: 2.7.1 or higher
Compatible up to: 2.8.2
Last Updated: 2011-1-31
Downloads: 253

Average Rating

3 stars
(2 ratings)

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1