Jump to content

Pages, link findComment not is right


BomAleold

Recommended Posts

Posted

Hello, i am editing a template and on code i see:

{$comment->item()->url()->setQueryString( array( 'do' => 'findComment', 'comment' => $comment->id ) )}

but for any reason the id is not setted on url leave it:

http://www.cafoscarini.it/forums/topic/16585-vendo-eserciziario-per-analisi-e-contabilità-dei-costi/?do=findComment

is $comment->id setted? or i must try with $comment->id() ?

 

on template:

<a href='{$comment->item()->url()->setQueryString( array( 'do' => 'findComment', 'comment' => $comment->id ) )}' data-ipsTooltip title='{lang="share_this_comment"}' data-ipsMenu data-ipsMenu-closeOnClick='false' id='elShareComment_{$comment->id}'><i class='fa fa-share-alt'></i></a>

on source html (firebug)

<a id="elShareComment_" data-ipsmenu-closeonclick="false" data-ipsmenu="" title="Condividi questo commento" data-ipstooltip="" href="http://www.cafoscarini.it/forums/topic/16412-esame-di-geografia-storica-sp/?do=findComment"><i class="fa fa-share-alt"></i></a>

tested here => http://www.cafoscarini.it/

 

Posted

solved, i have added after foreach tag:

{{$idField = $comment::$databaseColumnId;}}

and replaced "id" with $idField

$comment->id => $comment->$idField (the value of $idField = pid)

:thumbsup:

 

the share menu not work jet :(

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...