IRC logs

20150227

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

IRC log range: 20150227*

20150227

  • 03:43:40 <rahulthewall> Good morning guys, does “classCurrent” not work if I use manual rendering for menu in Fluid? (It’s not working for me)
  • 04:55:37 <rahulthewall> Any ideas NamelessCoder and bjo3rn (sorry for tagging)
  • 04:59:02 <cedricziel> how would it work, rahulthewall?
  • 04:59:19 <cedricziel> as you said-you render manual. that basically means you're in charge
  • 04:59:46 <rahulthewall> Hmm, that makes sense
  • 04:59:52 <cedricziel> ;)
  • 05:00:04 <rahulthewall> so … how would I add a currentClass in this case?
  • 05:00:42 <rahulthewall> There must be a better solution that using JS to check the URL and then add a class to the relevant menu item
  • 05:00:56 <cedricziel> {page.uid} == {menuItem.uid}
  • 05:03:40 <rahulthewall> Sorry, didn’t really understand that - could you expand a little
  • 05:03:49 <cedricziel> oh.
  • 05:04:19 <cedricziel> well, i didnt use them in a while, but there are several properties on the menuItem
  • 05:05:46 <cedricziel> when you're looping your, you can use {menuPage -> f:debug()}
  • 05:08:25 <rahulthewall> Right, let me take a look
  • 05:09:12 <cedricziel> https://github.com/FluidTYPO3/vhs/blob/development/Classes/ViewHelpers/Page/Menu/AbstractMenuViewHelper.php#L210
  • 05:09:35 <cedricziel> you have several properties you can compare against in conditions and add classes accordingly
  • 05:13:02 <Xatenev> Heya, anybody very familiar with backend layouts?^^
  • 05:13:13 <cedricziel> sure, which ones? ^^
  • 05:13:34 <Xatenev> well i got one typo3 normal backend layout with 3 columns , and one with 1 column
  • 05:13:45 <Xatenev> but when i wanna switch, it doesnt show content anymore :|^^
  • 05:14:02 <Xatenev> like the old content is still there when i switch the backend layout, its just not showing anymore in the backend
  • 05:14:08 <Xatenev> but the references aren't getting deleted
  • 05:14:10 <cedricziel> so no fluidpages, right?
  • 05:14:25 <Xatenev> fluid is used
  • 05:14:32 <Xatenev> i got backend layouts, then i save the columns into variables
  • 05:14:36 <Xatenev> and give them to my fluid template
  • 05:14:37 <Xatenev> ^^
  • 05:15:21 <cedricziel> cool; right-the backend layouts need the same colPos'es of course
  • 05:15:57 <Xatenev> well my old had 4 columns
  • 05:16:00 <Xatenev> i just need one now though
  • 05:16:14 <cedricziel> they need the same colPos numbers in their definition
  • 05:16:21 <cedricziel> otherwise they would just get hidden
  • 05:16:27 <Xatenev> well but for example:
  • 05:16:32 <cedricziel> can you gist your Layouts?
  • 05:16:36 <Xatenev> its siple
  • 05:16:39 <cedricziel> no paste pls
  • 05:16:40 <Xatenev> 1 row 1 column with colpos = 0
  • 05:16:41 <Xatenev> :p
  • 05:16:46 <Xatenev> is my new layout
  • 05:16:52 <Xatenev> but when i add new contnet to that column
  • 05:16:57 <Xatenev> its juts not shown lol
  • 05:17:06 <Xatenev> even though colPos = 0 and i use content < styles.content.get
  • 05:17:20 <cedricziel> once again
  • 05:17:26 <cedricziel> so it's not about the backend?
  • 05:17:34 <cedricziel> it's about the frontend output
  • 05:17:38 <Xatenev> well i dont know actually where the problem is
  • 05:17:39 <cedricziel> right?
  • 05:17:44 <Xatenev> probably its the FE output
  • 05:17:51 <Xatenev> ya
  • 05:17:54 <cedricziel> k
  • 05:18:15 <cedricziel> then you need to show me your PAGE object definition
  • 05:18:26 * Xatenev doin
  • 05:19:02 <Xatenev> http://pastebin.com/pEaZ27Dq
  • 05:19:17 <Xatenev> quite standard, its actually only about the content < styles.content.get part
  • 05:19:23 <Xatenev> all other variables dont matter
  • 05:19:54 <cedricziel> hey. did you include css_styled_content before that?
  • 05:20:18 <Xatenev> no idea
  • 05:20:23 <Xatenev> isnt that included automatically?
  • 05:20:28 <cedricziel> ehm. no
  • 05:20:30 <cedricziel> ^^
  • 05:20:43 <Xatenev> dont find css_styled_content in my setup atleast
  • 05:20:51 <Xatenev> but when i use getLeft it finds content
  • 05:20:54 <cedricziel> you need to include csc in order to be able to use styles.*
  • 05:20:56 <Xatenev> so I dont think its about that
  • 05:21:10 <Xatenev> getLeft finds some weird content
  • 05:21:13 <Xatenev> lol
  • 05:21:29 <Xatenev> backend layouts arae just so horrible designed ><^^
  • 05:21:43 <cedricziel> this has nothing to do with backendlayouts
  • 05:21:50 <cedricziel> did you debug your {content} variable?
  • 05:21:55 <Xatenev> yop
  • 05:22:04 <Xatenev> '' (0 chars)
  • 05:23:13 <Xatenev> no idea where the problem could be actually, did the same in like idk, 30 projects before? worked always
  • 05:23:55 <cedricziel> sure. that's why i insist ^^
  • 05:24:49 <Xatenev> idk everything seems correct
  • 05:24:52 <Xatenev> colpos = 0
  • 05:24:58 <Xatenev> styles.content.get retrieves column 0
  • 05:26:05 * Xatenev hates typo3
  • 05:26:06 <Xatenev> ><
  • 05:26:25 <cedricziel> can you, nevertheless please post your backendlayout definition?
  • 05:26:45 <Xatenev> on it
  • 05:27:06 <Xatenev> http://pastebin.com/MDaXQGXx
  • 05:28:03 <Xatenev> i will do a db check right now
  • 05:28:13 <Xatenev> btw there are some weird relations going on or msth
  • 05:30:56 <Xatenev> cedricziel: seems correct no?^^
  • 05:31:03 <cedricziel> sorry, was away
  • 05:32:00 <cedricziel> seems okay
  • 05:32:12 <cedricziel> and you're sure it's selected on that very page?
  • 05:32:42 <Xatenev> yop
  • 05:32:47 <cedricziel> hmm. great
  • 05:32:50 <cedricziel> ^^
  • 05:32:55 <Xatenev> naa
  • 05:32:55 <Xatenev> :P
  • 05:32:58 <cedricziel> no clue then
  • 05:33:10 <Xatenev> Typo3 is just so retarded in some points ><^^
  • 05:33:17 <cedricziel> like you said, it should have worked that way a 1000 times
  • 05:33:21 <Xatenev> yep
  • 05:33:32 <cedricziel> flexibility often comes with complexity.
  • 05:35:09 <Xatenev> i will update my reference index now
  • 05:35:17 <Xatenev> I think its cause i got weird relations but i dunno
  • 05:35:45 <cedricziel> but in general-yes. i'm shocked at this very moment about the state of multilanguage in extbase
  • 05:44:36 <rahulthewall> hey cedricziel, could you take a look at this snippet: http://pastebin.com/abZKynBC
  • 05:44:49 <rahulthewall> f:if condition="{item.uid.isCurrent}" does not evaluate to true
  • 05:45:02 <cedricziel> item.isCurrent
  • 05:46:55 <cedricziel> debug {item} and you'll see the properties
  • 05:49:25 <rahulthewall> Big time noob question, if I run a f:debug{item} in the loop where do I see the output
  • 05:49:28 <rahulthewall> of debug
  • 05:50:24 <Xatenev> at the top of ur page normally
  • 05:50:26 <Xatenev> .p
  • 05:52:01 <rahulthewall> :P
  • 05:57:54 <rahulthewall> right, that debug shows that current => TRUE (so isCurrent should return true)
  • 05:57:59 <rahulthewall> I have this code snippet
  • 05:58:58 <rahulthewall> in fact here is the complete partial: http://pastebin.com/A1pvtTvK
  • 05:59:32 <rahulthewall> look from lines 73-82
  • 06:00:06 <rahulthewall> instead of getting <li class=“ialActive”> I get <li>
  • 06:03:38 <rahulthewall> nevermind, I need to learn to read the properties
  • 06:03:42 <rahulthewall> it is current and not isCurrent
  • 06:03:44 <rahulthewall> works :)
  • 06:03:51 <rahulthewall> thanks cedricziel and Xatenev
  • 06:04:23 <Xatenev> cedricziel: I think my typo3 will explode in a second
  • 06:04:29 <Xatenev> its updating the reference index for like 1 hour now
  • 06:04:29 <Xatenev> Xd
  • 06:04:46 <cedricziel> that's a good sign
  • 06:06:08 <Xatenev> ye btu i dont have so much time
  • 06:06:13 <Xatenev> i got school for the next 2 weeks ><
  • 06:06:19 <Xatenev> wanted to get that typo3 update done today :X
  • 06:08:28 <cedricziel> what version are you on?
  • 06:10:48 <Xatenev> 629
  • 06:10:53 <Xatenev> @cedricziel
  • 06:11:32 <cedricziel> just curious ;)
  • 06:11:39 <cedricziel> alright, i'm away now as well
  • 08:17:43 <Xatenev> cedricziel: u here?
  • 14:24:21 <Denyerec> xaver - horrible "Wait until 7.2" bugs ?
  • 14:27:16 <xaver> Denyerec: ?
  • 14:28:10 <Denyerec> Re: 7.1
  • 14:28:22 <Denyerec> [23:02] <xaver> 7.1 is broken anyway. horrible bugs...
  • 14:30:45 <xaver> Denyerec: i don't use 7.x productive anyways
  • 14:30:58 <Denyerec> I guessed you wouldn't ;)