ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Two Weblog Entry Tags

February 04, 2010 5:55pm

Subscribe [5]
  • #1 / Feb 04, 2010 5:55pm

    Jason Bullard

    55 posts

    All,

    Version:  1.6.8
    Build: 20091002

    I know that I don’t have the most recent build but I didn’t see anything in the change log that might point to this problem.

    I may be doing something wrong but it just seems weird that this is happening.  For my index page in my template group I have the following code:

    {assign_variable:my_weblog="default_site"}
    {assign_variable:my_template_group="vector"}
    
    {embed={my_template_group}/header}
    
                    <div id="main">
                        {exp:weblog:entries weblog="{my_weblog}" category="not 4" orderby="date" sort="desc" limit="15" disable="member_data|trackbacks"}
                        <a href="http://{title_permalink={my_template_group}/index}%22name=%22{title}%22&gt&lt/a&gt">{title}</a></h2>
    <p>                    <br />
                        Posted by <a href="http://{profile_path=member/index}">{author}</a>  | Filed Under {categories}<a href="http://{path=%27SITE_INDEX%27}" title="{category_description}">{category_name}</a> {/categories}<br />
                        <br />
                        {summary}<br />
                        <br />
                        {if segment_2 != ''}<br />
                        {body}<br />
                        <br />
                        {summary}<br />
                        {/if}<br />
                        <br />
                        <br />
                            <a href="http://{title_permalink={my_template_group}/index}">Read More</a> |<br />
                            {if allow_comments}<br />
                            <a href="http://{url_title_path={my_template_group}/comments}">Comments ({comment_total})</a> |<br />
                            <span class="date">{entry_date format='%M %d, %Y'}</span><br />
                            {/if}<br />
                        <br />
                        {/exp:weblog:entries}<br />
                    </div><br />
                    <br />
                    {embed=sidebar/index}<br />
                    <br />
    {embed={my_template_group}/footer}


    Now, if I am just viewing the index page without clicking on an actual entry everything in the tag

    {embed=sidebar/index}

    works without a problem.  Here is the code:

    {assign_variable:my_weblog="articles"}
    {assign_variable:my_template_group="sidebar"}
    
                    <div id="sidebar">
                        <h3>Mission</h3>
    <p>                    <br />
                        <br />
                            To serve the needs of deployed soldiers and their families through material and emotional means; and to create a community of caring among soldier supporters and adopters.<br />
                        <br />
                        <br />
                        </p><h3>Search</h3>
    <p>                    <br />
                        {exp:search:simple_form id="qsearch" weblog={my_weblog}}<br />
                            <br />
                                <label for="qsearch">Search:</label><br />
                                <input class="tbox" type="text" name="qsearch" value="Search this site…" title="Start typing and hit ENTER" /><br />
                                <input class="btn" alt="Search" type="image" name="searchsubmit" title="Search" src="/aag/themes/site_themes/vector/images/search.gif" /><br />
                            <br />
                        {/exp:search:simple_form}<br />
                        <br />
                        </p><h3>In the News</h3>
    <p>                    <br />
                            <ul class="sidemenu"><br />
                                {exp:weblog:entries weblog="articles" category="4" orderby="date" sort="desc" limit="15" disable="member_data|trackbacks"}<br />
                                <li><br />
                                    <a href="http://{article_url}">{article_author}</a><br />
                                    </p>
    
    <p>                                <span>{title}</span><br />
                                </li><br />
                                {/exp:weblog:entries}<br />
                            </ul><br />
                    </div>

    When I click on an entry within the index page it will show the entire entry (i.e. summary, body, extended) as it was designed to do.  However, the problem is that it won’t show the “articles” entries.

  • #2 / Feb 04, 2010 5:55pm

    Jason Bullard

    55 posts

    For some reason it would not let me attach the second image so here it is.

  • #3 / Feb 04, 2010 6:16pm

    Mark Bowen

    12637 posts

    By Articles do you mean the News menu?

    If so then try adding the dynamic=“off” parameter to the News weblog tag on that page. That should hopefully do it for you.

    Hope that helps a bit.

    Best wishes,

    Mark

  • #4 / Feb 04, 2010 7:01pm

    Adam Dorsey

    1439 posts

    @Jason Bullard - Mark’s suggestion should definitely work.

    @Mark - Thanks for the assist!

  • #5 / Feb 04, 2010 11:14pm

    Jason Bullard

    55 posts

    Mark

    I will definitely give that a try tomorrow.  Thanks

  • #6 / Feb 05, 2010 2:05am

    John Henry Donovan

    12339 posts

    Let us know how you get on Jason

  • #7 / Feb 05, 2010 10:00am

    Jason Bullard

    55 posts

    All,

    This worked perfectly.  It also seemed to speed things up a little on those two pages.  Thanks for the help.  😊

    Jason

  • #8 / Feb 05, 2010 10:20am

    Mark Bowen

    12637 posts

    All,

    This worked perfectly.  It also seemed to speed things up a little on those two pages.  Thanks for the help.  😊

    Jason

    No problem. Hope everything else goes well for you too.

    Best wishes,

    Mark

  • #9 / Feb 05, 2010 10:23am

    Ingmar

    29245 posts

    Thanks for the assist, Mark. Jason, please don’t hesitate to post again if anything else comes up.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases