Cannot access Component view

For Joomla! 3.x Coding related discussions, you could also use: http://groups.google.com/group/joomla-dev-general

Moderators: ooffick, General Support Moderators

Forum rules
Locked
albert_sandig
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue Jul 26, 2016 7:16 am

Cannot access Component view

Post by albert_sandig » Tue Jul 26, 2016 12:56 pm

I'm new here, I'm making a component attachment but I've got a problem in putting it in plugin editor-xtd

This link can't be access in the site view even though I already login

1. index.php?option=com_attachment&view=attachments&tmpl=component

but when I access in link

2. administrator/index.php?option=com_attachment&view=attachments&tmpl=component

it can actually be view.

The problem is when I use the (2) link in editor-xtd for the frontend site it shows error

500 - View not found [name, type, prefix]: attachments, html, attachmentView

What I want is to access (1) link when login in frontend site and not in backend site

I already use the ACL method but still failed. Please help me :'(
Last edited by toivo on Wed Jul 27, 2016 6:17 am, edited 1 time in total.
Reason: mod note: moved to 3.x Coding

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20652
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ Germany/ S'pore/Bogor/ North America
Contact:

Re: Cannot access Component view

Post by leolam » Tue Jul 26, 2016 2:14 pm

With all respect I do not understand a thing what you are posting and I am not new here on these forums me think. What is com_attachment? Joomla has not such a thing?

Leo 8)
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -

albert_sandig
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue Jul 26, 2016 7:16 am

Re: Cannot access Component view

Post by albert_sandig » Wed Jul 27, 2016 12:31 am

I have this folder

myjoomla/administrator/components/com_mycompontent/views/mycomponents/tmp/myview.php

That view can only be access using

http://localhost/myjoomla/administrator ... =component

What I want is to access it without using administrator so it should be look like this

http://localhost/myjoomla/index.php?opt ... =component

Because I want to create a plugin mybutton for editor-xdt that uses the view of component for the administrator

The example of that is the plugins/editors-xdt/article/article.php

the link uses the view of the component in administrator folder

'index.php?option=com_content&view=articles&layout=modal&tmpl=component&' . JSession::getFormToken() . '=1'

User avatar
astridx
Joomla! Intern
Joomla! Intern
Posts: 91
Joined: Wed Mar 25, 2015 8:56 am
Location: Germany
Contact:

Re: Cannot access Component view

Post by astridx » Mon Aug 01, 2016 7:23 am

Do you have a front end view?
Exists the folder myjoomla/components/com_mycompontent/views/mycomponents/tmp/myview.php

Your example calls the folder

myjoomla/com_content/views/articless/tmp/default.php
---
https://blog.astrid-guenther.de/
---
Don't push the river ... it flows by itself ...


Locked

Return to “Joomla! 3.x Coding”