IRC logs

20140813

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

IRC log range: 20140813*

20140813

  • 10:46:10 <randomresult> hi there
  • 11:10:12 <randomresult> when i use the slide="-1" option in v:content.render, it collects the contentelements instead of replacing them. looking at the VH i saw slidecollect is gone, so i cant set this to "0"
  • 11:13:38 <randomresult> so what do i need to do to tell slide not to collect items but only display the FCE placed on that specific page?
  • 11:40:07 <Denyerec> Any of you guys ever used any "secure download" extensions ? Where FE users log into their own area to download files only meant for them
  • 12:30:26 <featdd> hay guys, is there a modern tutorial of how to create a backend module?
  • 12:30:33 <featdd> something that builds up on 6.1 or 6.2
  • 13:03:46 <jotpunkt> Hi there,
  • 13:03:46 <jotpunkt> I recently saw a talk about dynamic content elements in t3, where some guy, whose name i forgot, showed the differences between DCE and fluidcontent.
  • 13:03:47 <jotpunkt> I liked the idea of a content-provider-extension a lot more than the database-inline-code or file based approach of dce.
  • 13:03:48 <jotpunkt> He had some sort of backend-module where he could simply define new elements field by field.
  • 13:03:49 <jotpunkt> I just played around with fluidcontent, flux, vhs and the builder extension and I think I get the point. But I simply can't find this backend-module for defining new content elements. Is this even part of your extensions or is it something completly different that I am missing here? I also did not find any clue on this in your documentation...
  • 13:05:51 <NamelessCoder> jotpunkt it sounds like you're mixing the two up a bit. DCE maybe has this module (I wouldn't know) since it saves to database. Fluidcontent has no such module since there, fields are read from the template file itself (there are other ways but the standard is to read from template)
  • 13:08:21 <jotpunkt> yeah, I already thought so…he jumped so fast between the two extensions. I must have mixed it up. But hey, thanks for clearing this up.
  • 14:38:58 <randomresult> @NamelessCoder have u seen our issue here https://github.com/FluidTYPO3/vhs/issues/649
  • 15:00:00 <NamelessCoder> randomresult have seen it, do not have time to do anything about it - argument slideCollect was dropped a couple weeks ago due to inconsistencies in usage, you're welcome to create a PR re-implementing it using the sliding approach you currently see in the viewhelper.
  • 15:00:45 <randomresult> but like this, this slide is not usable... or is it?
  • 15:01:21 <randomresult> it will allways collect...
  • 15:01:38 <randomresult> i could limit to 1 and revert the sorting
  • 15:01:49 <randomresult> so last ist first and only 1 shown
  • 15:02:02 <NamelessCoder> slide currently collects content from any https://github.com/FluidTYPO3/vhs/blob/development/Classes/ViewHelpers/Content/AbstractContentViewHelper.php#L85
  • 15:02:09 <NamelessCoder> sry mixed content
  • 15:02:12 <NamelessCoder> option: https://github.com/FluidTYPO3/vhs/blob/development/Classes/ViewHelpers/Content/AbstractContentViewHelper.php#L85
  • 15:03:11 <NamelessCoder> slide>=1 will collect from the target pageUid and $n levels up. $pageUid can override the starting point. Combine/exclude slide and pageUid and you can get the same behavior as before
  • 15:04:20 <randomresult> will take a look at it
  • 15:04:24 <randomresult> thx.
  • 15:04:39 <NamelessCoder> yw
  • 15:05:54 <momchil> guys if I have a custom content element "Product", for example in page Products we have added 10 CE of type Product, is there a way to create a detail page for every Product, so does the custom content element has an own url.. ?
  • 15:06:52 <randomresult> momchil thought of contentcontroller?
  • 15:07:14 <randomresult> @NamelessCoder i use this options="{group: 'Grid', icon: '../typo3conf/ext/gessdesign/Resources/Public/Icons/bootstrap/glyphicons_155_show_big_thumbnails.png'}"
  • 15:08:02 <randomresult> instead of wizard-option in my configuration of a FCE - should place the FCE inside the "Grid" tab...shouldnt it?
  • 15:08:40 <randomresult> (latest VHS)
  • 15:08:51 <momchil> randomresult: you think I can use the ContentController for creating detail pages of custom content elements ?
  • 15:08:58 <NamelessCoder> I assume you mean latest Flux
  • 15:09:12 <NamelessCoder> use EXT:key/path/to/icon.png as icon reference
  • 15:09:40 <NamelessCoder> and yes: the settings above will place your element in a "Grid" tab after you clear system caches and rebuild the definitions
  • 15:09:54 <randomresult> cool. will change that in FTB as well.
  • 15:10:05 <randomresult> momchil : @NamelessCoder is the one to ask
  • 15:10:13 <NamelessCoder> the EXT:... format allows the ext to be installed as global extension and still function
  • 15:10:44 <momchil> NamelessCoder: what do you think :)
  • 15:11:03 <NamelessCoder> momchil there's no short answer except "you shouldn't" because what you're attempting is sort of an anti-pattern in CMS terms
  • 15:11:11 <NamelessCoder> it is possible though
  • 15:12:01 <NamelessCoder> you *should* be using a proper plugin with a proper record type that has proper database fields and a Repository. This record type *could* have a relation to content elements, even possible as inline editing.
  • 15:12:09 <NamelessCoder> (see EXT:news for reference)
  • 15:12:17 <randomresult> @NamelessCoder works. thx.
  • 15:13:31 <NamelessCoder> what you should not do because it is an anti-pattern: create a page with a new content type that has a custom ContentController which accepts an argument that is a record UID from tt_content, then in the template use v:content.render with contentElementUids argument to render the other elements. Point to the page with argument by using f:link.action. Create realurl rules if you wish.
  • 15:13:32 <FT3BOT> ¯\_(ツ)_/¯
  • 15:15:22 <randomresult> @NamelessCoder icon:'EXT:Icons/bootstrap/glyphicons_155_show_big_thumbnails.png' this does not work.
  • 15:15:30 <randomresult> tried it with Resources as well
  • 15:15:37 <randomresult> resources/public
  • 15:15:47 <NamelessCoder> but I cannot stress enough that the optimal way to achieve this is a custom record type and a proper plugin. You open a can of worms the other way as soon as this setup is required to integrate with other data consumers or other services need to index your products.
  • 15:16:01 <NamelessCoder> Resources/Public/ missing
  • 15:16:40 <randomresult> added that as well. no luck
  • 15:17:30 <NamelessCoder> please check WizardItemsHookListener.php for intended behavior
  • 15:17:54 <randomresult> i will. now birthday with my son :)
  • 15:17:58 <momchil> NamelessCoder: what do you mean with custom record type ? a custom page type ?
  • 15:18:06 <NamelessCoder> congratulations are in order :)
  • 15:18:26 <NamelessCoder> momchil see EXT:news' "News" record type for a proper example
  • 15:19:14 <momchil> ok the other way which I was wondering is to create a backend module (CRUD) for managing product records with his own database table and fields, and then create a plugin which will be used for the frontend output
  • 15:21:45 <glucka> NamelessCoder: what IDE do you use?
  • 15:22:20 <momchil> probably phpstorm :)
  • 15:22:30 <NamelessCoder> momchil this is excessive; TYPO3 has built-in record editing with full access control support and ability to create any custom fields (and field renderings) you might need. This is all native TCA features and it's worth knowing how to create the record handling backend integration this way
  • 15:22:35 <NamelessCoder> phpstorm
  • 15:22:39 <glucka> thx
  • 15:23:57 <glucka> it is time to change.. i hate eclipse :)
  • 15:24:33 <NamelessCoder> eclipse, yeah - too slow
  • 15:24:51 <beo6> hello everyone. I currently try to make my first custom action in my fluidtypo3 content bootstrap extension. Don't i need to allow the actions?
  • 15:24:54 <glucka> try to setup github repository 40min :)
  • 15:25:36 <NamelessCoder> gaaaah death by software
  • 15:25:41 <momchil> NamelessCoder: ok 10x, i will have a look at EXT:NEWS
  • 15:26:35 <NamelessCoder> beo6 template file is required; controller class is optional; controller action is optional. It's different from Extbase plugins that way
  • 15:26:44 <NamelessCoder> you do not need to allow additional actions
  • 15:28:05 <momchil> NamelessCoder: and if the products have categories, do you also recommend the TYPO3 native way for categories like http://docs.typo3.org/typo3cms/CoreApiReference/6.2/ApiOverview/Categories/Index.html
  • 15:28:37 <beo6> NamelessCoder: ok thanks i made a download action, added it to the controller and linked to the action in the template with <f:link.action action="download"> but it seems to be ignored. It just opens the page again and does not execute the action.
  • 15:28:38 <FT3BOT> ¯\_(ツ)_/¯
  • 15:28:41 <NamelessCoder> assuming your minimum supported typo3 version contains the category concept: yes. It has an API that makes it much easier to generate the necessary table configuration
  • 15:29:50 <NamelessCoder> beo6 template file must exist. But you definitely should be configuring a proper plugin instance for this, not use the ContentController. You should be able to properly access protect and restrict use of the plugin
  • 15:32:58 <beo6> why should i protect the plugin?
  • 15:33:36 <NamelessCoder> I'm just going by the description "download action which accepts parameter" - such a thing is exactly the type of thing that should be very cautiously implemented
  • 15:34:44 <beo6> sure. thats why it is so restrictive and only accepts the SHA1 hash of the file and chooses the file from the FAL records.
  • 15:35:08 <beo6> i now created a empty Download.html as template. But still same issue that it just loads the page again
  • 15:36:19 <NamelessCoder> link might contain the incorrect extension scope depending on the context of your rendering
  • 15:37:33 <NamelessCoder> I'm sorry but I don't have time to help debug that but from what you tell me, a download action with output of a downloadable file is misuse of the cached ContentController and should be replaced with a proper plugin (USER_INT)
  • 15:38:14 <xaver> http://thecodinglove.com/post/94609475011/when-a-colleague-disturbs-me-for-a-stupid-issue
  • 15:39:09 <beo6> NamelessCoder: ok. thanks anyway. maybe the caching is the problem then
  • 15:40:10 <beo6> xaver: was that for me? ^^
  • 15:43:17 <momchil> btw i have just installed ext:news and it doesnt work on 6.2.4
  • 15:50:06 <xaver> glucka: cgl
  • 16:02:25 <xaver> beo6: no
  • 23:24:44 <soee> any idea how can i change commit message that was pushed before and is not the latest one ?