Questions tagged [view]

Use this tag for questions relating to the View component of the Model-View-Controller (MVC) design pattern.

Filter by
Sorted by
Tagged with
8
votes
3answers
2k views

Search tools is not open by default

We are implementing the core search tools in our custom component list view. When I click the search tools it shows the below form which is perfect. When I click the drop down and select a ...
8
votes
1answer
101 views

What is the correct method of developing a front-end list and edit view

I created 2 front-end views. One view is to list the records and an another view to edit a particular record. The first view name is 'products' which shows the list of products from the table. In ...
7
votes
2answers
3k views

What is the recommended way to structure a Joomla 3 custom component view using angularJS?

There is very little information out there from users who have successfully integrated angular js in a joomla custom component list view. I found the following: https://stackoverflow.com/questions/...
7
votes
1answer
3k views

How should I use view.raw.php properly

I'm trying to add a custom JToolbar button to my list view that will export the list contents to excel. I created a new task in my list controller to render the raw view class in a file called view....
6
votes
2answers
758 views

Override a component view for a specific menu item

How can I override the component view for a specific menu item? For a global overwrite I can use template/html/com_xxx/. But how can I do it only for a specific menu item? Example : Joomla! has a ...
5
votes
2answers
4k views

Show image using file_get_contents in a popup window

I am trying to show an image in a popup window using file_get_contents function and an echo statement. Here is the code I have in the first view <a href='javascript:window.open("index.php?option=...
5
votes
3answers
129 views

Stop robots from getting site/article content

This is not a question about indexers, most of them obey robots.txt file. But maybe you noticed publicized cases where Facebook or Skype followed URL's posted by users or which were sent via private ...
5
votes
1answer
1k views

How to add image/icon to the header of the administration pages of a component?

I am building my own component and I would like to add my icons/images left of the Title in the administrative pages of the component (backend), like the core components have. How to do this?
5
votes
1answer
302 views

Joomla singular and plural view names

Is there a built in functionality available in joomla to determine the view name to plural? I created 2 views as 'delivery' and 'deliverys'. The view 'delivery' is to display the records in a list ...
4
votes
1answer
542 views

How can include the component view in plugins

I have custom component and plugins and listing some details in table after click on the table i'll go to details page. i want show the one of details in article, so i created a custom plugins and got ...
4
votes
1answer
1k views

Custom Component - Linking File Upload From Controller to View

I have a custom component that takes input from the admin and displays it as a custom styled view on the front-end of the site. One of the fields is a file upload for an image and I cannot figure out/...
4
votes
2answers
2k views

How to remove component name from URL?

I am making a custom component and I dont want the name of the component on the URL when component loads. The URL is coming like this : http://example.com/component/componentName/view=viewName But ...
3
votes
1answer
118 views

SQL syntax error when attempting to filter list view - how to build WHERE clause?

I built a Joomla component for a school using component-creator.com and now I am trying to modify the source files. My current view lists off all parents and students in my database, visible to all ...
3
votes
1answer
85 views

Create alias for alternate view format

I've just created an RSS feed view format for one of the views in my component. This is contained in: components/com_mycomponent/views/myview/view.rss.php I'd now like to allow access to this via ...
2
votes
1answer
523 views

How to redirect to a “part-view” of a view file?

I have a view called Vtour. Inside Vtour I have these files: view.html.php index.php /tmpl/ /tmpl/default.php So default.php is the default view which loads a form that a user can select elements to ...
2
votes
2answers
2k views

Search engine for a custom component

I need to add search engine to my component. In database I have three feilds: name, post, address. How to add searching with this fields separatly? For example in the view I add three fields and ...
2
votes
1answer
53 views

Is it possible to insert a category list view inside an article?

I want to get a category list view inside an article (in this case, inside a tab in an article), but I want to see this category list view styled like when a menu item type shows a category list: a ...
2
votes
1answer
410 views

