Re: [TYPO3-english] Rendering sys_category tree in FE

2014-01-04 Thread Torsten Schrade

Hi Jan,

am i right that your example code doesn't not handle recursive 
categories? It looks like it just can handle 2 levels (parent and 
child)... Or do i miss anything?


Quite right, at the time i just needed two levels ;) But the need for 
recursion is of course a good point and I changed the extension to 
support this. Check out the lates master, it now supports a tree depth 
of five levels. If more levels are really really needed, they could 
just be added fluidwise. Infinite recursion is nothing easily achieved 
with pure Fluid and therefore not implemented.


Cheers and happy testing,
Torsten


___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] Rendering sys_category tree in FE

2014-01-04 Thread Torsten Schrade

Hi Philipp


Infinite recursion is nothing easily achieved
with pure Fluid and therefore not implemented.


You do this via a partial. Just make sure to pass some kind of recursion
stop variable.


Many thanks, that was a pretty good tip! Appears to be one of the 
obvious things that are sometimes so hard to see… ;)
The example is now working perfectly with infinite recursion and the 
amount of Fluid code is greatly reduced.


Thanks again and cheers,
Torsten

___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Re: [TYPO3-english] Rendering sys_category tree in FE

2014-01-01 Thread Torsten Schrade

Hi Jan,

happy new year to you. I had a similar task some time ago. I've put my 
solution together as a little example extension. Check out this link:


https://github.com/digicademy/categories_example

Have fun and best regards,
Torsten

On 2013-12-31 17:43:10 +, Jan Kornblum said:


Dear newsgroup,

i've got an extended sys_category model to categorize own recipe 
records. Everything is fine and rendering the category tree in the 
backend using makeCategorizable() to assign categories works. Now i 
would like to render a category tree in the frontend (like a HMENU 
does) to filter my recipe records. how to realize this the best way?


categoryRepository-findAll() returns a flat result where each 
category has got a parent property but somthing like subcategories 
is missing. Do i have to rebuild the category array myself to store 
each categories subcategories to be able to loop over them in fluid? Or 
are there any possibilities given by the core API or by fluid to render 
a category tree like a HMENU in the frontend?


Kind regards and einen guten Rutsch, Jan



___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] Viewhelper for Alphabetical Index

2013-07-02 Thread Torsten Schrade

Hi Dirk and Robert,

hehe, amazing, we're really getting into something of a musicological 
TYPO3 focus group here... ;)


I know how long it can take to 'just sort a few customer specific 
things out before putting it into the TER'. ; )


If you'd publish your extension 'as-it-is' as a github repository 
others could help you doing the house-keeping stuff and probably 
identify some pitfalls too.


Yes, you're absolutely right! And that was what i was going to do. I'm 
currently on a conference trip abroad, otherwise it would have been 
there yesterday. Stay tuned, I'm currently preparing a sample dataset 
and a minimal readme and will then push it to GitHub in the course of 
the day.



I would gladly do a short review (since I'm curios anyway).


That would be awesome! Everybody who is interested in helping and 
coding a general solution is invited to join. My colleague Anna and I 
will also be at T3DD this week and and give it some work.


Cheers,
Torsten

___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] Viewhelper for Alphabetical Index

2013-07-02 Thread Torsten Schrade

Hi folks,

If you'd publish your extension 'as-it-is' as a github repository 
others could help you doing the house-keeping stuff and probably 
identify some pitfalls too.


allright, done:

https://github.com/digicademy/catalogueraisonne

You'll also find little readme in the extension's root and a sample 
dataset in Resources/Private/T3D/ to get going quickly. Have lots of 
fun with testing. If anybody is interested in joining forces to make 
this a generic solution… just drop us a line and be our guests :)


Cheers,
Torsten

___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Re: [TYPO3-english] Viewhelper for Alphabetical Index

2013-07-02 Thread Torsten Schrade

Hi Dirk


Hi Torsten,
thank you for publishing your work.

I did a quick install (TYPO3 6.0.4) and browsed the sample data in the backend.

There are some issues. But I think this list is not the right place to 
discuss them.


Where would you prefer to get them reported: in github or on typo3 
forge. Did you already register an extension key and a project on 
forge.typo3.org?


I would have thought that there might be issues on a 6+. Our 
development basis was a 4.7. Thanks a lot for being so courageous and 
to test it on a higher version and for your feedback. I think the forge 
always is a good place for collaborative development, so here we go:


http://forge.typo3.org/projects/extension-catalogueraisonne

If you would like to join the team with your account just drop me a 
line. And yes, the extension key 'catalogueraisonne' is registered so 
that we can have a vessel for our common goal ;)


Best,
Torsten

___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] Viewhelper for Alphabetical Index

2013-06-30 Thread Torsten Schrade

Hi Dirk

BTW why don't you put the whole extension into the TER? Its concept 
seems to be quite general and meets even scientific requirements.


Thank you very much for sharing!


Glad it worked out for you! Really cool that somebody else works on the 
same topic. Yes, you're absolutely right, we'll share the extension as 
soon as possible, some project specific things need to be ironed out 
and then off it goes to TER ;)


Cheers,
Torsten

___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] Viewhelper for Alphabetical Index

2013-06-28 Thread Torsten Schrade

Hi Dirk,


I'm using extension news (tx_news) to build a catalog raisonné.
I'd like to group all entries in list view by the first character 
(alphabetical index).


Hiding all characters without matching entries would be nice.

Is there any Viewhelper or another trick to archieve that?

Thanks in advance.

Cheers Dirk


Now that's a funny coincidence… some months ago we did a catalogue 
raisonné extension for one of our digital humanities projects [1] and 
needed an alphabet ViewHelper for displaying alphabetical registers 
[2]. The ViewHelper is used in a f:for loop and segmentizes ordered 
lists of strings by comparing starting letter(s). It creates only 
letters for which there are entries. Here are two gists:


* Template: https://gist.github.com/tesselation/5888003
* ViewHelper: https://gist.github.com/tesselation/5888020

Maybe it's of some use to you. Have fun,
Torsten

[1] http://www.gluck-gesamtausgabe.de/gwv.html
[2] http://www.gluck-gesamtausgabe.de/gwv/werkregister.html

___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Re: [TYPO3-english] XPATH content object question

2012-11-30 Thread Torsten Schrade
Hi Erich,

 My end goal is to retrieve the uid of a news item from the
 flex form and display it in a news plugin on the page.  But taking it in
 steps, I'm just trying for now to display the uid of the news item in a
 typoscript object path.  Here's how I modified it, but it's still showing
 up blank in that section, however when I use page.10 instead, it works
 fine.
 
From your description I take you're now trying it out in a Fluid/Extbase
(ext:news?) or Fluidtemplate context? If so, that's what I meant with
'rendering context' in my earlier reply. If you give me some more
information on the environment you are trying this we might find a
solution.

I have a hunch that in the context you use your lib there seems to be no
page data in the background, therefore the select part of the CONTENT
object to retrieve the flexform XML from the records ends up with nothing.
To find out if that's the case you could just set a fixed id of a page
where you know you have a news plugin usong the pidInList property of the
CONTENT object. Another way would be to set debugData at different points
within the CONTENT object, then call your typoscriptObjectPath and check
what data you've got there.

 I think I'm gonna owe you a virtual beer after all this!  Please let me
 know if you have any ideas.

Hehe, no worries, you're very welcome. I can imagine taking a deep draught
;)

Cheers, Torsten
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] XPATH content object question

2012-11-29 Thread Torsten Schrade

Hi Erich,


#if I uncomment the next line, it displays the proper result, but it isn't
applying it to lib.field_tier2_2
#page.10  temp.myvar
lib.field_tier2_2 
lib.field_tier2_2 = COA
lib.field_tier2_2.10  temp.myvar


