Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
BomAleold Posted September 2, 2015 Posted September 2, 2015 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=findCommentis $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/
BomAleold Posted September 2, 2015 Author Posted September 2, 2015 solved, i have added after foreach tag: {{$idField = $comment::$databaseColumnId;}} and replaced "id" with $idField $comment->id => $comment->$idField (the value of $idField = pid) the share menu not work jet
Recommended Posts
Archived
This topic is now archived and is closed to further replies.