IRC logs

20140621

Logs from channel #fedext on freenode - our official support channel.

IRC log range: 20140621*

20140621

  • 18:43:43 <erredeco> a little question, if someone could help me: is it possible to check if a menu (<v:page.menu>) is present or not?
  • 18:44:49 <erredeco> please take note that <v:if.page.hasSubpages > is not the solution, because it checks if the page I am currently in has subpages or not
  • 18:54:20 <bjo3rn> erredeco what do you mean with 'menu is present or not?' v:if.page.hasSubpages has an argument pageUid
  • 18:54:29 <erredeco> umm
  • 18:54:58 <bjo3rn> you can check if any page has subpages. not only the current one.
  • 18:55:10 <erredeco> I mean that I want a different template rendering if the menu is absent, I mean
  • 18:55:27 <erredeco> a) all the pages are hidden or b) are not in menu
  • 18:55:34 <erredeco> let's make an example
  • 18:55:49 <bjo3rn> that would help
  • 18:55:52 <bjo3rn> :)
  • 18:56:00 <erredeco> Ok, thanks
  • 18:56:05 <erredeco> I have this pagetree:
  • 18:56:07 <erredeco> page 1
  • 18:56:07 <erredeco> page 2
  • 18:56:07 <erredeco> page 21
  • 18:56:07 <erredeco> page 22
  • 18:56:07 <erredeco> page 3
  • 18:56:26 <erredeco> I want a first-level menu (page 1, page 2, page 3)
  • 18:56:41 <erredeco> and a separate 2nd-level menu (page21,page 22)
  • 18:57:11 <bjo3rn> so far so good
  • 18:57:54 <erredeco> The page template for page 2 should be different as here the 2nd-level menu is present
  • 18:58:15 <bjo3rn> ah, ok. now I get it
  • 18:58:51 <erredeco> I cannot use <v:if page.hasSubPages>, because what happens when I am on page 21?
  • 18:58:56 <bjo3rn> what about v:page.menu using the 'as' attribute to assign the menu to a variable and check with count()?
  • 18:59:38 <erredeco> errrr...
  • 19:00:08 <bjo3rn> ?
  • 19:00:27 <erredeco> A little help would be appreciated :)
  • 19:00:34 <bjo3rn> hehe, ok
  • 19:00:52 <erredeco> I am checking the docs
  • 19:02:09 <bjo3rn> the thing is: I gotta go now (football, you know). but: use <v:page.menu as="submenu"> and then <f:if condition="{submenu -> f:count()}">
  • 19:02:10 <FT3BOT> ¯\_(ツ)_/¯
  • 19:02:24 <bjo3rn> FT3BOT? wft?
  • 19:02:36 <bjo3rn> I mean: wtf!
  • 19:02:37 <FT3BOT> ¯\_(ツ)_/¯
  • 19:02:56 <erredeco> It is an emoticon japanese style
  • 19:03:21 <bjo3rn> yeah, I brought it in but I wonder why it is shown ;)
  • 19:03:36 <bjo3rn> ok, cya later and good luck!
  • 19:03:59 <erredeco> thank you I'll try this now
  • 19:04:23 <erredeco> where are you from bjo3rn?
  • 19:53:35 <erredeco> umm...I'm getting closer :)
  • 20:00:08 <erredeco> how can I pass a variable from a partial to a template?
  • 20:14:48 <xaver> zoidberg
  • 20:14:48 <FT3BOT> (\/) (;,,;) (\/)
  • 20:32:12 <erredeco> see you tomorrow... I'll continue tomorrow good evening