Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Smarty Navigations Zähler -> TPL Frage
Goto page Previous  1, 2
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: German
View previous topic :: View next topic  
Author Message
Grizzly
Smarty Pro


Joined: 15 Apr 2011
Posts: 172
Location: Germany

PostPosted: Wed Sep 12, 2012 11:05 am    Post subject: Reply with quote

hast du mal versucht die section ohne variablen zu machen?

Also z. B. so:

Code:

{section name=test start=0 loop=5 step=+1}
        {$smarty.section.test.index_next}
        {/section}


Klappt das?

Was du vllt auch versuchen solltest, der section nicht den Namen "tabelle" sondern iwie navi oder so zu geben. Kann ja sein, dass es dadurch durcheinander kommt, da du auch eine Variable namens $tabelle hast....
Back to top
View user's profile Send private message Visit poster's website
michaelj
Smarty Regular


Joined: 20 May 2010
Posts: 40
Location: NRW

PostPosted: Wed Sep 12, 2012 12:00 pm    Post subject: Reply with quote

ja ohne klappt es, leider nicht mit, und sehe nicht wo die daten verloren gehen könnten. bzw die werte in den var stimmen ja wenn ich die ausgeben lasse.

und die änderung des section namens hatte ich auch angepasst, das bewirkt auch wieder nichts.


tja sowas nennt man das bermuda dreieck der smarty enginge was ich habe Wink
Back to top
View user's profile Send private message
Grizzly
Smarty Pro


Joined: 15 Apr 2011
Posts: 172
Location: Germany

PostPosted: Wed Sep 12, 2012 12:53 pm    Post subject: Reply with quote

Kann es vllt an dem ceil liegen?

probier mal statt:


Code:
ceil($total/$itemsPerPage)


sowas hier:

Code:
ceil(5/2)


und gib es aus. Klappt es, dann musst du wohl das aufrunden wo anders übernehmen (z. B. in der PHP-Datei) ansonsten weiß ich auch nicht weiter.

Was für eine Smarty-Version verwendest du denn?

Wie gesagt notfalls können wir eine TeamViewer Session starten, wenn du willst!
Back to top
View user's profile Send private message Visit poster's website
michaelj
Smarty Regular


Joined: 20 May 2010
Posts: 40
Location: NRW

PostPosted: Wed Sep 12, 2012 1:05 pm    Post subject: Reply with quote

so hab die lösung gefunden

er peilt das ceil nicht, habs nun in der php umgerechnet und dann weitergegeben...

werd die lösung komplett noch posten falls andere auch probleme damit haben

grizzly !!! danke !!! für deine geduld Wink
Back to top
View user's profile Send private message
Grizzly
Smarty Pro


Joined: 15 Apr 2011
Posts: 172
Location: Germany

PostPosted: Wed Sep 12, 2012 1:16 pm    Post subject: Reply with quote

Dann ist ja gut, habe mir schon gedacht dass es vllt wegen dem ceil nicht funktioniert. Habe mich im obigen Beitrag verschrieben meinte natürlich:

Klappt es nicht, dann musst du wohl das aufrunden wo anders übernehmen (z. B. in der PHP-Datei)

Dann bin ich ja froh, dass ich dir helfen konnte Very Happy
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: German All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP