[Simple Portfolio] – Image data from XML feed conflicting with WP admin.
-
I’m using the XML feed generated from the simple portfolio plugin for WP. Pulling in each portfolio’s data including title, description, categories works fine but the image source is not displaying the image that is from the xml feed. It seems to be conflicting with something in the WP admin – instead of displaying the correct image for each portfolio from the XML feed it only displays the the portfolio image last updated across all the portfolios instead.
I am using a data spry set to display the XML data in a grid:
<script type=”text/javascript”>
var ds1 = new Spry.Data.XMLDataSet(“/portfolio.xml”, “wordpress/portfolio/projects/project/media/image/thumbnail”);
var ds2 = new Spry.Data.XMLDataSet(“/portfolio.xml”, “wordpress/portfolio/projects/project”, {entityEncodeStrings: “false”});
var ds3 = new Spry.Data.XMLDataSet(“/portfolio.xml”, “wordpress/portfolio/categories”, {entityEncodeStrings: “false”});
</script><div class=”MasterColumn” spry:repeat=”ds2″ spry:setrow=”ds2″ spry:hover=”MasterColumnHover” spry:select=”MasterColumnSelected”><img src={ds1::@src} width=”100″ height=”100″ />
{title}</div>
</div>
<div spry:detailregion=”ds2 ds3″ class=”DetailContainer”>
<div class=”DetailColumn”>{description}</div>
<div class=”DetailColumn”>{information}</div>
</div>
</div>This is some of the the XML feed from the plugin:
<?xml version=”1.0″ encoding=”UTF-8″ ?><wordpress>
<portfolio>
<projects>
<project id=”36″ categories=”3,4,6,9,11,12″ clients=”” tags=””>
<title><![CDATA[Stacey Richmond]]></title>
<date_created><![CDATA[2011-06-07 05:36:06]]></date_created>
<date_modified><![CDATA[2011-06-08 08:51:04]]></date_modified>
<description><![CDATA[Stacey Richmond can effectively deliver multiple projects in a very short time. Her diverse experience in online communications and eLearning development means she is comfortable wearing several different hats at once from Project Manager to Instructional Designer, to Policy adviser to Content Manager.Unlike Adam, she is not tempted by the ‘Apple’ and is a devout follower of Google.
<h3>Favourite job titles:</h3>
Project manager, Content manager, Instructional designer
<h3>What I’m best at:</h3>- Straightforward, open and friendly style of communication
- Logical and conceptual thinker
- I listen and interpret outcomes and support teams to deliver
- Good at coming up with simple solutions to complex problems
<h3>Three words to describe Contentplus…</h3>
Bubbly, reliable, slightly nuts.]]></description>
<media>
<image>
<thumbnail width=”100″ height=”100″ src=”https://localhost:8888/wp-content/uploads/2011/06/Stacey-150×150.gif” />
<medium width=”200″ height=”200″ src=”https://localhost:8888/wp-content/uploads/2011/06/Stacey.gif” />
<large width=”200″ height=”200″ src=”https://localhost:8888/wp-content/uploads/2011/06/Stacey.gif” />
<full width=”200″ height=”200″ src=”https://localhost:8888/wp-content/uploads/2011/06/Stacey.gif” />
</image></media>
<information>
</information>
</project></wordpress>
- The topic ‘[Simple Portfolio] – Image data from XML feed conflicting with WP admin.’ is closed to new replies.