call tpl file in to tpl file according to ACL 5 years 3 months ago #1

  • Okan Sancakli
  • Localtime: 15:22
  • Europe/Bucharest
  • Posts: 9
currently I am trying to display my custom fileds to specific user group on t_myuserdetails.tpl
First I tried to create a module position for custom code module with the following code

{php}
echo JHtml::_('content.prepare', '{loadposition companydetail}');
{/php}

Module positon works well but there is a problem. The code that i want to use is .tpl file code. So custom code module does not work with it.
Than with .tpl file codes i have created a .tpl file and called it in to t_myuserdetails.tpl file for access group that i created.

{php}
$user =& JFactory::getUser();
if($user->get('business') == 1) : ?>
{include file='companydetail.tpl'}
{/php}

File including works well. Displaying all informations that I asked from it. But specific user group code does not work.
On some forums people offer to create a class for this but this is not what i want. Anybody can display that part with browser editor.

It is hard to work with smarty. Not much people know and hard to find answers.

I would be appreciated if you help me.

Regards
Okan
Last Edit: 5 years 3 months ago by Okan Sancakli. Reason: file name change
The administrator has disabled public write access.

call tpl file in to tpl file according to ACL 5 years 3 months ago #2

  • Mihnea Dumitrescu
  • Localtime: 15:22
  • Europe/Bucharest
  • Posts: 49

LOCKED VIEW - ANSWERS ARE NOT VISIBLE

This is a private forum, open ONLY to licensed customers!

You can purchase a license and the correspondent forum board will be unlocked.

In case of an already existing valid license, just login with your account and you will have access to the complete board.

The administrator has disabled public write access.

call tpl file in to tpl file according to ACL 5 years 3 months ago #3

  • Okan Sancakli
  • Localtime: 15:22
  • Europe/Bucharest
  • Posts: 9

LOCKED VIEW - ANSWERS ARE NOT VISIBLE

This is a private forum, open ONLY to licensed customers!

You can purchase a license and the correspondent forum board will be unlocked.

In case of an already existing valid license, just login with your account and you will have access to the complete board.

The administrator has disabled public write access.

call tpl file in to tpl file according to ACL 5 years 3 months ago #4

  • Mihnea Dumitrescu
  • Localtime: 15:22
  • Europe/Bucharest
  • Posts: 49

LOCKED VIEW - ANSWERS ARE NOT VISIBLE

This is a private forum, open ONLY to licensed customers!

You can purchase a license and the correspondent forum board will be unlocked.

In case of an already existing valid license, just login with your account and you will have access to the complete board.

The administrator has disabled public write access.

call tpl file in to tpl file according to ACL 5 years 3 months ago #5

  • Okan Sancakli
  • Localtime: 15:22
  • Europe/Bucharest
  • Posts: 9

LOCKED VIEW - ANSWERS ARE NOT VISIBLE

This is a private forum, open ONLY to licensed customers!

You can purchase a license and the correspondent forum board will be unlocked.

In case of an already existing valid license, just login with your account and you will have access to the complete board.

Last Edit: 5 years 3 months ago by Okan Sancakli.
The administrator has disabled public write access.