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.

More channel entries and hooks list for extensions

January 22, 2010 9:41am

Subscribe [2]
  • #1 / Jan 22, 2010 9:41am

    _xammax_

    31 posts

    Hello, I’ve two question about using EE:

    (1) Is possible to use more than one channel entries in a template? I mean:

    {embed="pages/gabbia_header"}
        
        {exp:channel:entries channel="webpages"}
          {sito_testo}
        {/exp:channel:entries}
    
        {if segment_2 == "download.html"}
          {exp:channel:entries channel="download"}
            <h1>{title}</h1>
          {/exp:channel:entries}
        {/if}
    
    {embed="pages/gabbia_footer"}

    ... because this syntax seems not work. And I don’t see why, or perhaps I’ve misunderstand the use of channels ...

    (2) Where I can find the complete list of hooks available in order to use in an third part extention?

    Many thanks in advance for any help.
    max

  • #2 / Jan 22, 2010 9:59am

    Ingmar

    29245 posts

    ad 1) It certainly is, even though your code does not look very efficient. I am sure there are better ways.
    ad 2) Take a look at this list.

  • #3 / Jan 22, 2010 10:19am

    _xammax_

    31 posts

    Hi

    > 1) It certainly is, even though your code does not
    > look very efficient.

    In my case doesn’t work, I’ve double check the refs used but w/o success. I check again ...

    > I am sure there are better ways.

    For example? I need to include a list of entries at the bottom of a (just one) specific entry. I’ve look at “related_entries” but doesn’t seem what I need. Any suggestions are very appreciated ... (I’m thinking to use the sql tag but I’m not sure if it’s the quickly solution).

    > 2) Take a look at http://expressionengine.com/developers/extension_hooks/
    > this list

    Great! This is exactly what I need.

    Many thanks for your help.
    max

  • #4 / Jan 22, 2010 10:26am

    Ingmar

    29245 posts

    For example?

    It’s depend on what you’re ultimately trying to achieve. A conditional off entry_id might work, a custom variable, probably a number of other things, too 😊

    Moving to Howto.

  • #5 / Jan 22, 2010 11:31am

    _xammax_

    31 posts

    It’s depend on what you’re ultimately trying to achieve. A conditional off entry_id might work, a custom variable, probably a number of other things, too 😊

    Moving to Howto.

    Ok ... but the “strange” thing is why that code post on my first message does not work - I’ve triple checked the settings and the ref. used (well, “strange” for me ... I’m at the day 3 of EE exp).

    max

  • #6 / Jan 22, 2010 11:34am

    Ingmar

    29245 posts

    I don’t think you’d have “foo.html” in segment_2, to be honest.

  • #7 / Jan 22, 2010 11:55am

    _xammax_

    31 posts

    I don’t think you’d have “foo.html” in segment_2, to be honest.

    The value of “segment_2” was exact, infact the conditional statem. works as request ... but, Bingo!!! 😊 I’ve found my error, its must be write like this (of course in my specific case):

    // the second entries
    {... dynamic="no" ...}

    ... and works as request.

    Many thanks for your time and patience.
    max

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

ExpressionEngine News!

#eecms, #events, #releases