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.

It's complicated: "latest post" widget, but I also want it to include additional custom fields

February 26, 2011 11:44pm

Subscribe [2]
  • #1 / Feb 26, 2011 11:44pm

    talbina

    20 posts

    I have to explain my complex situation. Here is a link to one entry (the main headline and the sub headline are the same entry)

    Each entry has the following four fields which you should know about (i have others which are not relevant)

    Title
    Headlineurl1

      Headline2
      Headlineurl2

    That is one entry.

    On my site you will see the “Fresh Items” column to the right. Right now it links within the page to the Title…i did this using the unique Entry_id.

    However, what about my headline2 content? I want that to show up in the “Fresh Items” column and have it link to within the page.

    Well I can’t do that because Headline2 does not have an Entry_id.

    So my question is does every entry in a custom field have a unique ID?

    For example, for Entry #1


    Title       345
    Headlineurl1   334

      Headline2     676
      Headlineurl2   864

    And then for Entry #20

    Title       943
    Headlineurl1   1003

      Headline2     1267
      Headlineurl2   2344

  • #2 / Feb 26, 2011 11:46pm

    talbina

    20 posts

    This is how my current Fresh Items code is without the various plugins:

    {exp:channel:entries channel="rightside|leftside|marketsummary" sort="desc" orderby="date"}
    
    
    
            <h3><a href="#{entry_id}">{title}</a></h3>
    <p>        </p>
    
    <p><br />
            {/exp:channel:entries}

  • #3 / Feb 28, 2011 3:04am

    John Henry Donovan

    12339 posts

    talbina,

    Each entry has the following two fields which you should know about (i have others which are not relevant)

    You mentioned 2 but have listed 4. Title, Headlineurl1, Headline2 and Headlineurl2
    Can you share a screenshot of what your Publish page looks like please? One with content already in it.

    On my site you will see the “Fresh Items” column to the right.

    Have you got a link to your site?


    I am still not quite sure what you mean but I am guessing you want a way to link to anchors within the same page dynamically using a menu?

  • #4 / Feb 28, 2011 11:44am

    talbina

    20 posts

    Yes sorry 3 custom fields + 1 Title field which is given by EE.

    Sorry I thought I put a link, but here is one entry (the TITLE and the headline2 are both the same entry)

    What I mean is that I also want to link to a headline2…even though it is not a title, it is a custom field.

    However, right now I’m using the entry_id to link to the title.

  • #5 / Mar 01, 2011 2:35am

    John Henry Donovan

    12339 posts

    talbina,

    There is nothing in EE to do that at the moment.
    How come you have 2 headlines per entry and not just 2 entries?
    You could even relate one to the other using a relationship field

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

ExpressionEngine News!

#eecms, #events, #releases