PDF Plugin not parsing embeds
Posted: 31 March 2008 08:15 AM   [ Ignore ]  
Lab Assistant
RankRank
Total Posts:  104
Joined  09-19-2006

I’m experimenting creating a ‘PDF Version’ plugin using TCPDF. When I try grab the $TMPL->tagdata, it’s not parsing the embedded templates -just displaying the actual {embed=“x”} tags in the resulting pdf. Here’s what I’m trying:

{exp:pdf_version}
   {exp
:weblog:category_heading weblog="links"  parse="inward"}
      
<h1>{category_name}</h1>
      <
p>{category_description}</p>

      
{embed="includes/.display_collection" collection="{collection}"}
      {embed
="includes/.display_subcats" mycat="{category_id}"}

   {
/exp:weblog:category_heading}
{
/exp:pdf_version}

I’m very new to plugins, but I assume it’s a parse order issue? I tried setting PHP parsing to input and output with the same result.

Any help would be really appreciated. Thanks!

Profile
 
 
Posted: 10 April 2008 05:25 AM   [ Ignore ]   [ # 1 ]  
Grad Student
Rank
Total Posts:  43
Joined  06-21-2007

This sounds like a really cool plugin, I really hope you get some feedback as I would love to see this materialize.

Profile
 
 
Posted: 10 April 2008 06:13 AM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  719
Joined  07-02-2007

Embeds are the last things parsed in the parsing process. So yes it’s parsing order issue.

 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65087 Total Logged-in Users: 33
Total Topics: 82228 Total Anonymous Users: 20
Total Replies: 441927 Total Guests: 226
Total Posts: 524155    
Members ( View Memberlist )