Category heading tag not working

Rob's Avatar

Rob

15 Feb, 2013 01:36 PM

Hi - thanks for a super addon!

I'm having problems getting the category_heading tag to appear, in fact thte tag refuses to work!

Desktop templates

events
--- index
--- browse

Mobile templates

mobile__events
--- index
--- browse

Heading tag, used on /browse, same tag in both templates

{exp:channel:category_heading channel="calendar_events"}
  <header>
    <h1>{category_name}</span></h1>
    <p>{category_description}</p>
    {event_cat_description}/*category custom field*/
    {event_cat_icons}/*category custom field*/
  </header>
{/exp:channel:category_heading}

Any ideas? maybe a bug?

thanks!

  1. Support Staff 1 Posted by Wouter Vervloet on 15 Feb, 2013 04:07 PM

    Wouter Vervloet's Avatar

    Hi Rob,

    Is that sample an exact copy of the code you have in your template? All I can think of is that you have a typo somewhere in the tag, because Mobile itself doesn't affect that tag at all...

    Just to be thorough... which version of Mobile do have?

    – Wouter

  2. 2 Posted by Rob on 15 Feb, 2013 04:33 PM

    Rob's Avatar

    Hi Wouter

    Mobile version 0.9.5
    The code is exactly the same in mobile and desktop. I Just copied/pasted it here.

    If I use Low's seg2cat plagin it outputs Category name and Category description just fine, also if I view a category using a desktop browser the Mobile addon category heading shows, but if I test on a phone (iPhone4) it does not show.

    Strange!

  3. 3 Posted by Jos Medinger on 23 Jan, 2014 09:24 AM

    Jos Medinger's Avatar

    Hi there
    I'm having the exact same problem... EE v2.7.2 & Mobile v0.9.5
    This is my exact code:-

    {exp:channel:category_heading channel="promotional-pens"}

    {category_name}


    {category_description}


    {/exp:channel:category_heading}

    currently displays nothing at all

    Can you replicate this behaviour and see if a resolution is available?
    Thanks!

  4. 4 Posted by Jos Medinger on 23 Jan, 2014 10:58 AM

    Jos Medinger's Avatar

    Apologies - the code block didn't render well...

    {exp:channel:category_heading channel="promotional-pens"} {category_name} {category_description} {/exp:channel:category_heading}

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac