|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hello,
I extended the TS from the Kochbuch chapter 13.6 to load my gallery into normal tt_content elements and it works really nice. Take a look at the preview if you want to: http://www.rggooglemap.com/index.php?id=74&no_cache=1 The problem is how to let the user choose if this or the old style should be shown? There is an checkbox at tt_content and the code I tried looks like this: ---- temp.origimg < tt_content.tt_content.image.20 temp.origpic < tt_content.tt_content.textpic.20 tt_content.image.20 = COA tt_content.image.20.10 < temp.origimg tt_content.image.20.if.isTrue.field = tx_rgsg_smoothgallery tt_content.image.20.10 < tt_content.newimage.20 tt_content.textpic.20 = COA tt_content.textpic.20.10 <. temp.origpic tt_content.textpic.20.if.isTrue.field = tx_rgsg_smoothgallery tt_content.textpic.20 <. tt_content.newtextpic.20 ---- I guess you get the idead but it doesn't work out. So can please anyone help to get the ext into TER? Georg PS: What do you think about the ext? _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#2
|
|||
|
|||
|
> I extended the TS from the Kochbuch chapter 13.6 to load my gallery
> into normal tt_content elements and it works really nice. Take a look > at the preview if you want to: > http://www.rggooglemap.com/index.php?id=74&no_cache=1 > > The problem is how to let the user choose if this or the old style > should be shown? > There is an checkbox at tt_content and the code I tried looks like > this: ---- > temp.origimg < tt_content.tt_content.image.20 > temp.origpic < tt_content.tt_content.textpic.20 > > tt_content.image.20 = COA > tt_content.image.20.10 < temp.origimg > tt_content.image.20.if.isTrue.field = tx_rgsg_smoothgallery > tt_content.image.20.10 < tt_content.newimage.20 > > tt_content.textpic.20 = COA > tt_content.textpic.20.10 <. temp.origpic > tt_content.textpic.20.if.isTrue.field = tx_rgsg_smoothgallery > tt_content.textpic.20 <. tt_content.newtextpic.20 > ---- > > I guess you get the idead but it doesn't work out. > > So can please anyone help to get the ext into TER? > Georg > PS: What do you think about the ext? Looks like a job for CASE tt_content.image.20 = CASE tt_content.image.20 { key.field = tx_rgsg_smoothgallery default < temp.origimg 1 < tt_content.newimage.20 } BTW: Nice extension, but the upper left imageblock doesn't seem to work. Joey -- Wenn man keine Ahnung hat: Einfach mal Fresse halten! (If you have no clues: simply shut your gob sometimes!) Dieter Nuhr, German comedian openBC/Xing: http://www.cybercraft.de T3 cookbook: http://www.typo3experts.com _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#3
|
|||
|
|||
|
Hello Joey,
JoH asenau wrote: > Looks like a job for CASE > > tt_content.image.20 = CASE > tt_content.image.20 { > key.field = tx_rgsg_smoothgallery > default < temp.origimg > 1 < tt_content.newimage.20 > } Sorry it does not work out :/ Probably because something is wrong with my code. YOu can find the whole stuff @ http://phpfi.com/239481 and I guess moest of the thing you recognize So if there are any flaws or bugs, please tell me too. > BTW: Nice extension, but the upper left imageblock doesn't seem to work. Thanks, i appreciate it. Which imageblock do you mean. Features of the extensions are: - Gallery and slideshow - Possibility to make both timed - Read images from a directory - Read images from records - Read images from DAM (not yet )- Fully configurable through TS/Flexforms Georg _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#4
|
|||
|
|||
|
>> Looks like a job for CASE
>> >> tt_content.image.20 = CASE >> tt_content.image.20 { >> key.field = tx_rgsg_smoothgallery >> default < temp.origimg >> 1 < tt_content.newimage.20 >> } > > Sorry it does not work out :/ Probably because something is wrong with > my code. > YOu can find the whole stuff @ http://phpfi.com/239481 and I guess > moest of the thing you recognize So if there are any flaws or> bugs, please tell me too. "It does not work out" is a bit imprecise. What does not work, and which behaviour would you expect instead? I guess tx_rgsg_smoothgallery reperesents a checkbox, does it? What happens if you uncheck the box - do you see something? It seems you didn't setup tt_content.newimage the same way as tt_content.image, so the 20 might be too much. default < temp.origimg 1 < tt_content.newimage What happens if you change the order to this: default < tt_content.newimage 1 < temp.origimg ?? One of these should be working assuming the setup without a switch worked before. Joey -- Wenn man keine Ahnung hat: Einfach mal Fresse halten! (If you have no clues: simply shut your gob sometimes!) Dieter Nuhr, German comedian openBC/Xing: http://www.cybercraft.de T3 cookbook: http://www.typo3experts.com _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#5
|
|||
|
|||
|
Hi Joey,
i got it, i got it, i got it ![]() ---- tt_content.textpic.20 = CASE tt_content.textpic.20 { key.field = tx_rgsg_smoothgallery default <temp.origpic 0 < temp.origpic 1 < tt_content.newtextpic } --- I guess the problem was the value 0 or any other kind of code ![]() thx for help! georg _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3-dev] Rights for Content Elements | Steffen Kamper | typo3-dev@lists.netfielders.de | 35 | 13.04.2007 09:34 |
| [TYPO3-templavoila] Content Elements don't render | Helge Preuss | typo3-project-templavoila@lists.netfielders.de | 1 | 02.03.2007 14:22 |
| [TYPO3] dmailer - categories on content elements | hard.one - mphanke | typo3-english@lists.netfielders.de | 0 | 27.01.2007 21:27 |
| [TYPO3] copy default content elements | Bas van der Togt | typo3-english@lists.netfielders.de | 0 | 07.12.2006 12:49 |
| [TYPO3] Some content elements are not rendered | Syed S. Rahman | typo3-english@lists.netfielders.de | 3 | 06.12.2006 07:49 |