Showing Entries From Multiple Weblogs in one Template
Posted: 29 November 2008 01:12 PM   [ Ignore ]  
Grad Student
Avatar
Rank
Total Posts:  38
Joined  07-14-2003

I have searched quite a bit and have not found the exact answer to this question. I am trying to show a product page with entries from specific categories of one weblog. On each product page I would also like to show a general message about all the products that is generated by the default weblog. The product blog has a whole bunch of custom fields. The simplest way for the person who will update this page to modify the genearl message is to do it in the default weblog that has standard fields on the entry form.

Each of the weblogs work by them self on the page if the other one is not there. Unfortunately the second weblog - the general message will not show up when both are on the page. At the top of the page are assigned variables:

{assign_variable:my_weblog="default_site"}
{assign_variable
:my_template_group="site"}

The code for the weblogs is this:

<div class="content">    

{exp:weblog:entries weblog="products" orderby="date" sort="desc" limit="1" category="14|15|16" disable="member_data|trackbacks"}

<table align="left" width="100%">
    <
tr>
        <
td class="text" valign="top" align="center"><div class="productframe"><div class="productframe2">{picture}</div></div>
        <
font size="-1"><i>Click on picture to see larger image.</i></font></td>
        <
td class="text" valign="top">
<
div class="headline" align="center">{title}</div>
{if shortdescription}{shortdescription}<br /><br />{/if}
{if description}{description}
<br /><br />{/if}
<b><u>Available Sizes:</u></b> <br />
{if size1}{size1} - <u><b>{cost1}</b></u> <br />{/if}
{if size2}{size2}
- <u><b>{cost2}</b></u> <br />{/if}
{if size3}{size3}
- <u><b>{cost3}</b></u> <br />{/if}
{if size4}{size4}
- <u><b>{cost4}</b></u> <br />{/if}
{if size5}{size5}
- <u><b>{cost5}</b></u> <br />{/if}
{if striped}This is available in striped
&amp; solid.<br />{/if}<br />

{if garmentcare}<b><u>Garment Care:</u></b> {garmentcare}<br />{/if}<br />

        </
td>        
    </
tr>
    <
tr>
        <
td class="text" valign="top" align="center">{if extrapicture}<br />
<
div class="productframe"><div class="productframe2">{extrapicture}</div></div>{/if}</td>
        <
td class="text" valign="top"><div class="headline" align="right">
<
ul>
    <
li><a href="{title_permalink={my_template_group}/order}">Order this item. </a> &nbsp;&nbsp;&nbsp;&nbsp; </li>
</
ul>

</
div>
        </
td>
    </
tr>
</
table>
{/exp:weblog:entries}

<br clear="all" /><br />

<
div align="center"><font size="-1"><i>
{exp:weblog:entries weblog="default_site" orderby="date" sort="desc" limit="1" category="23" disable="member_data|trackbacks"}
{summary}
<br /><br />
{body}        

{
/exp:weblog:entries}
</i></font></div>


</
div>

The full page can be seen at: http://tantine.net/index.php/site/product/one_piece_romper/

Anyone have any ideas?

Thanks so much!

Dana

Profile
 
 
Posted: 29 November 2008 01:56 PM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  555
Joined  10-24-2005

Try dynamic=“off” and entry_id=“put_entry_number_here” parameters on your default site entry tag.

Profile
 
 
Posted: 29 November 2008 02:32 PM   [ Ignore ]   [ # 2 ]  
Grad Student
Avatar
Rank
Total Posts:  38
Joined  07-14-2003

That did it - thanks so much!!

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: 66388 Total Logged-in Users: 44
Total Topics: 84713 Total Anonymous Users: 18
Total Replies: 454685 Total Guests: 198
Total Posts: 539398    
Members ( View Memberlist )