Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Limiting access to VIEW TOOL bar without a Model 05 Dec 2012 15:10 #5854

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
I have a view with no model and want to limit access to the CONFIG to admin only

The VIEW.HTML file normally looks like

if ($model->canAdmin())
JToolBarHelper::preferences('com_traindefectlogger');

easy enough when you have a model however.. i dont.. so I tried to mimic what we use in a grid layout, i.e

<?php if ($this->canDo->get('core.edit.state') || $this->canDo->get('core.view.own')): ?>

I am trying to guess what (core.view.own) or equivalent is the same as canAdmin

I have tried core.admin, core.configure, core.config and not happening. Probably very basic
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla

Please Log in or Create an account to join the conversation.

Re: Limiting access to VIEW TOOL bar without a Model 05 Dec 2012 15:14 #5855

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
sigh

core.admin

I am a fool ;) basic Joomla ACL stuff..
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla

Please Log in or Create an account to join the conversation.

Re: Limiting access to VIEW TOOL bar without a Model 07 Dec 2012 19:09 #5905

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
No problem.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.052 seconds

This is what you call a component builder. I was able to master using this in a very short time and the resulting component works like a charm. Not just a basic component builder but a fully working component builder with forms fields tables all ready to go. You can make the list and item views to display in the front and back end. Also there is a great forum just starting to evolve and I'm sure this will grow very rapidly when you all realise how good this tool is.
Kevin (JED)

         

Get Started