TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

TYPO3 Mailingliste: nicht fragen - lesen!

TYPO3 Mailingliste: nicht fragen - lesen!_RR_1-->
Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-english@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 05.06.2007, 00:01
Georg Ringer
Gast
 
Beiträge: n/a
Standard [TYPO3] Conditions for content elements || Troubles with extendingTS from cookbook

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 05.06.2007, 02:30
JoH asenau
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Conditions for content elements || Troubles withextending TS from cookbook

> 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 05.06.2007, 07:08
Georg Ringer
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Conditions for content elements || Troubles withextending TS from cookbook

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #4  
Alt 05.06.2007, 10:32
JoH asenau
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Conditions for content elements || Troubles withextending TS from cookbook

>> 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #5  
Alt 05.06.2007, 13:13
Georg Ringer
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Conditions for content elements || Troubles withextending TS from cookbook

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

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


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:59 Uhr.


Powered by vBulletin® Version 3.7.4 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Template-Modifikationen durch TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75