Might be because temp object could be gone before lib object is 
rendered... depends on your rendering context (have a look on the 
description of those TLOs in TSRef). Try to use the cObj directly in 
your lib context not as temp object.


Cheers, Torsten
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] is TYPO3 for me

2012-11-13 Thread Torsten Schrade
Hi Dimitry,

 You can build the site with pure TypoScript (old, ugly, slow, memory
 consuming, not recommended),

Now you have made me very curious with this statement - why old, why
ugly, why slow? None of the other approaches is really is usable without
TypoScript at some point... TS is the one thing that has remained stable
ever since ;) Please don't get me wrong, I'm seriously interested.

Cheers,
Torsten
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] retrieve IDs of content items in FCE?

2012-11-10 Thread Torsten Schrade
Hi Erich,

 Is it possible via typoscript to retrieve the unique IDs of tt_news records
 that are placed into an FCE?
 
 For example, I have a Flexible Content Element that contains a field of type
 Page Content Elements that allow the user to choose tt_news records.  From
 typoscript on the main page, can I retrieve the ID of the article that was
 selected in that field?

Yes, you can do that using the XPATH cObj. Check out the tutorial on how
to get values from a tt_content flexform:

http://typo3.org/extensions/repository/view/cobj_xpath
http://typo3.org/extension-manuals/cobj_xpath/1.1.1/view/1/4/#id547457

Its basically the same for FCEs since they also store their values in
XML. You may adapt the following snippet to your structure:

lib.xpath = XPATH
lib.xpath {
  source.data = DB : tt_content:###YOUR_FCE_ID###:tx_templavoila_flex
  return = string
  expression = //field[@index=###YOUR_FIELDNAME###]/value
  resultObj {
cObjNum = 1
1.current = 1
  }
}

Have fun,
Torsten
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] Rootline Menu, rename first Level

2012-06-29 Thread Torsten Schrade
Hi Kay,

 I search a solution for displaying HOME, instead of the real page title
 in the very first item of the rootline ;) - any idea instead of
 userfunctions und clustered menues ;)

Generally you can override the text of TMENUITEMS with stdWrap and - in
your case - execute this only if the uid of the first page in your
rootline matches the currently processed uid of the item:

10 = HMENU
10 {
entryLevel = 1
special=rootline
special.range= 2|0
1 = TMENU
1 {
NO {
wrapItemAndSub = h2|/h2
doNotLinkIt = 1
stdWrap.override = HOME
stdWrap.override.if {
value = YOUR_ROOTPAGE_ID
equals.field = uid
}   
}
}
}

Have fun, Torsten

___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] Get sections out of flexform via typoscript

2012-03-24 Thread Torsten Schrade
Hi Chris,

 I can get the fields from the flexform in
 Typoscript via {field:flexform_thefieldname}.
 
 My question is now: Is it possible to retrieve these fields from a
 section via Typoscript or do I have to make a user function?

You can do this with the extension 'cobj_xpath' that I released to TER a
few minutes ago ;)

http://typo3.org/extensions/repository/view/cobj_xpath/current/

Check out the manual, there is a tutorial on how to get the values from
a flexform XML just using TypoScript and XPATH.

Have fun,
Torsten

___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] Get sections out of flexform via typoscript

2012-03-24 Thread Torsten Schrade
Hi Philipp,

 Would you be interested to port this extension to core?
 IMHO we have enough areas where information is stored as XML and such a cObj 
 could be very helpful.

That would definitely be a pleasure! BTW, I have a second cObj in stock
which I planned to release very soon: cobj_xslt. Both, the XPATH and the
XSLT content objects can be used hand in hand to do XML processing via
TypoScript. Could the XSLT object also be of interest?

 I can assist you if you like.

Thank you for your kind offer! Where would be the best point to start?

Cheers and have a nice evening,
Torsten
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english