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 Trouble

October 05, 2011 12:04pm

Subscribe [3]
  • #1 / Oct 05, 2011 12:04pm

    MarkCJewell

    8 posts

    I am brand new to EE so please forgive me. I have created two channels. The first is working without trouble. However when I publish in the second channel it duplicates some of the info in the first channel and screws up my website. I’m sure I am missing something. Thx in advance.

  • #2 / Oct 05, 2011 12:23pm

    Barrel

    92 posts

    Can you paste your code so that we might be able to see what’s going on?

  • #3 / Oct 05, 2011 12:38pm

    MarkCJewell

    8 posts

    This is what the section looks like before I post in my second channel.

    <div class="wrapper">
                    
         <a href="#" class="marker_left"></a>
         <ul class="gallery">
          <li>
    <a href="http://carlajoneselliott.com/">http://www.micstudiosonline.com/images/uploads/ArtistPics/img3.jpg<span><span>Jason Crabb</span></span></a></li>
    
          <li>
    <a href="http://www.brianfreeandassurance.com/">http://www.micstudiosonline.com/images/uploads/ArtistPics/img4.jpg<span><span>Karen Peck</span><br></span></a></li>
          <li>
    <a href="http://www.jasoncrabb.com/">http://www.micstudiosonline.com/images/uploads/ArtistPics/img5.jpg<span><span>Judy Adams</span></span></a></li>
          <li>
    <a href="http://www.karenpeckandnewriver.com/">http://www.micstudiosonline.com/images/uploads/ArtistPics/img1.jpg<span><span>Carla Elliott</span></span></a></li>
          <li class="bg_none">
    <a href="http://www.jodyadams.com">http://www.micstudiosonline.com/images/uploads/ArtistPics/newspicperrys.jpg<span><span>The Perrys</span></span></a></li>
         </ul>
         <a href="#" class="marker_right"></a>
                         
        </div>


    This is it after I post in my second channel - It just doubles what was in the first channel leaving out the image source.

    <div class="wrapper">
                    
         <a href="#" class="marker_left"></a>
         <ul class="gallery">
          <li><a href="http://carlajoneselliott.com/">" alt=<span><span></span></span></a></li>
          <li><a href="http://www.brianfreeandassurance.com/">" alt=<span><span></span><br></span></a></li>
    
          <li><a href="http://www.jasoncrabb.com/">" alt=<span><span></span></span></a></li>
          <li><a href="http://www.karenpeckandnewriver.com/">" alt=<span><span></span></span></a></li>
          <li class="bg_none"><a href="http://www.jodyadams.com">" alt=<span><span></span></span></a></li>
         </ul>
         <a href="#" class="marker_right"></a>
                         
         <a href="#" class="marker_left"></a>
         <ul class="gallery">
          <li>
    <a href="http://carlajoneselliott.com/">http://www.micstudiosonline.com/images/uploads/ArtistPics/img3.jpg<span><span>Jason Crabb</span></span></a></li>
    
          <li>
    <a href="http://www.brianfreeandassurance.com/">http://www.micstudiosonline.com/images/uploads/ArtistPics/img4.jpg<span><span>Karen Peck</span><br></span></a></li>
          <li>
    <a href="http://www.jasoncrabb.com/">http://www.micstudiosonline.com/images/uploads/ArtistPics/img5.jpg<span><span>Judy Adams</span></span></a></li>
          <li>
    <a href="http://www.karenpeckandnewriver.com/">http://www.micstudiosonline.com/images/uploads/ArtistPics/img1.jpg<span><span>Carla Elliott</span></span></a></li>
          <li class="bg_none">
    <a href="http://www.jodyadams.com">http://www.micstudiosonline.com/images/uploads/ArtistPics/newspicperrys.jpg<span><span>The Perrys</span></span></a></li>
         </ul>
         <a href="#" class="marker_right"></a>
                         
        </div>

     

     
     

     

  • #4 / Oct 05, 2011 1:08pm

    Barrel

    92 posts

    Hmm, I see what’s going wrong, but don’t know enough. Can you post your template code or EE channel calls ( {exp:channel:entries…} )? Thanks!

  • #5 / Oct 05, 2011 1:17pm

    MarkCJewell

    8 posts

    I bought the Ryan Ireland screencasts. So my process is as follows.

    1. Create Template Group
    2. Create Template
    3. Paste Code in Template
    4. Create Channel
    5. Create Field Group
    6. Create Custom Fields
    7. Publish in Created Channel
    8. Light up the template with EE tags

    First time through worked great. So I created a second channel and field group and published - glanced at my site before going to light up the code. I find that its duplicated the first channel content.

    <div class="wrapper">
                    {exp:channel:entries =Home_Page_Top_Five}
         <a href="#" class="marker_left">_</a>
         <ul class="gallery">
          <li>
    <a href="http://carlajoneselliott.com/">{Home_Top_Five_Pic_1}<span><span>{Artist_1_Name}</span></span></a></li>
          <li>
    <a href="http://www.brianfreeandassurance.com/">{Home_Top_Five_Pic_2}<span><span>{Artist_2_Name}</span><br></span></a></li>
          <li>
    <a href="http://www.jasoncrabb.com/">{Home_Top_Five_Pic_3}<span><span>{Artist_3_Name}</span></span></a></li>
          <li>
    <a href="http://www.karenpeckandnewriver.com/">{Home_Top_Five_Pic_4}<span><span>{Artist_4_Name}</span></span></a></li>
          <li class="bg_none">
    <a href="http://www.jodyadams.com">{Home_Top_Five_Pic_5}<span><span>{Artist_5_Name}</span></span></a></li>
         </ul>
         <a href="#" class="marker_right"></a>
                         {/exp:channel:entries}
        </div>
  • #6 / Oct 05, 2011 3:10pm

    Barrel

    92 posts

    oh. Is “Home_Page_Top_Five” the name of your channel?

    Maybe you need to add limit=1 to prevent the channel from looping through ALL entries in the channel.

    {exp:channel:entries channel="Home_Page_Top_Five" limit="1"}
  • #7 / Oct 05, 2011 4:11pm

    MarkCJewell

    8 posts

    To be clear I have two channels - Home_Page_Top_Five and Indie_Top_5

    When I try to publish an entry into the Indie Top 5 EE is rendering the Home_Page_Top_Five content x 2 as I have already posted. I have tried the limit 1 but it doesn’t change anything. I am beginning to think I have a flawed concept of channels.

  • #8 / Oct 05, 2011 4:56pm

    Barrel

    92 posts

    So wait… did you use this code:

    <div class="wrapper">
                    {exp:channel:entries =Home_Page_Top_Five}
         <a href="#" class="marker_left">_</a>
         <ul class="gallery">
          <li>
    <a href="http://carlajoneselliott.com/">{Home_Top_Five_Pic_1}<span><span>{Artist_1_Name}</span></span></a></li>
          <li>
    <a href="http://www.brianfreeandassurance.com/">{Home_Top_Five_Pic_2}<span><span>{Artist_2_Name}</span><br></span></a></li>
          <li>
    <a href="http://www.jasoncrabb.com/">{Home_Top_Five_Pic_3}<span><span>{Artist_3_Name}</span></span></a></li>
          <li>
    <a href="http://www.karenpeckandnewriver.com/">{Home_Top_Five_Pic_4}<span><span>{Artist_4_Name}</span></span></a></li>
          <li class="bg_none">
    <a href="http://www.jodyadams.com">{Home_Top_Five_Pic_5}<span><span>{Artist_5_Name}</span></span></a></li>
         </ul>
         <a href="#" class="marker_right"></a>
                         {/exp:channel:entries}
        </div>

    ...in the template for Indie_Top_5? That could be your problem… you should be calling the Indie_Top_5 channel.

    {exp:channel:entries channel="Indie_Top_5"}

    I hope we’re on the right track!

  • #9 / Oct 05, 2011 5:06pm

    MarkCJewell

    8 posts

    No sir I did not. That was on the original channel I created. I will summarize the best I know how. I created the channel Home_Page_Top_Five and published through that channel - that is the code you have. I created another channel called Indie_Top_Five. When I publish through this channel is when it simply duplicates the content of Home_Page_Top_Five. They are two separate channels - Home_Page_Top_Five works fine by itself. When I publish to the second channel Indie_Top_Five is when it screws everything up. I don’t understand how I publish in one channel and it affects another. I have read the documentation and EE is very proud of the fact that you can use multiple channels on a single page. Is it possible that I have a setting wrong in second channel or field group?

  • #10 / Oct 06, 2011 12:12am

    MarkCJewell

    8 posts

    Still need help if anybody can.

  • #11 / Oct 06, 2011 9:47am

    Lisa Wess

    20502 posts

    Hi, Mark,

    Before we look at the template code, can you check the edit page in your CP and let us know if there is any true content duplication shown there?  If it’s a database issue, the troubleshooting will be different from troubleshooting a template issue; so we definitely need to know that first.

    Thanks!

  • #12 / Oct 06, 2011 10:20am

    MarkCJewell

    8 posts

    Hi, Thanks for the response. I checked the template in EE and I don’t see any duplication. Your post also made me remember that when I configured the installation that I used a database that I had used during a previous EE install. It gave me a message that I would lose all my data which was not a problem. You think that might have something to do with this? thanks

  • #13 / Oct 06, 2011 12:31pm

    MarkCJewell

    8 posts

    Ok. I took it on myself and cleared the server and installed the lastest EEv2.2.2 fresh. As this is just a test site to see if I want to continue to use EE. Installed with a new database. I set all the proper permissions. Changed my Global Preferences to allow templates to be saved as files. Created a New Template Group and Template. Pasted some code in through by ftp. My site is blank. I realized I didn’t set the template group as the default index page for my site. I change this and still nothing. I delete the template group and create a new one but it doesn’t save it in my templates/default_site directory. I can paste the code in the EE editor and it renders the page fine but it doesn’t save the Template Group/Templates on the server. I need some advice. Thanks

  • #14 / Oct 06, 2011 3:06pm

    Barrel

    92 posts

    I’m trying to figure out exactly what’s going on.

    The channel Home_Page_Top_Five is being displayed on a template, perhaps also called Home_Page_Top_Five. It’s showing up right.

    The channel Indie_Top_5 is being displayed on another template, perhaps called Indie_Top_5… and when you access the URL for the Indie_Top_5 template, the content for Home_Page_Top_Five is showing up twice—though the channel called is definitely Indie_Top_5?

  • #15 / Oct 06, 2011 3:09pm

    MarkCJewell

    8 posts

    Thanks for your response. I actually fixed the issue. I wasn’t putting “” around my channel name when I called it. Again I am new and making crazy mistakes. Also re the other post - EE starting saving my Template Groups/Tempates again. As for now I’m good. Thx again

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

ExpressionEngine News!

#eecms, #events, #releases