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.

Channel bleed

January 03, 2013 12:50am

Subscribe [1]
  • #1 / Jan 03, 2013 12:50am

    kaylus

    1 posts

    Hello,

    I’m rather new to expression engine and have enjoyed it so far. I’m having a bit of difficulty with templating though. I have two channels, one called “gallery” and one called “front_slider” and they are both configured to groups of channel fields and both work for adding content.

    My problem is when I call them on the templates I get bleed-over from the other channel. There are 2 items in the gallery and 2 items in the front_slider yet when I perform the loop I get 4 items on both page.s

    From the Gallery template:

    {exp:channel:entries channel=”gallery”}
                            <li class="{gallery_style}">
                            {gallery_image}
                               <a href="http://{path}/{filename}.{extension}" title="{gallery_name}">"  class="plusbg"]_                                                 {path}_galthumb/{filename}.{extension}</a>
                            {/gallery_image}
                               <div class="thumb-description">
                                  <span class="thumb-title">{gallery_name}</span>
                                  {gallery_description}
                               </div>
                            </li>   
                            {/exp:channel:entries}

    From the Home page template:

    {exp:channel:entries channel=”front_slider”}
                      <div class="slide">
                          <a href="http://{link_to}" target="blank" rel="noopener">{image}</a>
                          <div class="caption">{caption}</div>
                       </div>
                      {/exp:channel:entries}

    This is wreaking havoc as you may see, the isotope gallery I’ve placed in the site is screwing up because of two blank items, and the front slider is acting up because of the blank slides.

    Is there something apparent that I’m doing horribly wrong here (in relation to this)?

    Kevin

  • #2 / Jan 03, 2013 2:07pm

    ciadeveloper

    10 posts

    Don’t know if this is the reason for your problem or just an issue with the forum.  The quotes around front_slider and gallery are the ‘slant-ways’ quotes rather than regular quotes.  If you aren’t using regular quotes in the actual code that might cause a problem.

    —Christian

  • #3 / Jan 03, 2013 4:48pm

    kaylus

    1 posts

    Hello Christian,

    Very keen observation, I don’t normally miss those but thank you for the help.

    Kind Regards,
    Kevin

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

ExpressionEngine News!

#eecms, #events, #releases