How to parse inner Categories and Weblog tags in custom module
Posted: 01 September 2008 07:57 AM   [ Ignore ]  
Grad Student
Avatar
Rank
Total Posts:  50
Joined  03-16-2008

Hi all, sorry if this has been covered before, but I can’t seem to find the answer anywhere.  What I am doing is creating a custom module that will submit a form which captures data into a custom database table (therefore needs to be a module?!?!).  This is all looking good, except when I need to add a “exp:weblog:categories” or “exp:weblog:entries” tag nested in my custom tag.  The weblog tag is not being parsed.

So basically the code is:

{exp:my_module:form}
    {exp
:weblog:categories weblog="products" style="linear"}
        
<p>{categories_title}</p>
    
{/exp:weblog:categories}
{
/exp:my_module:form}

The “my_module” stuff is working, but of course the weblog:categories tag is not being parsed.

I am grabbing the “tagdata” in the “my_module” code using:

$tagdata = $TMPL->tagdata;

Clearly I need to parse it somehow…but I am not sure how.

Any thoughts/suggestions?

Cheers Andrew…

 Signature 
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: 64912 Total Logged-in Users: 31
Total Topics: 81864 Total Anonymous Users: 20
Total Replies: 440104 Total Guests: 187
Total Posts: 521968    
Members ( View Memberlist )
Newest Members:  bjmohrAqua193Bios Elementmjpoteetguimogranwelshmrcfthenetmonkeybenekwhobutsb