Where query in Joomla component - what file do I edit?

Okay, so I am completely new to Joomla and I am trying to edit the source files of a component I built using component-creator.com. I have a database which stores different data for multiple ...
2
votes
1answer
757 views

Correct / Best way of calling model methods inside view.html.php

Which is the correct/best method of calling model methods inside view.html.php. Method 1 $mydata = $this->get('MyData') ; Method 2 $model = $this->getModel() ; $mydata = $model->getMyData(...
2
votes
1answer
401 views

How to avoid loading a module in a view without creating a menu item for that view

I have multiple modules set to display on all pages except those selected. Most of the views in my component have a regular menu item assigned and as such I can add them to the 'BUT the selected list'....
2
votes
1answer
314 views

Joomla layout difference edit.php and default.php

I had already created some custom components in the past and how it is, at the beginning you cannot understand all things in detail. But with continuing always new question arise. Could someone ...
2
votes
1answer
217 views

Component Views don't appear when creating a new menu item

In Joomla 3.2, I have a component with many views. I want to create a menu item that will point to each separate view. For example: /view1 would redirect to ?option=com_mycomponent&view=view1 /...
2
votes
1answer
288 views

Featured view Title position?

I would like to change how articles are viewed for the featured list view used for my homepage. Normally articles display there title first above intro image and content. Is it possible to change it ...
2
votes
1answer
326 views

Component name different to the default view name, how to display default view?

My component is named "com_xsomething" (to make it distinct). My main view is called "Something". I want to name my view "Something" rather than "xSomething". How do I write the main controller's ...
2
votes
1answer
528 views

Redirect to specific tab in view

I'm working on a Joomla component and need help in redirecting to specific tab. I have created multiple tabs in my view using bootstrap (eg: JHtml::_('bootstrap.startTabSet', 'myTab', array('active' =...
2
votes
1answer
279 views

Is it possible to insert a view of a component into an article or into the template without using plugins or iframes?

Is it possible to display a view of a component without iframe and plugin? (That is to say, if possible with a few lines of PHP and maybe SQL queries?) To be more clear: I'd like to do it directly in ...
1
vote
2answers
935 views

Only show articles by current user in category view using plugin

Hi I'm trying to write a content plugin that will only show articles written by the currently logged in user in the category view. Using the onContentPrepare and onContentBeforeDisplay triggers I ...
1
vote
1answer
49 views

How can I have a dynamic $default_view?

Something along the lines of: JLoader::Register('MyComHelperConfig', JPATH_COMPONENT_ADMINISTRATOR . '/helpers/config.php'); class MyComController extends JControllerLegacy { protected $...
1
vote
1answer
289 views

Component view problem. Model method not called

Today I made my first Joomla component following their tutorial. Everything in my component was working as intended until I decided to add a second view to my component. I added a new folder in the /...
1
vote
1answer
366 views

Joomla 3 frontend view xml: How do I add a custom field to the menu item's paramaters?

I have frontend views on a custom component. When I add a menu item for that view, I want a tab with custom paramaters. The field type will be sql. This is what I have thus far: <?xml version=...
1
vote
1answer
776 views

Joomla-Development: Set default view

I would like to set up a default view. If my component gets called by using administrator/index.php?option=com_bestia&view= I'm getting the error: 404 View not found [Name, Typ, Präfix]: bestia,...
1
vote
2answers
538 views

Text with space entered via tinymce editor showing unexpected behaviour at front end

in one of my component record entry form i placed a editor which use tinymce from joomla configuration. i save record by entering some texts for a description field like "description description ...
1
vote
2answers
109 views

How to hide grey 'button bar' in administrator component view

Is it possible to hide the grey bar where buttons would normally go in an administrator view of a custom component? The grey bar shown below: I have no buttons to show, so don't want it to take up ...
1
vote
1answer
47 views

Multiple templates for the same view of a custom component

In my custom component, I would like to have multiple slightly different templates for the same view. Something like com_things/ ... - views/ - thing/ ... - things/ - tmpl/ ...
1
vote
2answers
2k views

How to render a component view in a module?

Brief I have a component and have a form in it. And I want to render the same form in a module. An example can be core Joomla article edit form components/com_content/views/form/tmpl/edit.php which ...
1
vote
1answer
691 views

Access Model State Variable in View

This might a simple question, I've Model State variable set in my Model. When I "print_r" it in view. It provides following output: JObject Object ( [_errors:protected] => Array ( ...
1
vote
1answer
961 views

How do I add print button in Joomla list view.?

I have created my business logic in model, but in view part I'm not so expert of how to use JHTML. Can anyone tell me how can I add a print button in joomla list view?
1
vote
2answers
1k views

Joomla save function with ajax update

I would like to call a controller function and after that I would like to update my view with an ajax call. Therefore I call my controller function from an ajax script using this url: url: "index....
1
vote
1answer
40 views

Sharing a model between two views in a component

I have one model I'd like to use for two different views. This is the only model these two views will require. I'm subclassing Joomla\CMS\MVC\Controller\BaseController and I'd like to use its display ...
1
vote
1answer
166 views

Specify view and layout when adding a button with addNew()

I'm adding a button to the toolbar using JToolBarHelper::addNew('thing.add'); I want it to have the same effect as clicking on the following menu button: <menu view="thing" ...
1
vote
1answer
475 views

Override View path in the Controller is only partially working

In my main controller, I'm successfully incorporating a custom path for the Model, but seem to be missing something for the custom path to the View. The component path is: \components \...
1
vote
1answer
1k views

Joomla 3 Backend Pagination Showing Full Results Instead

I'm creating a new component and have followed the Joomla 3 MVC tutorial (details) but cannot get pagination to work. Interestingly, when I implement the HelloWorld component linked in that tutorial, ...
1
vote
1answer
223 views

Use of com_checkin and $canChange and $canCheckin in listview

I 'm writing a listView's default layout for my component in which I 'm implementing Joomla's publish & unpublished feature in which user can publish an item on single click on check box. I am ...
1
vote
1answer
48 views

HTML in the Component's view is being overwritten

I have a component view being mapped to an alias: /view1 is being redirected to ?option=com_mycomponent&view=view1 When I hit www.mysite.com/view1, I can see that the execution path is hitting ...
1
vote
2answers
83 views

Pulling featured articles from another remote Joomla install with images via RSS or otherwise

I am looking at taking the featured articles from one Joomla site (via RSS at least) and pulling it into another Joomla site (or more). The only problem is that I require the featured article's image ...
1
vote
0answers
14 views

j2store add to cart widgetkit

I'm trying to add J2Store cart to widgetkit grid stack layout with the following code in my administrator/components/com_widgetkit/plugins/widgets/grid-stack/views/widget.php file. require_once(...
1
vote
0answers
78 views

How to implement nested submenus in the administrative sidebar?

I'm using JHtmlSidebar::addEntry() to build a menu in the sidebar. However, I need a better way to organize the menu items in there. I don't see a way to easily create a nested menu structure. I'm ...
1
vote
0answers
269 views

ContentBuilder Views Component doesn't list Views with SEF URLs

I'm using ContentBuilder Views plugin to display my forms results. It works just fine, the problem is that it only works with NO SEF URL's. And i really would like to use SEF URL's so my links would ...
0
votes
1answer
116 views

Joomla Tag Result Page Accordion [closed]

I would like to change the Tag Search Result page to list the categories containing the articles found by the Tag Search within an accordion menu. Explanation: The Categories are the main menu items ...
0
votes
1answer
83 views

0 Class 'EngineeringHelpersEngineering' not found

I am developing a custom component and when I try to call my view I am receiving this error. The error occurs at: .\components\com_engineering\views\commentform\tmpl\default.php:24 Here is line 23 ...