template parsing
Posted: 28 May 2008 06:04 PM   [ Ignore ]  
Summer Student
Total Posts:  27
Joined  02-22-2008

I’ve got a weblog, that relates multiple products to a certain entry using the checkbox field type and listing all the product names.
So in a template, i use the exp entry tag to get all the fields for that entry, and it returns a string of all the products. But now I have a string which I’d love to toss in another entry tag, but that’s already been parsed, so the only way I know to get any of the fields for the products is using a mysql query and just going straight to the DB. I like not having to do that, partly because I don’t like the way the data is organized. Is there an easier way to accomplish my goal? Maybe a plugin or something?

Thanks.

Profile
 
 
Posted: 28 May 2008 07:07 PM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12374
Joined  04-29-2002

The check box field type is a third party offering, so I’m going to move this over to the Extensions forum.

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 29 May 2008 11:02 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  27
Joined  02-22-2008

Okay… Well the problem is about needing to run an exp:entries tag twice, not so much about the checkbox field…

If you get a result from an exp:entries tag, and then need to do another query using that result in another exp:entries tag, how would that be done.

Thanks.

Profile
 
 
Posted: 30 May 2008 08:49 AM   [ Ignore ]   [ # 3 ]  
Summer Student
Total Posts:  27
Joined  02-22-2008

I ended up just using PHP to call the DB.

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: 64907 Total Logged-in Users: 37
Total Topics: 81850 Total Anonymous Users: 34
Total Replies: 440053 Total Guests: 228
Total Posts: 521903    
Members ( View Memberlist )