Search the Community
Showing results for tags 'routepath'.
-
How do I control the routePath output? I'm trying to customize the permalink so it spits out {$kbarticle.categoryname} instead of {$kbarticle.categoryid} domain.com/knowledgebase/{$kbarticle.categoryid}/{$kbarticle.title} (currently) domain.com/knowledgebase/{$kbarticle.categoryname }/{$kbarticle.title} (what would be nice) Using WHMCS 7.4.1 with default template, I notice on the knowledgebasecat.tpl page <a href="{routePath('knowledgebase-category-view',{$kbcat.id},{$kbcat.urlfriendlyname})}"> but when I use "find in file" search in Sublime nothing is found. Might you have any wisdom to share, perhaps a hook replacement or even smarty replace? https://www.smarty.net/docsv2/en/language.modifier.replace.tpl https://whmcs.community/topic/259281-htaccess-rewrite-knowledgebase-to-xyz-and-trim-redirect-extension-php-or-html-w-trailing-slash/
-
I am using Version: 7.1.2, and getting lots of following error in the activity log file. Smarty Error: Syntax error in template "file:/var/www/vhosts/mydomain.com/httpdocs/accounts/templates/mine/homepage.tpl" on line 22 "<a href="{routePath('announcement-view', $announcement.id, $announcement.urlfriendlytitle)}">{$announcement.title}</a>" unknown function "routePath" anyone have experienced this? regards, Nathan
-
Hi guys, before 7.2 i was able to have my second language (spanish) KB articles organized with an "/espanol" word in the url's, now as the url construction was replaced with the "routepath" function im not able to do this, any idea how to fix/do this? Previously i had the following in the, for example, knowledgebase.tpl <a href="{if $seofriendlyurls}{$WEB_ROOT}/knowledgebase/{if $LANG.locale eq 'es_ES'}espanol/{/if}{$kbcat.id}/{$kbcat.urlfriendlyname}{else}knowledgebase.php?action=displaycat&catid={$kbcat.id}{/if}"> but now with <a href="{routePath('knowledgebase-category-view', {$kbcat.id}, {$kbcat.urlfriendlyname})}"> i dont know where to put that IF statement. Thanx n advance!